Kokoro-82M's 7 s folded generator with 200-frame rows, halo 8, for the Neural Engine
Browse filesFiles changed (4)
1234567891011121314151617181920212223242526272829303132333435363738---license: apache-2.0base_model: hexgrad/Kokoro-82Mlibrary_name: coremlpipeline_tag: text-to-speechtags: - kokoro - coreml - neural-engine---
# Kokoro-82M folded generator, 7 s bucket, 200-frame rows (Core ML, Neural Engine)
One Core ML package: Kokoro-82M's generator for kokoro-coreml's 7-second bucket, folded into 3 rows of 200 x_preframes, each with 8 frames of halo, polynomial Snake, fp16, for the Neural Engine. It stands in for`coreml/kokoro_generator_fold_poly_7s.mlpackage` of[mattmireles/kokoro-coreml](https://huggingface.co/mattmireles/kokoro-coreml) (revision `034f7741`), whose rowsare 187 frames.
**Why.** On the Neural Engine of an Apple Silicon Mac, the 187-frame package's audio departs from the unfoldedgenerator's throughout a sentence (log-mel distance 0.28 to 0.43 a 50 ms frame, against the PyTorch generator onthe same inputs) and most of all just before its second row seam (up to 2.3), heard as a short glitch about 4.3 sinto a sentence of 4.6 to 6.1 s. This package stays within 0.13 everywhere, its seams within 0.07, on 18 suchsentences. A wider halo on 187-frame rows (16, 24, 32) does not: the seam fades, the rest stays as far off.
**How it was made.** kokoro-coreml at commit `4b9aee6`, its own lock file (torch 2.6.0, coremltools 8.3.0):
scripts/probe_generator_ane_fold.py --weights kokoro-v1_0.pth --config config.json \ --voice voices/af_heart.pt --input-json <a sentence> \ --core 200 --halo 8 --bucket-frames 560 --mode poly --precision fp16 --out <dir>
with [hexgrad/Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M) at `f3ff3571`. Its `weight.bin` is byte forbyte the one in kokoro-coreml's 7 s package; only the row geometry differs. Inputs: `x_pre` (3, 512, 1, 216),`har` (3, 22, 1, 12965), `ref_s` (1, 256) and the masks `sm1`, `zm1` (3, 1, 1, 2160), `sm2`, `zm2`(3, 1, 1, 12965); output `logits` (3, 22, 1, 12965). kokoro-coreml's `FoldGeometry` reads rows, core and halo fromthem and from the `kokoro.fold.halo` metadata.
License: Apache-2.0, as Kokoro-82M.123version https://git-lfs.github.com/spec/v1oid sha256:1c4a1fef927de2006b8140fb2f59a1de7e1b086cff5dc664042363090aa492f9size 541779123version https://git-lfs.github.com/spec/v1oid sha256:8d33f239f960b86806445511e41ece0dc3b38cada0e52661694a57881abe04e6size 44327468123456789101112131415161718{ "fileFormatVersion": "1.0.0", "itemInfoEntries": { "798F32BD-7134-4E6E-A74E-6976056614F5": { "author": "com.apple.CoreML", "description": "CoreML Model Weights", "name": "weights", "path": "com.apple.CoreML/weights" }, "CC8B917C-4BFB-4652-BEB7-8366CA32A4BD": { "author": "com.apple.CoreML", "description": "CoreML Model Specification", "name": "model.mlmodel", "path": "com.apple.CoreML/model.mlmodel" } }, "rootModelIdentifier": "CC8B917C-4BFB-4652-BEB7-8366CA32A4BD"}README.mdAdded+38
coreml/kokoro_generator_fold_poly_7s_core200.mlpackage/Data/com.apple.CoreML/model.mlmodelAdded+3
coreml/kokoro_generator_fold_poly_7s_core200.mlpackage/Data/com.apple.CoreML/weights/weight.binAdded+3
coreml/kokoro_generator_fold_poly_7s_core200.mlpackage/Manifest.jsonAdded+18