Core ML packages of Haas-ja-v1.0, a Japanese speech recognition model: an INT8 encoder that runs on the Apple Neural Engine, plus the decoder and joint networks, the vocabulary, and the preprocessing constants. This is the file set that KeyVoice for Mac downloads for on-device Japanese dictation.
For: KeyVoice users (the app downloads these files itself), and developers who want this exact file layout with the constants needed to write their own pipeline. Not for: running speech recognition from this download alone; no inference code is included. If you want ready-to-run Swift or Python code, see Sanami/haas-ja-coreml. Platform: Apple Silicon, macOS 14 or iOS 17 and later by the package format. Measured on one Mac only (M5 Max, macOS 27.2.1). Japanese only.
hf download okayuji/Haas-ja-v1.0-CoreML-INT8 --local-dir ./haas-ja-coreml
Inspect an interface without running inference:
from coremltools.models.utils import load_spec
spec = load_spec("./haas-ja-coreml/encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel")
print(spec.description)
Load the encoder with .cpuAndNeuralEngine and the other three packages with .cpuOnly; frontend.json describes the preprocessing, the windowing of long audio, and the decoding rules.
In KeyVoice for Mac, the same files are downloaded from Settings → Models. App builds that include this download are released separately from this repository.
The first 4.57 s of one utterance from FLEURS (ja_jp test):
| System | Output |
|---|---|
| Reference: NeMo 2.7.3, fp32, CPU | 1537年にアスンシオンが創設されて以来、 |
| These packages, driven from Python with coremltools (encoder on CPU_AND_NE) | 1537年にアスンシオンが創設されて以来、 (19 tokens) |
The same audio in the KeyVoice pipeline (Swift, Debug build, M5 Max, macOS 27.2.1) took 31 ms when transcriptions ran back to back, and 116 ms for the first transcription after 20 s or more without inference.
Conditions for every row: Apple M5 Max, 128 GB, macOS 27.2.1, measured 2026-11-15 and 2026-11-16. "Python" is a coremltools 9.0 harness with the encoder on CPU_AND_NE. "App" is the KeyVoice Swift pipeline in a Debug build.
| Item | Value | Measured with |
|---|---|---|
| CER on FLEURS ja_jp test, 650 utterances (strict / flex / kana) | 3.664% / 2.957% / 2.330% | Python, jacer v1.2.0 |
| Same data, reference (NeMo 2.7.3, fp32, CPU) | 3.683% / 3.009% / 2.376% | Same scoring |
| Same data, official model card (bf16, H200) | 3.67% / 2.98% / 2.34% | As published; the jacer version used there was not confirmed |
| Overall speed, 50 FLEURS utterances | RTFx 280 (audio seconds per processing second) | Python |
| Encoder, one 15.04 s window | 25.3 ms | Python |
| 4.57 s utterance, end to end | 31 ms back to back; 116 ms first after 20 s or more idle | App |
| 28.2 s utterance, end to end | 103 ms back to back; 196 ms first after 20 s or more idle | App |
| First load on a machine | 7.8 s (Python), about 10 s (App) | Includes on-device preparation for the Neural Engine |
| Later loads | 0.10 s (Python), 0.16 s (App) | |
| Process footprint added by load and one transcription | 672 MiB | App, phys_footprint |
Haas-ja-v1.0.nemo with coremltools 9.0, in the same configuration as Sanami/haas-ja-coreml: a FastConformer encoder with a fixed 15.04 s window, converted at FLOAT16 and quantized to INT8 weights (linear symmetric, per channel); the decoder, joint_enc, and joint stay at FLOAT32.joint_enc, and joint weight files are byte-identical, and the INT8 encoder weights differ in 105 of 594,211,328 bytes, each by one quantization step.vocab.json lists the 3,072 SentencePiece pieces of the official tokenizer in ID order. window.f32 and mel_filter.f32 hold the analysis window and the mel filter bank taken from the checkpoint. frontend.json records the preprocessing, windowing, and decoding constants of the validated Python reference.Source: third-intelligence/Haas-ja-v1.0 at revision 660728d.
| Package | Inputs | Outputs | Compute units used in validation |
|---|---|---|---|
encoder.mlpackage |
audio_signal Float32 [1, 128, 1504] (zeros after length), length Int32 [1] |
encoded Float32 [1, 1024, 188] |
CPU and Neural Engine |
joint_enc.mlpackage |
encoded Float32 [1, 1024, 188] |
f Float32 [1, 188, 640] |
CPU |
decoder.mlpackage |
token Int32 [1], rec and conv Float32 [2, 1, 20480] |
g Float32 [1, 640], rec_out, conv_out |
CPU |
joint.mlpackage |
f and g Float32 [1, 640] |
token_id Int32 [1] (3,073 classes, blank = 3072), duration_id Int32 [1] (0 to 4 frames) |
CPU |
Preprocessing, as recorded in frontend.json: 16 kHz mono float32, pre-emphasis 0.97, n_fft 512, window length 400, hop 160, 128 mel bins, no dither at inference.
Audio longer than 15.04 s is processed in windows of 1,504 mel frames; 208 frames (2.08 s) are dropped at each inner edge and the kept encoder frames are concatenated.
Decoding is greedy TDT with the NeMo label-looping rules and at most 10 symbols per frame.
| Path | Bytes | Contents |
|---|---|---|
encoder.mlpackage |
594,906,238 | FastConformer encoder, 24 layers, INT8 weights |
decoder.mlpackage |
17,260,901 | Embedding, prediction network, and the prediction side of the joint |
joint_enc.mlpackage |
2,626,102 | Encoder side of the joint |
joint.mlpackage |
7,896,274 | Joint network with argmax over tokens and durations |
vocab.json |
23,660 | 3,072 pieces in ID order |
frontend.json |
10,924 | Preprocessing, windowing, and decoding constants |
window.f32 |
1,600 | Analysis window, 400 values, float32 little-endian |
mel_filter.f32 |
131,584 | Mel filter bank [128, 257], float32 little-endian |
Total 622,857,283 bytes, excluding this card, LICENSE, and NOTICE. Keep each .mlpackage directory intact.
.mlpackage to .mlmodelc and keep the compiled result next to it for reuse.Released under the Apache License 2.0; see NOTICE for attribution and the list of changes.
This is an independent conversion and is not affiliated with or endorsed by Third Intelligence.
encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin 594 MBdecoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin 17 MBjoint.mlpackage/Data/com.apple.CoreML/weights/weight.bin 8 MBjoint_enc.mlpackage/Data/com.apple.CoreML/weights/weight.bin 3 MB有文件?提交种子。
提交种子