This is an unofficial Core ML conversion of IBM's Granite Speech 5.0 470M TurboCTC, with 8-bit palettized weights, for on-device speech recognition on Apple Silicon Macs.
Source: ibm-granite/granite-speech-5.0-470m-turboctc at revision 91dcb0605daf65f88dbb04fef015c423241d941d. This is the multilingual release of 21 October 2026: English, French, German, Spanish, Portuguese, Italian and Japanese, with native punctuation and capitalization.
All model credit belongs to IBM Granite. This repository changes the format (a fixed-shape Core ML program with no attention mask, which behaves slightly differently from IBM's own inference; see Limitations), the weight precision (8-bit), one tokenizer setting, and adds change notices. IBM has not reviewed or endorsed it.
IBM describes the model as 16 conformer blocks trained with CTC, with a 16,384-token multilingual BPE head. It uses 8× temporal subsampling (100 Hz to 12.5 Hz), block attention over 128 frames, and self-conditioned CTC from the middle layer: 470M parameters in total. For training data, intended use, benchmarks and the technical report, see the IBM model card at the pinned revision.
IBM releases this model under the Apache License 2.0. The pinned source revision declares license: apache-2.0 in its card metadata, and its README states:
License: Apache 2.0
Apache-2.0 section 2 grants the right to "reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form". Section 4 requires that redistribution include a copy of the licence and a notice of changes. Accordingly:
LICENSE is the verbatim Apache-2.0 text from apache.org (SHA-256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30). The source repository ships no separate LICENSE or NOTICE file at this revision.MODIFICATIONS.md states what was changed, and each changed file carries its own notice: the Core ML model's metadata has license: Apache-2.0 and a modification_notice field, and tokenizer_config.json has a _modification_notice key. Unchanged source files are byte-identical.Do not confuse this model with ibm-granite/granite-speech-5.0-470m-turboctc-nc, a different, English-only model under CC-BY-NC-SA-4.0. That model was not used here.
| Format | Core ML ML Program (GraniteSpeech.mlpackage), minimum macOS 15 |
| Input | features, float16, shape [1, 16384, 320]: log-mel + delta features, frame-stacked (327.68 s of audio at 50 frames/s), zero-padded |
| Output | frame_ids, int32, shape [1, 4096]: argmax CTC token per 80 ms output frame (argmax inside the graph) |
| Weights | 8-bit uniform palettization, per-grouped-channel, group size 1, weight threshold 2048; activations fp16 |
| Frontend | not in the graph: compute features with the Hugging Face processor (Python) or Granite-MLX's GraniteFeatureExtractor (Swift) |
| Recommended compute units | CPU and GPU (cpu-gpu); Neural Engine placement was not measured |
| Layout | Compatible with Granite-MLX's Core ML recognizer (coreml_config.json schema) |
How it was produced. The converter scripts were run unmodified from Granite-MLX at commit 7ad6b19c698aac5aa8328c911e4a6eead456c5a1:
convert_granite_coreml.py --feature-frames 16384 --output-mode argmax --minimum-target macos15 traces an explicit-ops PyTorch reimplementation that loads the source state dict strictly.quantize_granite_coreml.py --method palette-uniform --bits 8 --granularity per-channel --block-size 1 --weight-threshold 2048 then compresses the weights.Versions: coremltools 9.0 with torch 2.7.0 for conversion (coremltools 9.0 fails to trace under torch 2.13); reference inference with transformers 5.16.1 and torch 2.13.0. Run on macOS 27.0.1, Apple M2 Max, on 2026-11-12/13 (America/Los_Angeles). Full provenance is in CONVERSION.json.
| File | Bytes | SHA-256 |
|---|---|---|
GraniteSpeech.mlpackage/Data/com.apple.CoreML/weights/weight.bin |
691,520,192 | 8c68dc517e440a83d026b82ff2fc25ac20e145f2fa0f71da4d369f09e6a7ba9f |
GraniteSpeech.mlpackage/Data/com.apple.CoreML/model.mlmodel |
374,542 | 76461d9b306d5e269c830e352824aa46d6f44d3ed816b9e58f27be46d2e21c1b |
coreml_config.json |
see SHA256SUMS |
|
tokenizer.json, config.json, processor_config.json, generation_config.json |
byte-identical to the source revision | |
tokenizer_config.json |
source file plus two keys (see below) |
Every file's SHA-256 is listed in SHA256SUMS; check with shasum -a 256 -c SHA256SUMS.
Tokenizer deviation. tokenizer_config.json adds "clean_up_tokenization_spaces": false and a _modification_notice string (the Apache-2.0 §4(b) change notice; Python transformers and swift-transformers both load the file with it, tested); nothing else differs from the source file (source SHA-256 2f61ece3468bf7ca7a1b6dd3fd5b809814315bea9c298feea035fda4931b9f02). swift-transformers 1.3.3 turns that cleanup on when the key is absent, and it strips the space before ? ! : ;, which corrupts French typography. Python transformers already leaves it off for this tokenizer, so Python output is unchanged.
Tested with the granite-mlx CLI 0.1.1, built from Granite-MLX 7ad6b19 with swift build -c release --product granite-mlx (Swift 6.4), on a local copy of this repository:
granite-mlx transcribe audio.wav --model /path/to/granite-speech-5.0-470m-turboctc-coreml-8bit --backend coreml \
--no-punctuate --output-format txt --output-dir out
--no-punctuate disables Granite-MLX's separate punctuation model; this Granite release punctuates natively. Use --output-format txt: compatibility was validated for raw text only. The CLI's default subtitle output (SRT) and other word-timed formats run words together with this tokenizer (see Limitations). Audio longer than 286.72 s is chunked automatically (see Limitations). Loading by Hugging Face repository id was not tested.
Tested with coremltools 9.0, transformers 5.16.1 and soundfile on macOS 27, using a local copy of this repository and 16 kHz mono audio of at most 327.68 s:
import numpy as np, soundfile as sf, coremltools as ct
from transformers import AutoProcessor
repo = "/path/to/granite-speech-5.0-470m-turboctc-coreml-8bit"
audio, sr = sf.read("audio.wav", dtype="float32") # 16 kHz mono
proc = AutoProcessor.from_pretrained(repo)
feats = proc(audio, sampling_rate=16000, return_tensors="np")["input_features"][0] # [T, 320]
x = np.zeros((1, 16384, 320), np.float16); x[0, :len(feats)] = feats # fixed shape, zero-padded
model = ct.models.MLModel(f"{repo}/GraniteSpeech.mlpackage", compute_units=ct.ComputeUnit.CPU_AND_GPU)
ids = model.predict({"features": x})["frame_ids"].reshape(-1)[: len(feats) // 4] # valid frames = floor(T/4)
collapsed, prev = [], None
for t in ids.tolist(): # greedy CTC: merge repeats, drop blank (0)
if t != prev and t != 0: collapsed.append(t)
prev = t
print(proc.tokenizer.decode(collapsed, group_tokens=False))
Pass group_tokens=False when decoding IDs that are already collapsed. Otherwise the tokenizer merges repeated tokens a second time.
Method. The reference is IBM's model in transformers 5.16.1, fp32 on CPU, with greedy CTC. Two reference modes are used:
The fixed corpus has 141 unique clips:
hf-internal-testing/librispeech_asr_dummy);Long-audio behaviour was tested separately on 4 constructed clips of 286.5–328 s. Text is compared after NFKC normalization, lower-casing and removing punctuation; WER is used for European languages, and CER with whitespace removed for Japanese. All rates are corpus-level per set. With 10 clips per FLEURS language these are small samples: they show conversion fidelity, not benchmark accuracy.
Results for this 8-bit package, in percent:
| Set (clips) | vs our fp16 package | vs official IBM inference | vs ground-truth transcripts (official IBM model in brackets) |
|---|---|---|---|
| LibriSpeech en (73) | 0.00 | 0.34 | 1.88 (1.71) |
| FLEURS fr (10) | 0.67 | 2.00 | 6.21 (7.19) |
| FLEURS de (10) | 0.00 | 0.00 | 2.86 (2.86) |
| FLEURS es (10) | 0.00 | 0.43 | 3.40 (3.40) |
| FLEURS pt (10) | 1.15 | 3.49 | 9.23 (10.77) |
| FLEURS it (10) | 0.43 | 0.43 | 2.55 (2.13) |
| FLEURS ja (10, CER) | 0.00 | 0.00 | 4.97 (4.97) |
The first two columns use the Python path above. The ground-truth column uses the Swift CLI. Our fp16 package itself equals the no-mask reference exactly by collapsed tokens on 141/141 clips. Through the Swift CLI with 286.72 s chunking, this 8-bit package differs from the matching chunked no-mask reference by 1 normalized word in 3,671 across the long clips.
Size and speed. The weight file is the same size as the existing community package iky1e/granite-speech-5.0-470m-turboctc-coreml-q8 (691,520,192 bytes), which uses the same recipe on the older English-only checkpoint. Measured with the Granite-MLX CLI, 5 interleaved rounds per package:
| Clip | This package, median | iky1e coreml-q8, median |
|---|---|---|
| 11 s | 0.766 s | 0.761 s |
| 328 s | 1.228 s | 1.237 s |
Peak RSS was 1.44 GB for both. These timings were measured on a busy machine (1-minute load average about 6–7) and are indicative only.
Fixed shape and no mask: not identical to IBM's own inference. The package always runs 16,384 frames, with zero padding and no attention mask. Measured on the no-mask reference over the 141 clips, compared with official variable-length inference:
In a 3-clip test, padding with a mask reproduced IBM's output exactly (max-abs logit difference 0), so the cause is the missing mask, not the weights. A mask-input variant is planned and not part of this repository.
8-bit cost. Compared with our fp16 Core ML package, the worst case is 1.15% (pt), with fr at 0.67% and it at 0.43%.
Original acceptance gates not met, and disclosed:
Silence and noise. The model emits a literal <|nospeech|> token, which decode returns as text unless you filter it. On 5 s of digital silence this package returns <|nospeech|>, while official inference returns a spurious "Il.". On 30 s of silence it returns an empty string. Both return <|nospeech|> on noise.
Long audio. One model call covers 327.68 s. Granite-MLX chunks audio longer than 286.72 s into 286.72 s windows with 20.48 s of context on each side, trimming context in frame space before CTC collapse. Results near chunk joins depend on that policy (see Validation).
Granite-MLX does not verify the weight hash. With a deliberately wrong weight_sha256 in coreml_config.json, the 7ad6b19 loader still loaded and transcribed. Verify SHA256SUMS yourself.
Swift tokenizer. Granite-MLX 7ad6b19 loads this tokenizer only by forcing the GPT-2 tokenizer class (the source class is ParakeetTokenizer, which swift-transformers 1.3.3 rejects). Decoding is correct for all seven languages in our tests when the shipped tokenizer_config.json is used.
Subtitle and word-timing output in Granite-MLX 7ad6b19. The CLI's default SRT output (and other word-timed formats) joins words without spaces, for example Andso,myfellowAmericans,..., because the timing path decodes one token at a time and this tokenizer's decoder strips each token's leading space. Raw text (--output-format txt, or decode on the collapsed IDs) is correct. A fix belongs in Granite-MLX.
Native punctuation. The model punctuates and capitalizes by itself. If your application also runs a separate punctuation or formatting model, expect overlap.
No Neural Engine placement, quiet-host latency, streaming or iOS measurements were made.