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_pre frames, 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 (revision 034f7741), whose rows are 187 frames.

Why. On the Neural Engine of an Apple Silicon Mac, the 187-frame package's audio departs from the unfolded generator's throughout a sentence (log-mel distance 0.28 to 0.43 a 50 ms frame, against the PyTorch generator on the same inputs) and most of all just before its second row seam (up to 2.3), heard as a short glitch about 4.3 s into a sentence of 4.6 to 6.1 s. This package stays within 0.13 everywhere, its seams within 0.07, on 18 such sentences. 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 at f3ff3571. Its weight.bin is byte for byte 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 from them and from the kokoro.fold.halo metadata.

License: Apache-2.0, as Kokoro-82M.

Downloads last month
10
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for aekym/kokoro-coreml-ane

Quantized
(142)
this model