Whisper turbo is 8x faster than large-v3 — we measured it in MLX on an M3 Max: 3.97x https://hackbig.com/blog/whisper-turbo-vs-large-v3-mlx-m3-max Files: - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/README.md.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/aggregate.py.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/bench.py.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/common.py.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/data__halluc_manifest.csv.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/data__long_10min.json.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/data__refs.csv.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/data__sampled_ids.json.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/prepare_data.py.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__accuracy.csv.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__breakdown.csv.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__dtypes.json.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__environment.json.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__halluc.csv.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__loadmem.csv.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__speed.csv.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_large-v3_r0.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_large-v3_r1.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_large-v3_r2.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_large-v3_r3.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_large-v3_r4.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_tiny_r0.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_tiny_r1.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_tiny_r2.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_tiny_r3.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_tiny_r4.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_turbo_r0.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_turbo_r1.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_turbo_r2.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_turbo_r3.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/raw_dryrun__transcripts__long_turbo_r4.txt.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/results.json.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/results_dryrun.json.txt - https://hackbig.com/blog-data/whisper-turbo-vs-large-v3-mlx-m3-max/run.sh.txt # Whisper large-v3-turbo vs large-v3 on MLX (M3 Max): is it ~8x faster at ~the same accuracy, and does it hallucinate more? The myth under test: *"whisper-large-v3-turbo is ~8x faster than large-v3 in MLX on an M3 Max at nearly the same accuracy."* There is a second question too: does turbo invent more text from silence and noise? `whisper-tiny` is included as a floor. Models (MLX community conversions, run with mlx-whisper 0.4.3): | label | repo | |----------|---------------------------------------| | large-v3 | `mlx-community/whisper-large-v3-mlx` | | turbo | `mlx-community/whisper-large-v3-turbo`| | tiny | `mlx-community/whisper-tiny-mlx` | Every model gets the same decode settings: `language="en"`, `task="transcribe"`, `fp16=True`, the default temperature fallback `(0.0, 0.2, …, 1.0)`, `compression_ratio_threshold=2.4`, `logprob_threshold=-1.0`, `no_speech_threshold=0.6`, `condition_on_previous_text=True` and no initial prompt. The weights are cast to fp16 at load time, and the stored dtype is recorded. ## What it measures | block | what | output | |---|---|---| | `env` | machine, OS, chip, memory, power source, every package version, model snapshot hashes | `raw/env.json` | | `loadmem` | `load_model` time plus peak RSS and MLX peak memory, in a fresh subprocess per model, 3 reps in rotated order. Kept separate from speed. | `raw/loadmem.csv` | | `breakdown` | One 30 s window: encoder time vs greedy decode time, separated by `mx.eval` barriers. 1 warm-up and 3 reps. | `raw/breakdown.csv` | | `speed` | A fixed 10-minute WAV (93 test-clean utterances joined with ffmpeg concat, 598.8 s of speech plus 1.2 s pad). 1 warm-up and 5 timed runs per model, timed from load-complete to transcript. Reports median, min–max, RTF, ×realtime, speedup vs large-v3 and long-form WER. | `raw/speed.csv`, `raw/transcripts/` | | `accuracy` | 200 test-clean and 200 test-other utterances, sampled with seed 20261103 (IDs in `data/sampled_ids.json`). Whisper `EnglishTextNormalizer` plus jiwer. Reports corpus WER per split with bootstrap 95% CIs (1000 resamples, by utterance), paired-bootstrap Δ WER vs large-v3, and S/D/I counts. | `raw/accuracy.csv` | | `halluc` | 40 × 30 s non-speech clips (10 digital silence, 10 white noise at −50 dBFS RMS, 10 pink noise at −30 dBFS RMS, 10 brown noise plus 50 Hz hum) and 20 utterances with 20 s of trailing digital silence. Each runs under 3 settings. Reports the non-empty count, words per clip, top invented phrases and invented trailing words. | `raw/halluc.csv` | Model order is rotated A-B-C, B-C-A, C-A-B: across loadmem reps, across speed rounds, and per utterance or clip in accuracy and halluc. This keeps thermal drift and cache effects from always favouring one model. `pmset -g therm` is logged before and after every block (`logs/thermal.jsonl`). The hallucination settings are: * `default`: the mlx-whisper defaults listed above. These are the thresholds the spec calls "explicitly applied", because 2.4 / −1.0 / 0.6 *are* the defaults, so a separate run with them would be identical to this one. They are written out explicitly in `common.BASE_DECODE`. * `gates_off`: `no_speech_threshold=None` and `logprob_threshold=None`. This shows how much the silence gates are doing. * `no_condition`: `condition_on_previous_text=False`. `results.json` follows the schema `{question, environment, runs, metrics{name:{value,unit,samples,note}}, observations, caveats}`. `runs` is the number of timed speed runs completed per model (5 when nothing was cut short; the minimum across models). Seed, decode settings, row counts and file paths are in `run_details`. Every number the post cites is a key in `metrics`. ## Reproduce Hardware: Apple Silicon with a Metal GPU. The target machine is an M3 Max (40-core GPU); `environment` records the actual machine. ffmpeg must be on `PATH` (`/opt/homebrew/bin/ffmpeg`). ```zsh # 1. setup (needs network: PyPI + Hugging Face). Already done in this directory. python3.13 -m venv .venv && .venv/bin/pip install -r requirements.lock export HF_HUB_DISABLE_XET=1 .venv/bin/python -c "from huggingface_hub import snapshot_download as s, hf_hub_download as h for f in ('clean/test/0000.parquet','other/test/0000.parquet'): h('openslr/librispeech_asr', f, repo_type='dataset') s('mlx-community/whisper-large-v3-mlx', local_dir='models/whisper-large-v3-mlx') s('mlx-community/whisper-large-v3-turbo'); s('mlx-community/whisper-tiny-mlx')" .venv/bin/python prepare_data.py # builds data/ (utterances, 10-min WAV, noise clips) # 2. run (offline, GPU, <= 40 min; hard internal budget of 37 min) ./run.sh # -> raw/*.csv, logs/, results.json # plumbing check without a GPU (FAKE backend; output is synthetic and must not be cited) ./run.sh --dry-run # -> raw_dryrun/, results_dryrun.json ``` `run.sh` sets `HF_HUB_OFFLINE=1`, uses `.venv/bin/python`, and gives each block a time budget capped by a global deadline. Accuracy and halluc run interleaved (clean/other alternating, all clip kinds round-robin). If the deadline cuts a block short, the coverage stays balanced, and `results.json` reports the actual `samples` for every metric. No server is started. `models/` and `data/` are local copies. `common.model_path` uses `models/` when it exists and otherwise falls back to the HF cache, with `local_files_only=True`. Fix log: the first offline run exited 1 with no output. Under `set -e`, zsh's `LOG=logs/run$( [[ -n $DRY ]] && echo _dryrun ).log` takes the exit status of the command substitution. That status is 1 whenever this is not a dry run, so only the real run failed. The line is now a plain if/else. `run.sh` also prints a start line straight away, so any future early exit shows up in the log. ## Files * `common.py`: models, decode settings, the normaliser and WER (including the trailing-insertion count), thermal logging, CSV helpers. * `prepare_data.py`: sampling, the 10-minute file and the noise/silence clips (ffmpeg `anoisesrc`/`aevalsrc`, RMS-calibrated). * `bench.py`: the blocks above (`--dry-run` uses the FAKE backend and writes to `raw_dryrun/`). * `aggregate.py`: CSVs → `results.json` (bootstrap CIs, paired deltas, medians, observations, caveats). * `requirements.lock`: pinned versions (`pip freeze` of `.venv`). * `data/sampled_ids.json`, `data/refs.csv`, `data/long_10min.json`, `data/halluc_manifest.csv`: the exact inputs. ## Caveats * One machine, one session. Numbers are for mlx-whisper's Python `transcribe()` pipeline, which includes mel computation, the seek loop and temperature fallback. They are not raw kernel throughput. whisper.cpp, Core ML and batched pipelines will differ. * "~8x" is mostly a decoder claim: turbo keeps the 32-layer encoder and cuts the decoder from 32 layers to 4. The end-to-end speedup depends on how much time goes to the encoder. The `breakdown` block measures that split directly. * LibriSpeech is clean read audiobook speech. WER gaps on accented, conversational, far-field or domain-specific audio can be larger. The utterances are short (mostly under 30 s), so `accuracy` mostly tests single-window decoding. Long-form behaviour comes from the 10-minute file. * WER is computed after Whisper's `EnglishTextNormalizer`. That normaliser forgives spelling, number formatting and punctuation differences, so raw-text WER would be higher. * Load time is excluded from speed by design and reported separately. On Apple unified memory, process RSS does not fully capture GPU allocations, so MLX's own peak-memory counter is reported too. Both are rough. * Temperature fallback samples at T>0, so a transcript can differ between runs. `mx.random` is seeded per call. * The brown-noise-plus-hum clips are brown noise at −40 dBFS RMS mixed with a −40 dBFS 50 Hz sine (about −37 dBFS in total). The exact level of each clip is in `data/halluc_manifest.csv`. The noise is synthetic, not real room tone. * "Thresholds explicitly applied" equals the defaults in mlx-whisper 0.4.3, so the third variant run is `gates_off` instead (see above). * In the sandbox used to build this, `pmset -g therm` had no access to power-management state. The run step records whatever the real machine reports.