Whisper base

June 28, 2026 · View on GitHub

OpenAI's openai/whisper-base ported to transcribe.cpp. A 74M-parameter encoder-decoder transformer (audio encoder + autoregressive text decoder with cross-attention).

What it's for

Offline multilingual speech-to-text and any-language → English speech translation. The model auto-detects the audio's language (99 languages covered) and emits a transcript in that language; passing language="<code>" and task="translate" to the underlying whisper_full_params produces an English translation instead. transcribe-cli reads a 16 kHz mono WAV and returns the transcript text. Long audio is handled via 30-second chunked decoding.

See the upstream model card for training data, intended use, and the original evaluation methodology.

Licensed Apache-2.0. Ported from upstream commit e37978b, pinned 2026-04-25. Validated against the transformers reference at transcribe.cpp commit 5.6.1 on 2026-04-26.

Download

QuantizationDownloadSizeWER (LibriSpeech test-clean)
F32whisper-base-F32.gguf279 MB5.10%
F16whisper-base-F16.gguf144 MB5.10%
Q8_0whisper-base-Q8_0.gguf81 MB5.12%
Q6_Kwhisper-base-Q6_K.gguf65 MB5.12%
Q5_K_Mwhisper-base-Q5_K_M.gguf61 MB5.19%
Q4_K_Mwhisper-base-Q4_K_M.gguf56 MB5.36%

WER measured on the full LibriSpeech test-clean split (2620 utterances) with transcribe.cpp's default greedy decode and segment timestamps enabled — the same runs summarized in the Whisper family table. Numbers come from a single Metal-backed run; Metal's non-deterministic parallel reductions add ~0.1pp of run-to-run variance on the noise floor, and quantization is otherwise generally WER-neutral. See the WER methodology for the harness.

Quick Start

cmake -B build
cmake --build build

build/bin/transcribe-cli \
  -m models/whisper-base/whisper-base-Q8_0.gguf \
  samples/jfk.wav

If your audio is not already 16 kHz mono WAV, convert it first:

ffmpeg -i input.mp3 -ar 16000 -ac 1 output.wav

Performance

Cells are wall-clock latency (mel + encode + decode, mean over the recorded iterations after warmup), with speedup over realtime in parentheses. Units: ms below 1 s, s above (2 decimal places). Decode latency dominates as model size grows; the encoder is only run once per 30-second window.

Apple M4 Max

BackendSampleQ8_0Q4_K_M
Metaljfk (11.0s)52.1 ms (211.0×)53.6 ms (205.2×)
Metaldots (35.3s)170.0 ms (207.8×)168.3 ms (209.9×)
CPUjfk (11.0s)374.0 ms (29.4×)347.6 ms (31.6×)
CPUdots (35.3s)806.1 ms (43.8×)750.3 ms (47.1×)

macOS 26.4.1, transcribe.cpp e0fa0f6.

Benchmark reproduction:

uv run scripts/bench/run.py \
  --models whisper-base \
  --quants q8_0,q4_k_m \
  --samples jfk,dots \
  --backends metal,cpu \
  --iters 3 --warmup 1 \
  --name whisper-base-publication

AMD Ryzen 7 PRO 4750U

BackendSampleQ8_0Q4_K_M
Vulkanjfk (11.0s)351 ms (31.3×)356 ms (30.9×)
Vulkandots (35.3s)922 ms (38.3×)946 ms (37.4×)
CPUjfk (11.0s)1.11 s (9.9×)913 ms (12.1×)
CPUdots (35.3s)2.54 s (13.9×)2.27 s (15.5×)

Fedora 43, transcribe.cpp e0fa0f6. Vulkan device: AMD Radeon Graphics (RADV RENOIR).

Benchmark reproduction:

uv run scripts/bench/run.py \
  --models whisper-base \
  --quants q8_0,q4_k_m \
  --samples jfk,dots \
  --backends cpu,vulkan \
  --iters 3 --warmup 1 \
  --name whisper-base-publication

Numerical Validation

transcribe.cpp is validated tensor-by-tensor against the transformers reference (WhisperForConditionalGeneration, fp32 CPU) on the manifest's cases (samples/jfk.wav and samples/german.wav). All 23 checkpointed tensors fall within per-variant tolerance, and the transcripts match the HF reference verbatim. Tolerance budget lives at tests/tolerances/whisper-base.json. Last validated at commit 1854f57.

FieldValue
Referencetransformers 5.6.1 (WhisperForConditionalGeneration, CPU fp32)
Manifesttests/golden/whisper/whisper-base.manifest.json
Tolerance filetests/tolerances/whisper-base.json
Commanduv run scripts/validate.py all --family whisper --variant whisper-base

Selected tensors (worst observed across cases; see tolerance file for per-tensor budgets):

TensorMax abs diffMean abs diffNotes
enc.mel.in2.229e-053.381e-08fp32 mixed-radix FFT vs torch fp64 frontend
enc.conv1.out5.960e-066.348e-08fp32 conv stem
enc.conv2.out1.466e-052.544e-07stride-2 conv stem (matches enc.embed.out)
enc.block.0.out1.794e-056.097e-07first encoder block
enc.block.5.out1.513e-025.212e-06final encoder block (peak signal grows with depth)
enc.final1.699e-032.588e-06post-LN encoder output
dec.token_emb0.000e+000.000e+00exact zero-drift (ggml_get_rows on the F32 GGUF)
dec.block.0.out5.603e-062.874e-07first decoder block, prompt pass
dec.block.5.out1.373e-041.643e-06final decoder block (accumulated)
dec.out_before_head1.526e-049.441e-06post final LN, pre-vocab projection
dec.logits_raw6.890e-051.462e-05vocab projection (raw logits)
dec.logits4.768e-059.442e-06log-softmax over vocab
dec.logits_raw.gen208.774e-055.206e-05step-20 logits (KV-cached path)

The C++ mel frontend (Slaney filterbank + Hann periodic window + whisper-style log-mel compression) drives enc.mel.in to fp32-vs-fp64 STFT precision drift; downstream tensors stay within budget. KV-cached decoder runs through F16 self/cross caches by default — flip with --kv-type f32 for tighter parity.

Reproduction

Convert

The whisper converter loads from a Hugging Face checkpoint and emits a reference-dtype GGUF.

uv run --project scripts/envs/whisper \
  scripts/convert-whisper.py openai/whisper-base \
  --revision e37978b

Quantize

Run transcribe-quantize once per target quant. Example for Q8_0; repeat for the other shipped presets:

build/bin/transcribe-quantize \
  models/whisper-base/whisper-base-F32.gguf \
  models/whisper-base/whisper-base-Q8_0.gguf \
  --quant Q8_0

Validate

uv run scripts/validate.py all --family whisper --variant whisper-base

Run real-model tests

cmake -B build -DTRANSCRIBE_BUILD_REAL_MODEL_TESTS=ON
cmake --build build

TRANSCRIBE_WHISPER_GGUF=$PWD/models/whisper-base/whisper-base-Q8_0.gguf \
  ctest --test-dir build --output-on-failure -R whisper