Core ML packages derived from hexgrad/Kokoro-82M v1.0 (revision f3ff3571791e39611d31c381e3a41a3af07b4987), one folder per size tier. Every tier here passed the project's iPhone 12 speed gate and blind-listening rule; experiments that failed or were not scored are not in this repository. Speed and blind listening were run for the S018 student in 25mb/ and 50mb/ (see "What changed (S018)"). The default and recommended tier is 25mb/ (24,267,610 bytes of compiled models; S017 bundle with the retrained S018 student).
This is an iPhone 12 / Core ML engineering case study: one device, one voice (af_heart), one main listener (a second listener ran the 25mb four-length test). It does not claim broad perceptual equivalence to Kokoro. The models take Kokoro phoneme token ids; there is no English text-to-phoneme frontend. The iOS code, in the GitHub repository, is only a validation harness, and the Swift stages (duration rounding, alignment, source DSP, inverse STFT) live there, so these packages alone are not a complete synthesizer.
The 25mb/ and 50mb/ tiers now ship a retrained kokoro_student_w256.mlpackage (the S018 student), published as trained. It replaces the S017 student in both tiers; nothing else in those tiers changed. The previous version stays available: Hugging Face commit e7ed75f144376a2d11377cb8af706c3c54b0b0f6 and the GitHub history.
The problem. The S017 student mispronounced common words when the output was transcribed by speech recognition: for example chapter, catch, nice, okay, gave, life and courage came out as other words ("chapter" as "adapter", "catch" as "count", "nice" as "ness"). Blind listening and the log-mel distance had not caught it.
The cause. The sounds involved (the "ch" and "j" sounds, long vowels such as the "ay" in "gave" and the "i" in "nice", the "w" sound) are rare in running text, and the student's training averaged its loss over frames, so a sound that lasts a few frames could fail at almost no cost.
The fix. The student was fine-tuned from the previous student's checkpoint on general text plus targeted sentences, with a higher weight on those sounds in per-token losses and an added log-mel term. The package has the same interface and the same compiled size (6,076,256 bytes for the student; the 25mb tier totals 24,267,610 bytes). The recipe is generic and is published: the GitHub repository qmohitsingh/kokoro-82m-coreml-size-tiers holds docs/README_RETRAIN.md and the scripts/s018_*.py scripts.
Results (af_heart; whisper.cpp ggml-medium.en transcribes each render and the word error rate is computed against the input text, lowercased and without punctuation; same token ids and style rows for every column; Mac Core ML, CPU only; 25mb chain):
| Check | Reference Kokoro | S017 student | S018 student | Source |
|---|---|---|---|---|
| Held-out WER (751 words, public-domain book text not used in training) | 2.93% | 19.57% | 3.86% | benchmark/results/size-s018-score-heldout-25mb.json |
| Neutral A/B WER (135 words, everyday sentences) | 1.48% | 20.00% | 0.74% | benchmark/results/size-s018-score-abn-25mb.json |
| DTW log-mel against fp32 Kokoro, 15 items (dB, lower is better) | n/a | 1.787 | 2.576 (worse) | benchmark/results/size-s018-dtw-25mb.json |
benchmark/results/size-s018-score-heldout-50mb.json), neutral A/B 1.48% / 22.22% / 0.74% (benchmark/results/size-s018-score-abn-50mb.json), DTW 1.901 dB (S017) against 2.754 dB (S018, worse; benchmark/results/size-s018-dtw-50mb.json).Speed and listening for the S018 student:
benchmark/results/size-s018-speed-25mb.json). Sound: 12 ties of 12 blind pairs, 0 reference preferred (benchmark/results/size-s018-25mb-listen-s018.json, benchmark/results/size-s018-25mb-listen-s018-four.json).benchmark/results/size-s018-speed-50mb.json). Sound: 12 ties of 12 blind pairs, 0 reference preferred (benchmark/results/size-s018-50mb-listen-s018-50mb.json, benchmark/results/size-s018-50mb-listen-s018-50mb-four.json).Figures in this document that are labeled S017 (or "previous student") belong to the previous student, not to the S018 student.
Sizes are the compiled Core ML models (logical bytes of the .mlmodelc that xcrun coremlcompiler produces), summed over the required packages. Voice table and harness app sizes are separate and are not part of these numbers.
| Tier folder | Experiment | Compiled models (bytes) | Shapes | Packages | Median RTF 3/7/15/30 s | Sound |
|---|---|---|---|---|---|---|
500mb/ |
S002 | 327,680,270 | fixed | 5 | 0.170 / 0.198 / 0.207 / 0.215 | 4/4 ties |
200mb/ |
S007 | 168,492,559 | fixed | 5 | 0.185 / 0.211 / 0.223 / 0.269 | 4/4 ties |
100mb/ |
S011 | 96,203,053 | fixed | 5 | 0.171 / 0.196 / 0.213 / 0.226 | 4/4 ties |
50mb/ |
S018 | 42,582,202 | flexible | 4 | 0.184 / 0.193 / 0.195 / 0.210 | 12/12 ties |
25mb/ (recommended) |
S018 | 24,267,610 | flexible | 3 | 0.062 / 0.073 / 0.092 / 0.103 | 12/12 ties |
For the previous (S017) student, the 25mb sound result covers the counted hidden-sentence session (8 unseen sentences, 8 ties) and the four-length test (3 ties, 1 S017 win), 12 pairs from listener-1 with no reference win, so the written gate passes for that listener. An earlier 8-pair hidden session without the play-to-end gate is in the log and is not counted. A second listener (listener-2) ran the four-length test only: 3 S017 preferences and 1 reference preference (15 s). Under the strict written rule that is one reference preference; the author judges it acceptable because the smaller model was preferred in 3 of 4 pairs. Listener-1 is the project author; the test was blind but not independent, and the author judged listener-2's single reference preference acceptable. 500mb to 100mb passed the four-length test, 50mb passed four lengths plus 8 hidden sentences.
Folder layout:
README.md manifest.json (index of tiers) LICENSE THIRD_PARTY_NOTICES.md .gitattributes
500mb/ 200mb/ 100mb/ 50mb/ 25mb/ each: manifest.json + its .mlpackage folders
25mb/af_heart_f32.bin the only voice file (see below)
Each tier's manifest.json lists the required packages with compiled sizes, SHA-256 hashes, compute units set in that tier's harness, inputs and outputs (names, dtypes, shapes or ranges, and multifunction function names read from the package specs), the voice or style source, the metrics with their source result files, and the harness project spec.
The 500mb, 200mb and 100mb tiers support only the five frozen benchmark shapes. They are fixed-shape multifunction packages with token functions t56, t110, t237, t260, t280 and frame functions f146, f275, f567, f614, f633; they cannot synthesize arbitrary text lengths. Flexible token and frame lengths start at the 50mb tier (S014).
Only the 25mb harness loads a voice table (25mb/af_heart_f32.bin, 522,240 bytes, byte-identical to the harness's bundled af_heart.bin). The 500mb, 200mb, 100mb and 50mb harnesses take their af_heart style rows from the frozen benchmark inputs (benchmark/inputs/bench.json in the GitHub repository), so no voice file is shipped for them. Upstream publishes the voices under the same Apache-2.0 declaration as the weights.
Compiled models total 327,680,270 bytes. Kokoro-82M v1.0 split into five stages, fp32, with the five shapes of each stage sharing one weight file (coremltools save_multifunction). Fixed shapes only. This tier is built from fixed-shape multifunction packages. It supports ONLY the five frozen benchmark shapes (token functions t56, t110, t237, t260, t280 and frame functions f146, f275, f567, f614, f633). Arbitrary text lengths are not supported. Flexible token and frame lengths start at the 50mb tier (S014).
| Package | Compiled bytes | Compute units | Interface |
|---|---|---|---|
kokoro_text_fp32.mlpackage |
25,469,752 | .all |
functions t56, t110, t237, t260, t280; e.g. t56: input_ids int32[1, 56] -> encoded float32[1, 512, 56] |
kokoro_prosody_fp32.mlpackage |
53,708,437 | .all |
functions t56, t110, t237, t260, t280; e.g. t56: input_ids int32[1, 56], encoded float32[1, 512, 56], style float32[1, 256] -> duration_hidden float32[1, 56, 640], duration_logits float32[1, 56, 50], text_features float32[1, 512, 56] |
kokoro_pitch_fp32.mlpackage |
33,959,547 | .all |
functions f146, f275, f567, f614, f633; e.g. f146: aligned float32[1, 640, 146], style float32[1, 128] -> pitch float32[1, 292], energy float32[1, 292] |
kokoro_decoder_fp32.mlpackage |
134,687,955 | .all |
functions f146, f275, f567, f614, f633; e.g. f146: text float32[1, 512, 146], pitch float32[1, 292], energy float32[1, 292], style float32[1, 128] -> features float32[1, 512, 292] |
kokoro_generator_fp32.mlpackage |
79,854,579 | .all |
functions f146, f275, f567, f614, f633; e.g. f146: features float32[1, 512, 292], style float32[1, 128], spectrum float32[1, 22, 17521] -> magnitude float32[1, 11, 17521], phase float32[1, 11, 17521] |
Median RTF (iPhone 12): 3s 0.170, 7s 0.198, 15s 0.207, 30s 0.215 (gate 0.30; source benchmark/results/size-shared-speed.json).
Sound: 4 ties of 4 blind pairs, 0 reference preferred (benchmark/results/size-shared-listen.json).
Stability: 3607 s, 323 loops, finished (benchmark/results/size-shared-stability.json).
Voice: no voice file; style rows come from the frozen benchmark/inputs/bench.json.
Compiled models total 168,492,559 bytes. S002 stack with the decoder and generator weights quantized to int8 (per output channel, weight-only). Text, prosody and pitch stay fp32. Fixed shapes only. This tier is built from fixed-shape multifunction packages. It supports ONLY the five frozen benchmark shapes (token functions t56, t110, t237, t260, t280 and frame functions f146, f275, f567, f614, f633). Arbitrary text lengths are not supported. Flexible token and frame lengths start at the 50mb tier (S014).
| Package | Compiled bytes | Compute units | Interface |
|---|---|---|---|
kokoro_text_fp32.mlpackage |
25,469,752 | .all |
functions t56, t110, t237, t260, t280; e.g. t56: input_ids int32[1, 56] -> encoded float32[1, 512, 56] |
kokoro_prosody_fp32.mlpackage |
53,708,437 | .all |
functions t56, t110, t237, t260, t280; e.g. t56: input_ids int32[1, 56], encoded float32[1, 512, 56], style float32[1, 256] -> duration_hidden float32[1, 56, 640], duration_logits float32[1, 56, 50], text_features float32[1, 512, 56] |
kokoro_pitch_fp32.mlpackage |
33,959,547 | .all |
functions f146, f275, f567, f614, f633; e.g. f146: aligned float32[1, 640, 146], style float32[1, 128] -> pitch float32[1, 292], energy float32[1, 292] |
kokoro_decoder_int8.mlpackage |
34,151,789 | .all |
functions f146, f275, f567, f614, f633; e.g. f146: text float32[1, 512, 146], pitch float32[1, 292], energy float32[1, 292], style float32[1, 128] -> features float32[1, 512, 292] |
kokoro_generator_int8.mlpackage |
21,203,034 | .all |
functions f146, f275, f567, f614, f633; e.g. f146: features float32[1, 512, 292], style float32[1, 128], spectrum float32[1, 22, 17521] -> magnitude float32[1, 11, 17521], phase float32[1, 11, 17521] |
Median RTF (iPhone 12): 3s 0.185, 7s 0.211, 15s 0.223, 30s 0.269 (gate 0.30; source benchmark/results/size-int8-dg-speed.json).
Sound: 4 ties of 4 blind pairs, 0 reference preferred (benchmark/results/size-int8-dg-listen.json).
Stability: 3625 s, 146 loops, finished (benchmark/results/size-int8-dg-stability.json).
Voice: no voice file; style rows come from the frozen benchmark/inputs/bench.json.
Compiled models total 96,203,053 bytes. Int8 text embeddings, int4 prosody text branch, int8 pitch, int4 decoder and generator. Activations and I/O stay fp32. Fixed shapes only. This tier is built from fixed-shape multifunction packages. It supports ONLY the five frozen benchmark shapes (token functions t56, t110, t237, t260, t280 and frame functions f146, f275, f567, f614, f633). Arbitrary text lengths are not supported. Flexible token and frame lengths start at the 50mb tier (S014).
| Package | Compiled bytes | Compute units | Interface |
|---|---|---|---|
kokoro_text-embedding-int8.mlpackage |
24,392,490 | .all |
functions t56, t110, t237, t260, t280; e.g. t56: input_ids int32[1, 56] -> encoded float32[1, 512, 56] |
kokoro_prosody-text-int4.mlpackage |
34,156,234 | .all |
functions t56, t110, t237, t260, t280; e.g. t56: input_ids int32[1, 56], encoded float32[1, 512, 56], style float32[1, 256] -> duration_hidden float32[1, 56, 640], duration_logits float32[1, 56, 50], text_features float32[1, 512, 56] |
kokoro_pitch_int8.mlpackage |
8,892,606 | .all |
functions f146, f275, f567, f614, f633; e.g. f146: aligned float32[1, 640, 146], style float32[1, 128] -> pitch float32[1, 292], energy float32[1, 292] |
kokoro_decoder-all-int4.mlpackage |
17,369,455 | .all |
functions f146, f275, f567, f614, f633; e.g. f146: text float32[1, 512, 146], pitch float32[1, 292], energy float32[1, 292], style float32[1, 128] -> features float32[1, 512, 292] |
kokoro_generator-all-int4.mlpackage |
11,392,268 | .all |
functions f146, f275, f567, f614, f633; e.g. f146: features float32[1, 512, 292], style float32[1, 128], spectrum float32[1, 22, 17521] -> magnitude float32[1, 11, 17521], phase float32[1, 11, 17521] |
Median RTF (iPhone 12): 3s 0.171, 7s 0.196, 15s 0.213, 30s 0.226 (gate 0.30; source benchmark/results/size-s011-speed.json).
Sound: 4 ties of 4 blind pairs, 0 reference preferred (benchmark/results/size-s011-listen.json). Listener note: some clips sounded slightly lower in volume, not enough to prefer either side (measured RMS about 0.5 dB below the reference). The later 120-sentence test of the shared int4 decoder/generator found a metallic edge (see S014 pilot in the log); this tier was only scored with the four-length test.
Stability: not run: the 60-minute loop was made optional on 2026-10-16 and is not a gate.
Voice: no voice file; style rows come from the frozen benchmark/inputs/bench.json.
Compiled models total 42,582,202 bytes. S018 width-256 student frontend (fine-tuned from the S014 student), Kokoro int8 pitch, int4 decoder, mixed int4/int8 generator (S014 mixed8), all flexible length. Flexible token length (1 to 512 tokens) and frame length: the packages accept any length in range, so arbitrary sentences work once phoneme ids are supplied.
| Package | Compiled bytes | Compute units | Interface |
|---|---|---|---|
kokoro_student_w256.mlpackage |
6,076,256 | .all |
input_ids int32[1, 1] range [[1, 1], [1, 512]], style float32[1, 256] -> duration_hidden float16[dynamic], duration_logits float16[dynamic], text_features float16[dynamic] |
kokoro_pitch_int8_flex.mlpackage |
8,622,252 | .all |
aligned float32[1, 640, 1] range [[1, 1], [640, 640], [1, 2048]], style float32[1, 128] -> pitch float32[dynamic], energy float32[dynamic] |
kokoro_decoder_int4_flex.mlpackage |
17,124,260 | .all |
text float32[1, 512, 1] range [[1, 1], [512, 512], [1, 2048]], pitch float32[1, 2] range [[1, 1], [2, 4096]], energy float32[1, 2] range [[1, 1], [2, 4096]], style float32[1, 128] -> features float32[dynamic] |
kokoro_generator_mixed8_flex.mlpackage |
10,759,434 | .cpuAndGPU |
features float32[1, 512, 2] range [[1, 1], [512, 512], [2, 4096]], style float32[1, 128], spectrum float32[1, 22, 121] range [[1, 1], [22, 22], [121, 245761]] -> magnitude float32[dynamic], phase float32[dynamic] |
S018 student, af_heart, 50mb chain, Mac Core ML CPU_ONLY, speed 1.0, same token ids and style rows for every arm: held-out WER reference 2.93%, S017 student 19.57%, S018 student 3.86% (benchmark/results/size-s018-score-heldout-50mb.json); neutral A/B WER reference 1.48%, S017 22.22%, S018 0.74% (benchmark/results/size-s018-score-abn-50mb.json). DTW log-mel 2.754 dB against S017's 1.901 dB: worse by 0.853 dB, recorded not gated (benchmark/results/size-s018-dtw-50mb.json).
Previous student (S014 mixed8 (same student as S017); Hugging Face commit e7ed75f): Median RTF (iPhone 12): 3s 0.173, 7s 0.181, 15s 0.189, 30s 0.197 (gate 0.30; source benchmark/results/size-s014-m8-speed.json). Sound: 12 ties of 12 blind pairs, 0 reference preferred (benchmark/results/size-s014-m8-listen.json). The 12 ties were the 4 four-length pairs plus 8 hidden-sentence pairs.
Median RTF (iPhone 12) (S018 student): 3s 0.184, 7s 0.193, 15s 0.195, 30s 0.210 (gate 0.30; source benchmark/results/size-s018-speed-50mb.json).
Sound (S018 student): 12 ties of 12 blind pairs, 0 reference preferred (benchmark/results/size-s018-50mb-listen-s018-50mb.json, benchmark/results/size-s018-50mb-listen-s018-50mb-four.json).
Stability: not run: the 60-minute loop is not a gate.
Voice: no voice file; style rows come from the frozen benchmark/inputs/bench.json.
Recommended default tier. Compiled models total 24,267,610 bytes. S018 width-256 student (fine-tuned from the S014 student), Kokoro int8 flexible pitch, pruned and distilled student vocoder (int8). The vocoder runs CPU-only. Flexible token length (1 to 512 tokens) and frame length: the packages accept any length in range, so arbitrary sentences work once phoneme ids are supplied.
| Package | Compiled bytes | Compute units | Interface |
|---|---|---|---|
kokoro_student_w256.mlpackage |
6,076,256 | .all |
input_ids int32[1, 1] range [[1, 1], [1, 512]], style float32[1, 256] -> duration_hidden float16[dynamic], duration_logits float16[dynamic], text_features float16[dynamic] |
kokoro_pitch_int8_flex.mlpackage |
8,622,252 | .all |
aligned float32[1, 640, 1] range [[1, 1], [640, 640], [1, 2048]], style float32[1, 128] -> pitch float32[dynamic], energy float32[dynamic] |
kokoro_s015_vocoder_int8.mlpackage |
9,569,102 | .cpuOnly |
text float32[1, 512, 1] range [[1, 1], [512, 512], [1, 2048]], pitch float32[1, 2] range [[1, 1], [2, 4096]], energy float32[1, 2] range [[1, 1], [2, 4096]], style float32[1, 128], spectrum float32[1, 22, 121] range [[1, 1], [22, 22], [121, 245761]] -> magnitude float32[dynamic], phase float32[dynamic] |
S018 student, af_heart, 25mb chain, Mac Core ML CPU_ONLY, speed 1.0, same token ids and style rows for every arm: held-out WER reference 2.93%, S017 student 19.57%, S018 student 3.86% (benchmark/results/size-s018-score-heldout-25mb.json); neutral A/B WER reference 1.48%, S017 20.00%, S018 0.74% (benchmark/results/size-s018-score-abn-25mb.json). DTW log-mel 2.576 dB against S017's 1.787 dB: worse by 0.789 dB, recorded not gated (benchmark/results/size-s018-dtw-25mb.json).
Previous student (S017; Hugging Face commit e7ed75f): Median RTF (iPhone 12): 3s 0.060, 7s 0.072, 15s 0.096, 30s 0.109 (gate 0.30; source benchmark/results/size-s017-speed.json). Sound: 11 ties of 16 blind pairs, 4 preferred the tier's output, 1 reference preferred (benchmark/results/size-s017-listen.json, benchmark/results/size-s017-listen-four.json). listener-1: 12 pairs, 11 ties, 1 S017 preference, 0 reference preferences, so the written rule passes. listener-2 (four lengths): 3 S017 preferences and 1 reference preference (15 s). Under the strict written rule that session has one reference preference; the author judges this acceptable because the smaller model was preferred in 3 of 4 pairs. Listener-1 is the project author; the test was blind but not independent, and the author judged listener-2's single reference preference acceptable.
Median RTF (iPhone 12) (S018 student): 3s 0.062, 7s 0.073, 15s 0.092, 30s 0.103 (gate 0.30; source benchmark/results/size-s018-speed-25mb.json).
Sound (S018 student): 12 ties of 12 blind pairs, 0 reference preferred (benchmark/results/size-s018-25mb-listen-s018.json, benchmark/results/size-s018-25mb-listen-s018-four.json).
Stability: not run: the 60-minute loop is not a gate.
Voice: af_heart_f32.bin (522,240 bytes), models plus voice 24,789,850.
| Item | Bytes |
|---|---|
| Compiled Core ML models, all three | 24,267,610 |
af_heart fp32 voice table |
522,240 |
| Models plus voice table | 24,789,850 |
Validation-harness .app, unsigned Release (recorded, not graded) |
24,976,571 |
Per model, compiled: kokoro_student_w256 6,076,256; kokoro_pitch_int8_flex 8,622,252; kokoro_s015_vocoder_int8 9,569,102.
Kokoro phoneme token ids + `af_heart` style row
-> kokoro_student_w256 (.all) S018 width-256 student (fine-tuned from S014): text body and durations
-> Swift: duration rounding, token-to-frame alignment
-> kokoro_pitch_int8_flex (.all) Kokoro pitch/energy predictor, int8, flexible length
-> Swift SourceDSP (harmonic source, STFT)
-> kokoro_s015_vocoder_int8 (CPU ONLY) S015 pruned student vocoder, int8
-> Swift inverse STFT -> 24 kHz audio
The vocoder must run CPU-only on the tested iPhone 12. With .cpuAndGPU iOS killed the app at 567 frames and above. In the S014 (50mb) tier the generator runs on .cpuAndGPU because the flexible generator fails shape deduction under .all on the phone.
Previous (S017) student speed (iPhone 12, Release, 2 warm-ups discarded, median of 10, phone charging, thermal state serious; gate median RTF 0.30 or lower):
| Passage | Audio (s) | Median RTF | p90 RTF |
|---|---|---|---|
| 3s | 3.575 | 0.060 | 0.062 |
| 7s | 6.800 | 0.072 | 0.074 |
| 15s | 14.175 | 0.096 | 0.101 |
| 30s | 31.250 | 0.109 | 0.111 |
S018 student speed (iPhone 12, Release, 2 warm-ups discarded, median of 10; gate median RTF 0.30 or lower):
| Passage | Median RTF | p90 RTF |
|---|---|---|
| 3s | 0.062 | 0.063 |
| 7s | 0.073 | 0.074 |
| 15s | 0.092 | 0.094 |
| 30s | 0.103 | 0.103 |
Sound (S018 student): 12 ties of 12 blind pairs, 0 reference preferred (benchmark/results/size-s018-25mb-listen-s018.json, benchmark/results/size-s018-25mb-listen-s018-four.json).
af_heart; a tier passes unless the listener prefers the reference (ties count for neither). 500mb, 200mb and 100mb: four-length test, 4 ties. 50mb: four lengths plus 8 hidden sentences, 12 ties. 25mb (S017 student): a short hidden-sentence session (8 unseen sentences, 2 to 4 s clips, randomized sides, play-to-end gate; 8 ties, 0 reference wins) and the four-length test (3 ties, 1 S017 preference at 30 s, 0 reference wins), both by listener-1, so the written gate passes for that listener. An earlier hidden session without the play-to-end gate is not counted. A second listener (listener-2) ran the four-length test only: 3 S017 preferences and 1 reference preference (15 s). Under the strict written rule that is one reference preference; the author judges it acceptable because the smaller model was preferred in 3 of 4 pairs. Listener-1 is the project author; the test was blind but not independent, and the author judged listener-2's single reference preference acceptable. The 100mb listener noted slightly lower volume on some clips. A later 120-sentence test found a metallic edge in the int4 decoder/generator stack that the four-length test missed; that is why the 50mb tier restores int8 on part of the generator..all. Frame counts from the Mac Core ML chain equal the phone's on the benchmark cases and on all 120 listening clips. Older tiers were checked with different, smaller Mac chain checks listed in their manifests.kokoro_student_w256: the S018 student, a 3.0 M parameter student fine-tuned from the S014 student (checkpoints/student-w256-b-step10000.pt) on general text plus targeted sentences, with Kokoro as the teacher. The S014 student was distilled from Kokoro-82M on text from public-domain Project Gutenberg books plus templated sentences.kokoro_s015_vocoder_int8: student vocoder initialized by structured pruning of Kokoro's decoder and generator, refit and distilled against Kokoro, int8.kokoro_pitch_int8_flex, the 50mb decoder and generator: original Kokoro weights, flexible-length, quantized.25mb/af_heart_f32.bin: the upstream voices/af_heart.pt (SHA-256 0ab5709b8ffab19bfd849cd11d98f75b60af7733253ad0d67b12382a102cb4ff) as 510 x 256 float32.kokoro-v1_0.pth SHA-256 496dba118d1a58f5f3db2efc88dbdc216e0483fc89fe6e47ee1f2c53f18ad1e4. Details and notices: THIRD_PARTY_NOTICES.md.checkpoints/ holds two trained PyTorch checkpoints: the S014 student (the starting point of the S018 student, which is trained from it with the recipe in the GitHub repository's docs/README_RETRAIN.md; the S018 student's own checkpoint is not published) and the vocoder behind the 25mb package. s015_convert.py in the GitHub repository re-runs the vocoder conversion without retraining. Same license and provenance as the packages. They are not needed to run the tiers.
| File | Bytes | SHA-256 |
|---|---|---|
checkpoints/student-w256-b-step10000.pt |
12,039,760 | 191eba7351f6d694a5e3f63c222a706a1efa7dbecfe92e0ab790b8e95f797d47 |
checkpoints/vocoder-v4-prune-step10000.pt |
46,058,379 | 32b0318618362ddcf63ca98b2581f1d656f997ecc07537fa7ccd15b4c8109745 |
student-w256-b-step10000.pt is the S014 width-256 student (weights, config, step, eval); the S017 student package came from it directly. vocoder-v4-prune-step10000.pt is the S015 pruned student vocoder (training run v4-prune) at step 10000; it also carries the unused S015 pitch student (the shipped pitch model is the Kokoro int8 package). Neither holds optimizer or discriminator state.
Apache-2.0. Kokoro-82M weights and voices are published by hexgrad under Apache-2.0 (the upstream model card declares license: apache-2.0 and states the weights are Apache-licensed), so redistributing derived models and the voice table is compatible. Upstream notes that Kokoro v1.0 training data included CC BY audio (Koniwa tnc, SIWIS); see THIRD_PARTY_NOTICES.md. Copyright 2026 The kokoro-82m-coreml-size-lab contributors for the original work in this repository.
The GitHub repository's scripts/download_models.py qmohits/kokoro-82m-coreml-size-tiers --tier <tier> downloads one tier (default 25mb; --tier all for everything) into artifacts/hf/<tier>/ and verifies every file against the manifest pinned in that repository. The harness projects there link to those folders and build unsigned with CODE_SIGNING_ALLOWED=NO.
The study behind these tiers is described in the paper Compact On-Device Speech Synthesis with Open-Weight Neural TTS: A Case Study of Kokoro-82M (preprint; arXiv ID to be added on submission).
@misc{singh2026kokorocoreml,
title = {Compact On-Device Speech Synthesis with Open-Weight Neural TTS: A Case Study of Kokoro-82M},
author = {Singh, Mohit},
year = {2026},
note = {Preprint},
url = {https://github.com/qmohitsingh/kokoro-82m-coreml-size-tiers}
}
500mb/kokoro_decoder_fp32.mlpackage/Data/com.apple.CoreML/weights/weight.bin 134 MB500mb/kokoro_generator_fp32.mlpackage/Data/com.apple.CoreML/weights/weight.bin 79 MB200mb/kokoro_prosody_fp32.mlpackage/Data/com.apple.CoreML/weights/weight.bin 53 MB500mb/kokoro_prosody_fp32.mlpackage/Data/com.apple.CoreML/weights/weight.bin 53 MBcheckpoints/vocoder-v4-prune-step10000.pt 46 MB100mb/kokoro_prosody-text-int4.mlpackage/Data/com.apple.CoreML/weights/weight.bin 34 MB200mb/kokoro_decoder_int8.mlpackage/Data/com.apple.CoreML/weights/weight.bin 34 MB200mb/kokoro_pitch_fp32.mlpackage/Data/com.apple.CoreML/weights/weight.bin 34 MB500mb/kokoro_pitch_fp32.mlpackage/Data/com.apple.CoreML/weights/weight.bin 34 MB200mb/kokoro_text_fp32.mlpackage/Data/com.apple.CoreML/weights/weight.bin 25 MB500mb/kokoro_text_fp32.mlpackage/Data/com.apple.CoreML/weights/weight.bin 25 MB100mb/kokoro_text-embedding-int8.mlpackage/Data/com.apple.CoreML/weights/weight.bin 24 MB200mb/kokoro_generator_int8.mlpackage/Data/com.apple.CoreML/weights/weight.bin 20 MB100mb/kokoro_decoder-all-int4.mlpackage/Data/com.apple.CoreML/weights/weight.bin 17 MB50mb/kokoro_decoder_int4_flex.mlpackage/Data/com.apple.CoreML/weights/weight.bin 17 MBcheckpoints/student-w256-b-step10000.pt 12 MB50mb/kokoro_generator_mixed8_flex.mlpackage/Data/com.apple.CoreML/weights/weight.bin 11 MB100mb/kokoro_generator-all-int4.mlpackage/Data/com.apple.CoreML/weights/weight.bin 10 MB25mb/kokoro_s015_vocoder_int8.mlpackage/Data/com.apple.CoreML/weights/weight.bin 9 MB100mb/kokoro_pitch_int8.mlpackage/Data/com.apple.CoreML/weights/weight.bin 9 MB25mb/kokoro_pitch_int8_flex.mlpackage/Data/com.apple.CoreML/weights/weight.bin 9 MB50mb/kokoro_pitch_int8_flex.mlpackage/Data/com.apple.CoreML/weights/weight.bin 9 MB25mb/kokoro_student_w256.mlpackage/Data/com.apple.CoreML/weights/weight.bin 6 MB50mb/kokoro_student_w256.mlpackage/Data/com.apple.CoreML/weights/weight.bin 6 MB25mb/af_heart_f32.bin 522.2 kBhexgrad/Kokoro-82M