Low-rank updates to the encoder of wysie/whisper-large-v3-turbo-singlish-mlx, the MLX copy of Ming Jie Wong's whisper-large-v3-turbo-singlish, so it can encode 5 and 10 s windows instead of 30 s. This repo also has that encoder compiled for the Apple Neural Engine. Both were made for live captions, where most passes cover 1 to 10 s of speech.
Whisper always encodes 30 s, padding shorter audio. On an M4 Pro's Neural Engine the encoder takes 517 ms for 30 s, 105 ms for 10 s and 41 ms for 5 s. Without training, short windows wreck the output on short audio: the decoder falls into loops ("hold my hand hold my hand…"), wanders into other languages and writes punctuation this model never writes. With these updates, word error on SASRBench stays where 30 s windows put it, and live captions show a word 0.05 s after it's spoken instead of 0.85 s.
| File | What it is |
|---|---|
config.json |
The adapter's rank, scale and modules, and which encoder functions use it. |
adapter.safetensors |
Rank 16 LoRA on every linear of all 32 encoder blocks: query, key, value, out, mlp1, mlp2. 11.8M parameters, fp16, 24 MB. |
encoder.mlmodelc |
Core ML encoder with 8-bit weights, one copy shared by four functions: frames250 (5 s), frames500 (10 s), frames1500 (30 s) and silence. 625 MB. |
example.py |
Transcribes a clip with the Core ML encoder and the base model's MLX decoder. |
train_windows.py |
Makes the training targets and trains the adapter. |
whisper_mlx_to_coreml.py |
Builds encoder.mlmodelc from the base weights and the adapter. |
The decoder still gets 30 s of encoder features: the window's, then what the encoder makes of 30 s of
silence for the rest. The 5 and 10 s functions run the updates; silence is the updated encoder over
30 s of zeros and gives their tail. frames1500 is the base encoder unchanged. Audio over 10 s goes
through it, since 15 and 20 s windows cost 0.1 to 0.2 points of word error, trained or not.
pip install mlx-whisper==0.4.3 coremltools==9.0 huggingface_hub
python example.py clip.wav
The first run has the Neural Engine compile the encoder, about 40 s on an M4 Pro. macOS caches the compile for that path and that Python. Needs macOS 15 or later.
To use the adapter without Core ML, add 2.0 * (a @ b).T to each named linear's weight, where a is
in × 16 and b is 16 × out. Do that only when encoding a 5 or 10 s window, which is the first 500 or
1,000 frames of the usual 30 s log-mel, and take its tail from the updated encoder too.
Distillation from the unchanged model. The teacher is the base model at 30 s. The student is the same model with the adapter, run on the smallest window that holds the audio and followed by its own silent tail. The loss is the KL divergence from the teacher's next-token distribution, top 32 tokens, along the teacher's greedy transcript, including the position the no-speech probability is read from. The decoder stays frozen, and no human transcripts are used.
The audio is IMDA's National Speech Corpus parts 4, 5 and 6 as packaged in MERaLiON/Multitask-National-Speech-Corpus-v1: ASR-PART4-Train shard 0, PART5 shard 0, PART6 shards 0 and 80. Part 3 is left out because SASRBench comes from it. From those, 7,000 crops of 0.5 to 30 s, mostly under 10 s like live passes, and 1,500 more of 10 to 30 s. 30% of crops were decoded with timestamps and half with the previous crop's text as the prompt, as live captions do.
Two phases: 2,000 steps at a peak learning rate of 2e-4, then 1,500 at 1e-4 with the long crops added and more weight on the 15 and 20 s windows. AdamW with bias correction, cosine decay, fp16 with loss scaling, batches of 8, 4, 3, 2 and 1 for the 5, 10, 15, 20 and 30 s windows. On an M4 Pro with 24 GB, the teacher passes took 80 minutes and training 95.
All on an M4 Pro MacBook Pro, against the same model with 30 s windows on the Neural Engine.
| 30 s windows | Short windows | |
|---|---|---|
| Word error, SASRBench-v1 first shard, 937 clips, 3.8 h | 12.96% | 12.98% |
| Drift from the 30 s output on 628 crops of 1 to 4.5 s, as word error | reference | 8.8%; 357% untrained |
| Live captions: word shown after it's spoken, median and p90 | 0.85 s, 1.15 s | 0.05 s, 0.28 s |
| Live captions: time per pass | 628 ms | 87 ms |
| Live captions: whole-system power | 15.1 W | 9.2 W |
A paired bootstrap of 4,000 resamples over the 937 clips puts the difference in word error between −0.01 and +0.08 points. The same model on MLX at 30 s scores 12.95%. Word error is scored with whisper_normalizer's English normalizer; references keep discourse particles and drop fillers, and the model's split contractions ("don t") are rejoined first. The live numbers come from streaming a 3.3 min SASRBench conversation through an app in real time, re-transcribing every 0.15 s; power is battery telemetry over 2 minutes, against 3.5 W idle and 46.3 W for the model on MLX.
Tried and dropped:
Only tested in English with the language forced. The output keeps the base model's style: lowercase, no punctuation, "don t". On very short clips the short-window output still differs from the 30 s output by 8.8% word error, not always for the worse. SASRBench is one benchmark, recorded with close-talk microphones in a quiet room.
MIT, like the base model. The training audio contains information from the National Speech Corpus, accessed in October 2026 from IMDA through MERaLiON's packaging, which is made available under the terms of the Singapore Open Data Licence version 1.0.
encoder.mlmodelc/weights/weight.bin 652 MBadapter.safetensors 24 MBencoder.mlmodelc/coremldata.bin 0.4 kBencoder.mlmodelc/analytics/coremldata.bin 0.2 kBwysie/whisper-large-v3-turbo-singlish-mlx