Add macOS polyg2p wheels (Apple Silicon and Intel), verified identical to the Linux wheel
Browse filesEnglish, German, Spanish, Italian and Russian G2P now install on macOS. Output compared with the Linux wheel: 0 differing lines on about 1,030 lines per language and on 100,000 Russian sentences. Install with: pip install --no-index --find-links frontend polyg2p==0.1.0
.gitattributes
CHANGED
|
@@ -51,3 +51,5 @@ frontend/polyg2p_data_nolex/ru_yo.lex filter=lfs diff=lfs merge=lfs -text
|
|
| 51 |
frontend/yi/__pycache__/yiddish_g2p.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 52 |
frontend/yi/data/lexicons/__pycache__/model_pointed_lk.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 53 |
frontend/yi/data/lexicons/__pycache__/sefaria_pointed_lk.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 51 |
frontend/yi/__pycache__/yiddish_g2p.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 52 |
frontend/yi/data/lexicons/__pycache__/model_pointed_lk.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 53 |
frontend/yi/data/lexicons/__pycache__/sefaria_pointed_lk.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
frontend/polyg2p-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
frontend/polyg2p-0.1.0-cp39-abi3-macosx_11_0_arm64.whl filter=lfs diff=lfs merge=lfs -text
|
MANIFEST.json
CHANGED
|
@@ -88,8 +88,8 @@
|
|
| 88 |
},
|
| 89 |
{
|
| 90 |
"path": "README.md",
|
| 91 |
-
"bytes":
|
| 92 |
-
"sha256": "
|
| 93 |
},
|
| 94 |
{
|
| 95 |
"path": "RELEASE_NOTES.md",
|
|
@@ -163,14 +163,29 @@
|
|
| 163 |
},
|
| 164 |
{
|
| 165 |
"path": "frontend/FRONTEND.md",
|
| 166 |
-
"bytes":
|
| 167 |
-
"sha256": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
},
|
| 169 |
{
|
| 170 |
"path": "frontend/polyg2p-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl",
|
| 171 |
"bytes": 2933452,
|
| 172 |
"sha256": "c32261120e83ed4d84cef433ae8bbb4cdab40e6e835eeea6483a0423c5193e37"
|
| 173 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
{
|
| 175 |
"path": "frontend/polyg2p_data/LICENSE",
|
| 176 |
"bytes": 11357,
|
|
@@ -298,8 +313,8 @@
|
|
| 298 |
},
|
| 299 |
{
|
| 300 |
"path": "frontend/requirements-frontend.txt",
|
| 301 |
-
"bytes":
|
| 302 |
-
"sha256": "
|
| 303 |
},
|
| 304 |
{
|
| 305 |
"path": "frontend/yi/NOTICE",
|
|
|
|
| 88 |
},
|
| 89 |
{
|
| 90 |
"path": "README.md",
|
| 91 |
+
"bytes": 8774,
|
| 92 |
+
"sha256": "8419db71a662004a50bd06d47b9ce628a2d5b2e3772f4f55898d5cb0b2ac6e95"
|
| 93 |
},
|
| 94 |
{
|
| 95 |
"path": "RELEASE_NOTES.md",
|
|
|
|
| 163 |
},
|
| 164 |
{
|
| 165 |
"path": "frontend/FRONTEND.md",
|
| 166 |
+
"bytes": 4461,
|
| 167 |
+
"sha256": "931be80dc4a436010311b7e162c456baed898ef4ee126446785ebd4b28002cf1"
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"path": "frontend/polyg2p-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl",
|
| 171 |
+
"bytes": 2820403,
|
| 172 |
+
"sha256": "1f6add2a4acc40cdae1e4236d7176b7f852b0fe2043301f5ffee897b20ef2a6a"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"path": "frontend/polyg2p-0.1.0-cp39-abi3-macosx_11_0_arm64.whl",
|
| 176 |
+
"bytes": 2810470,
|
| 177 |
+
"sha256": "5e51041ea8724383444fa007b596cadacddde973e78b7aeba3096cbc3db8a7df"
|
| 178 |
},
|
| 179 |
{
|
| 180 |
"path": "frontend/polyg2p-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl",
|
| 181 |
"bytes": 2933452,
|
| 182 |
"sha256": "c32261120e83ed4d84cef433ae8bbb4cdab40e6e835eeea6483a0423c5193e37"
|
| 183 |
},
|
| 184 |
+
{
|
| 185 |
+
"path": "frontend/polyg2p-portable-arm64.patch",
|
| 186 |
+
"bytes": 1727,
|
| 187 |
+
"sha256": "06d4b26b48aba43960997d5baee4b98e53155c75a689908b1c2a38652beffa8a"
|
| 188 |
+
},
|
| 189 |
{
|
| 190 |
"path": "frontend/polyg2p_data/LICENSE",
|
| 191 |
"bytes": 11357,
|
|
|
|
| 313 |
},
|
| 314 |
{
|
| 315 |
"path": "frontend/requirements-frontend.txt",
|
| 316 |
+
"bytes": 221,
|
| 317 |
+
"sha256": "ed9deca4e85b38453d69b9315966aad2762daa657c1b1c9ab867c5b3a722dc69"
|
| 318 |
},
|
| 319 |
{
|
| 320 |
"path": "frontend/yi/NOTICE",
|
README.md
CHANGED
|
@@ -133,7 +133,7 @@ band noise, pitch range, pauses and UTMOS within the release limits.
|
|
| 133 |
| `onnx_plain/` | the same graphs as exported (plain `Conv`) |
|
| 134 |
| `engine/`, `engine_plain/` | the batched engine's fused graphs (text_encoder, duration, flow = 8 steps + CFG unrolled, decoder) + meta.json, rewritten / plain |
|
| 135 |
| `voices/` | 15 voices (LibriTTS-R speakers, CC BY 4.0): maya (6135), noa (1088), lily (6147), adam (8088), daniel (6209), tamar (3513), shira (6548), yael (6104), emma (1050), sara (6388), david (708), jonathan (8419), ethan (340), michael (7228), ariel (6954); style_ttl + style_dp |
|
| 136 |
-
| `frontend/` | polyg2p
|
| 137 |
| `bluetts/blue-release.patch` | the change the public `blue_onnx` package needs to load this bundle |
|
| 138 |
|
| 139 |
MANIFEST.json lists every file with sha256 and the source checkpoints with md5; CHECKS.md holds the build-time
|
|
|
|
| 133 |
| `onnx_plain/` | the same graphs as exported (plain `Conv`) |
|
| 134 |
| `engine/`, `engine_plain/` | the batched engine's fused graphs (text_encoder, duration, flow = 8 steps + CFG unrolled, decoder) + meta.json, rewritten / plain |
|
| 135 |
| `voices/` | 15 voices (LibriTTS-R speakers, CC BY 4.0): maya (6135), noa (1088), lily (6147), adam (8088), daniel (6209), tamar (3513), shira (6548), yael (6104), emma (1050), sara (6388), david (708), jonathan (8419), ethan (340), michael (7228), ariel (6954); style_ttl + style_dp |
|
| 136 |
+
| `frontend/` | polyg2p wheels (Linux x86-64, macOS arm64 and x86-64) + data files, FRONTEND.md, requirements for the Hebrew front end |
|
| 137 |
| `bluetts/blue-release.patch` | the change the public `blue_onnx` package needs to load this bundle |
|
| 138 |
|
| 139 |
MANIFEST.json lists every file with sha256 and the source checkpoints with md5; CHECKS.md holds the build-time
|
frontend/FRONTEND.md
CHANGED
|
@@ -5,8 +5,16 @@ model reads them worse; a front end that drops the `<lang>` tags gives wrong dur
|
|
| 5 |
|
| 6 |
## English, German, Spanish, Italian: polyg2p
|
| 7 |
|
| 8 |
-
- Package: `polyg2p` 0.1.0 (Apache-2.0), the
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
- Data files: `polyg2p_data/` (`en.lex`, `en.g2p`, `en-large.g2p`, `de.lex`, `it.lex`). Point `POLYG2P_DATA` at it.
|
| 11 |
Spanish is rule-based (no data file).
|
| 12 |
- `POLYG2P_EN_MODEL=large`: the English out-of-vocabulary model the labels were made with.
|
|
|
|
| 5 |
|
| 6 |
## English, German, Spanish, Italian: polyg2p
|
| 7 |
|
| 8 |
+
- Package: `polyg2p` 0.1.0 (Apache-2.0), the wheels in this folder (CPython >= 3.9): Linux x86-64
|
| 9 |
+
(`manylinux_2_34_x86_64`, glibc >= 2.34), macOS Apple Silicon (`macosx_11_0_arm64`) and macOS Intel
|
| 10 |
+
(`macosx_10_12_x86_64`). Install the one for your machine with
|
| 11 |
+
`pip install --no-index --find-links frontend polyg2p==0.1.0`. Source commit and wheel sha256: MANIFEST.json
|
| 12 |
+
(`git.polyg2p_commit`, `files`).
|
| 13 |
+
- The macOS wheels were added on 2026-11-18. Their output was compared with the Linux wheel on about 1,030 lines per
|
| 14 |
+
language (en, de, es, es-419, it, ru) in three data configurations, and on 100,000 Russian sentences: 0 differing
|
| 15 |
+
lines. The Apple Silicon wheel is that commit built with `polyg2p-portable-arm64.patch` (in this folder,
|
| 16 |
+
`RUSTFLAGS="--cfg polyg2p_portable"`), which makes arm64 run the same tagger arithmetic as x86-64; a plain arm64
|
| 17 |
+
build differs on about 1 Russian sentence in 4,000 (stress of homographs). No Windows wheel yet.
|
| 18 |
- Data files: `polyg2p_data/` (`en.lex`, `en.g2p`, `en-large.g2p`, `de.lex`, `it.lex`). Point `POLYG2P_DATA` at it.
|
| 19 |
Spanish is rule-based (no data file).
|
| 20 |
- `POLYG2P_EN_MODEL=large`: the English out-of-vocabulary model the labels were made with.
|
frontend/polyg2p-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f6add2a4acc40cdae1e4236d7176b7f852b0fe2043301f5ffee897b20ef2a6a
|
| 3 |
+
size 2820403
|
frontend/polyg2p-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e51041ea8724383444fa007b596cadacddde973e78b7aeba3096cbc3db8a7df
|
| 3 |
+
size 2810470
|
frontend/polyg2p-portable-arm64.patch
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/src/tagger.rs b/src/tagger.rs
|
| 2 |
+
index 5f15e05..e1f2915 100644
|
| 3 |
+
--- a/src/tagger.rs
|
| 4 |
+
+++ b/src/tagger.rs
|
| 5 |
+
@@ -72,13 +72,13 @@ fn dot(a: &[f32], b: &[f32]) -> f32 {
|
| 6 |
+
/// 4 rows of A × 4 rows of B over `k` elements (k % 4 == 0): `out[r * 4 + c] = a[r] · b[c]`.
|
| 7 |
+
#[inline(always)]
|
| 8 |
+
fn tile4x4(a: [&[f32]; 4], b: [&[f32]; 4], k: usize) -> [f32; 16] {
|
| 9 |
+
- #[cfg(target_arch = "aarch64")]
|
| 10 |
+
+ #[cfg(all(target_arch = "aarch64", not(polyg2p_portable)))]
|
| 11 |
+
// SAFETY: NEON is baseline on aarch64; every slice holds at least `k`
|
| 12 |
+
// elements (k is a multiple of 4) and is only read.
|
| 13 |
+
unsafe {
|
| 14 |
+
tile4x4_neon(a, b, k)
|
| 15 |
+
}
|
| 16 |
+
- #[cfg(not(target_arch = "aarch64"))]
|
| 17 |
+
+ #[cfg(any(not(target_arch = "aarch64"), polyg2p_portable))]
|
| 18 |
+
tile4x4_generic(a, b, k)
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
@@ -131,7 +131,7 @@ unsafe fn tile4x4_neon(x: [&[f32]; 4], w: [&[f32]; 4], k: usize) -> [f32; 16] {
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
-#[cfg(not(target_arch = "aarch64"))]
|
| 26 |
+
+#[cfg(any(not(target_arch = "aarch64"), polyg2p_portable))]
|
| 27 |
+
#[inline(always)]
|
| 28 |
+
fn tile4x4_generic(x: [&[f32]; 4], w: [&[f32]; 4], k: usize) -> [f32; 16] {
|
| 29 |
+
let mut a = [[0f32; 4]; 16];
|
| 30 |
+
@@ -401,12 +401,12 @@ type Tensors = HashMap<String, (Vec<usize>, Vec<f32>)>;
|
| 31 |
+
|
| 32 |
+
/// Does this machine run the int8 kernel? (aarch64 with the dot-product extension)
|
| 33 |
+
fn int8_kernel() -> bool {
|
| 34 |
+
- #[cfg(target_arch = "aarch64")]
|
| 35 |
+
+ #[cfg(all(target_arch = "aarch64", not(polyg2p_portable)))]
|
| 36 |
+
{
|
| 37 |
+
!matches!(std::env::var("POLYG2P_INT8").as_deref(), Ok("0" | "off" | "false"))
|
| 38 |
+
&& std::arch::is_aarch64_feature_detected!("dotprod")
|
| 39 |
+
}
|
| 40 |
+
- #[cfg(not(target_arch = "aarch64"))]
|
| 41 |
+
+ #[cfg(any(not(target_arch = "aarch64"), polyg2p_portable))]
|
| 42 |
+
{
|
| 43 |
+
false
|
| 44 |
+
}
|
frontend/requirements-frontend.txt
CHANGED
|
@@ -2,4 +2,4 @@
|
|
| 2 |
renikud-plus[cpu]==0.5.0
|
| 3 |
heb-tts-normalizer==0.2.0
|
| 4 |
hebrew-num2words==0.1.0
|
| 5 |
-
# polyg2p:
|
|
|
|
| 2 |
renikud-plus[cpu]==0.5.0
|
| 3 |
heb-tts-normalizer==0.2.0
|
| 4 |
hebrew-num2words==0.1.0
|
| 5 |
+
# polyg2p: pip install --no-index --find-links . polyg2p==0.1.0 (wheels in this folder: Linux x86-64, macOS arm64, macOS x86-64)
|