robbiemu/paper2-kokoro-coreml-components
Kokoro Core ML components
Four downloadable Core ML model packages: FP32 and FP16 duration heads, plus the fixed-115-frame conditioning and generator components.
<!-- release-metadata:start -->
Model identity and compatibility
- Upstream model: hexgrad/Kokoro-82M. The study checkpoint is pinned to
f3ff3571791e39611d31c381e3a41a3af07b4987. - Derivation: Core ML conversion of selected duration and decoder components, with precision and graph-layout alternatives.
- Language scope: English is the retained study scope; this release does not establish multilingual compatibility.
- Interface: The duration heads take predictor states with shape [1,128,512]. The conditioning and generator packages have a fixed 115-frame alignment; the generator returns magnitude and phase arrays. Host-side alignment, pitch/noise construction and waveform reconstruction remain outside these packages.
- Validation scope: Duration comparisons cover 24 selected requests. The accepted waveform composition covers one fixed input, with separate hardware replay; this is not a general text-to-audio quality evaluation.
- Data role: Conversion and replay use retained upstream-model inputs and outputs; no new speech-model pretraining is claimed.
The base-model link records component lineage. Conversion, graph adjustment and fitting are described separately above. Core ML input/output dtypes do not by themselves specify internal compute precision.
The documented Python Core ML loading path requires a compatible macOS Core ML runtime. Recorded Core ML Tools versions: 9.0. Exact specification versions, conversion dates, source-framework versions and I/O dtypes are preserved in coreml_specs.json; current cross-version runtime compatibility has not been retested.
release_metadata.json preserves this scope as machine-readable data. The private evidence dataset is linked for experiment records and is not labeled as a training dataset.
File and tensor details
This release uses Core ML packages. It contains no Safetensors weights, so the Hub's automatic Safetensors panel does not apply.
Hugging Face's Safetensors metadata parser reads tensor headers from Safetensors files; README metadata alone cannot supply that panel.
Browse the per-file details, or inspect tensor names, shapes and storage dtypes. These sizes include separate alternatives; they are not a combined model parameter count.
Core ML input/output dtypes describe the interface, not internal compute or weight precision. <!-- release-metadata:end -->
Model files
Download and load
from huggingface_hub import snapshot_download
from pathlib import Path
import coremltools as ct
root = Path(snapshot_download("robbiemu/paper2-kokoro-coreml-components"))
package = root / "models/duration-fp32.mlpackage"
spec = ct.utils.load_spec(str(package))
print(spec.description.input)
model = ct.models.MLModel(str(package), compute_units=ct.ComputeUnit.CPU_ONLY)
# Supply the named arrays and shapes listed in coreml_specs.json:
# output = model.predict(inputs)The example selects CPU execution explicitly. Use the study’s declared compute policy when reproducing a comparison. coreml_specs.json lists exact input/output names, shapes and conversion metadata. manifest.json records file sizes, SHA-256 hashes and provenance paths. python restore.py --verify checks all model files.
Scope and result
The retained composition uses the CPU FP32 duration policy and preserves source pitch, noise and harmonic construction around the converted suffix. The reported waveform acceptance is one fixed input, with separate hardware replay. These components require the host orchestration and remaining upstream Kokoro operations; they are not a complete text-to-audio checkpoint.
These model files were published from retained study artifacts. Their integrity and Core ML interfaces were checked; publication does not constitute a new inference or deployment validation. Experimental evidence, diagnostic probes, transfer intermediates and optimization history are held in separate private repositories.
Provenance and license
Upstream notices/model cards are retained under licenses/; the applicable model license is in LICENSE. The private evidence dataset records historical source revisions, execution policies and results.
