30 languages + 22 Chinese dialects with automatic language detection
6.42 % avg WER on the HuggingFace Open ASR Leaderboard
Apache-2.0 licence
Speech-LLM architecture: Whisper-style audio encoder (2D-conv subsampler + 18-layer Transformer + projector head, 896 → 1024) feeds frames into a stock Qwen3 0.6B LLM (28 layers, GQA 16/8, head_dim=128, Q-norm/K-norm, SwiGLU, RoPE θ=1e6) via embedding splice at <|audio_pad|> placeholder positions in a ChatML prompt. The LLM autoregressively generates the transcript.
This is the first speech-LLM in the CrispASR family — every other model in the set uses a dedicated CTC / transducer / encoder-decoder. The Qwen3-ASR runtime ships with a persistent KV cache so per-token decode is O(1) in cache size, not O(N) full re-forwards.
Files
File
Size
Notes
qwen3-asr-0.6b.gguf
1.88 GB
F16
qwen3-asr-0.6b-q8_0.gguf
961 MB
Q8_0, near-lossless
qwen3-asr-0.6b-q4_k.gguf
631 MB
Q4_K — recommended default, faster than realtime on a 4-core CPU
qwen3-asr-0.6b-q4_k-imatrix.gguf
631 MB
Q4_K, importance-matrix calibrated — see below.
qwen3-asr-0.6b-q3_k-imatrix.gguf
531 MB
Q3_K + imatrix — smallest usable variant.
qwen3-asr-0.6b-en-de.imatrix.gguf
913 KB
The importance matrix itself (CC0 Common Voice EN+DE calibration), for reproducibility / re-quantising other sizes.
All quantisations produce the correct transcript on samples/jfk.wav:
And so, my fellow Americans, ask not what your country can do for you; ask what you can do for your country.
The sub-Q8 quantisations were re-baked with the 18-layer audio encoder kept
at Q8_0 (previously Q4_0/Q4_K like the LLM body; ~90 MB larger per file).
Diff-harness analysis on a real 145 s clip
(CrispASR #218) showed
sub-8-bit encoder weights compound per-block drift (block 0 cos 0.9996 → block
17 cos 0.973 vs the bf16 reference) until greedy decode flips into repetition
loops ("hey, hey, hey, …") or an empty "language none" answer on long audio.
With the Q8_0 tower the encoder output is back at cos ≈ 0.9997 and the full
145 s clip transcribes cleanly in one pass — matching the bf16 reference — with
no repetition post-processing needed. Q8_0 / F16 files were never affected.
About the imatrix variant
-q4_k-imatrix.gguf is a Q4_K build quantised with an importance
matrix: per-column activation statistics
collected by running real audio through the F16 model
(CRISPASR_IMATRIX_OUT), so the quantiser spends precision on the columns the
model actually uses (the same idea as llama.cpp's llama-imatrix, but computed
from audio rather than a text corpus).
Calibrated on a CC0 Mozilla Common Voice
English + German sample, published at
cstr/crispasr-imatrix-calib.
Measured with the tools/imatrix_ab.py A/B harness (prefill first-token-logit
cosine vs the F16 gold, held-out clips):
mean cos vs F16
delta
Q4_K (same recipe, no imatrix)
0.890
—
Q4_K + imatrix
0.941
+0.051 (every EN/DE clip improved; DE most)
So the imatrix recovers a good part of the quantisation's logit error at no
size cost. Calibration language coverage matters — an English-only corpus
made the imatrix worse; the EN+DE mix is what produced the gains above.
Long-form caveat: the calibration corpus is short utterances. On long
single-pass audio (--chunk-seconds 0, several minutes in one prompt) the
imatrix variants can still drift into repetition where the plain -q4_k.gguf
stays clean — for long-form use prefer -q4_k.gguf or -q8_0.gguf.
The mel filterbank from WhisperFeatureExtractor is baked into the GGUF as audio.mel_filters (along with audio.mel_window), so the C++ runtime computes the log-mel spectrogram natively without needing torch / librosa / scipy at inference time.
Mel filterbank (C++ STFT vs WhisperFeatureExtractor)
max abs vs mel_input.npy
2.2e-2
Bugs that would have been hours of debugging
A few non-obvious gotchas the port had to handle:
ggml_permute semantics are inverted from the obvious reading: permute(t, p0, p1, p2, p3) means "source axis i goes to NEW position p_i", not "new axis i comes from source axis p_i".
PyTorch hooks fire pre-GELU when registered on an nn.Conv2d module — the F.gelu is applied externally in the forward function.
cu_seqlens is GPU-only: eager_attention_forward (used on CPU) ignorescu_seqlens and does standard full self-attention. The "windowed attention" path only kicks in for FlashAttention2 on GPU. Don't apply the windowed mask on CPU — the reference produces full-attention output.
WhisperFeatureExtractor.mel_filters shape is (n_freqs=201, n_mels=128), not (n_mels, n_freqs) as the parameter ordering might suggest.
Qwen3 attention output width is hd × n_q_heads = 2048, not d_model = 1024. The o_proj is (2048 → 1024), so the attention output is reshaped to (2048, T) before o_proj.
mrope sidestep: Qwen3-ASR uses interleaved multi-modal RoPE with mrope_section=[24,20,20]. For text-only or 1D-position input (which includes our spliced audio frames), the three mrope sections all receive identical position_ids and collapse to standard 1D RoPE. The simpler RoPE matches the reference perfectly for our use case.
See qwen3-asr-todo.md in the runtime repo for the complete work log.
How this was made
The HF safetensors model was converted to GGUF F16 by models/convert-qwen3-asr-to-gguf.py. All 612 tensors map cleanly. The mel filterbank (from WhisperFeatureExtractor.mel_filters) and Hann window are baked into the GGUF as audio.mel_filters / audio.mel_window.
Quantised variants are produced by crispasr-quantize (the same llama.cpp-style quantiser used for the other GGUF releases in this family).
Inference is implemented in src/qwen3_asr.{h,cpp}: the encoder and the LLM each run as one ggml graph, with a persistent F32 KV cache (head_dim, max_ctx, n_kv_heads, n_layers) shared between prefill and per-token decode steps.
Reference implementation
predict-woo/qwen3-asr.cpp (MIT) was read for architecture discovery and tensor name mapping. No source code was vendored — the CrispASR runtime is a re-implementation in this repo's existing FastConformer / cohere-style ggml infrastructure, sharing structures with the four other ASR runtimes in the family.
Supported languages
ar cs da de el en es fa fi fil fr hi hu id it ja ko mk ms nl pl pt ro ru sv th tr vi yue zh plus 22 Chinese dialects (auto-detected at inference time).
Upstream licence:apache-2.0. This repository redistributes under the same terms; it grants no rights the upstream licence does not.
What was done here: format conversion and/or quantisation only (GGUF/GGML). No training, no fine-tuning, no merging, no distillation, no change to architecture, vocabulary or capability. Only the numeric representation of the upstream weights differs.
Training data: documented — where it is documented at all — by the upstream provider; see the upstream model card. No training data was used, added or selected by this repository.
Provider status: under Regulation (EU) 2024/1689 the upstream authors remain the provider of this model. Converting the serialisation format does not make this repository the provider of a new general-purpose AI model, and no such claim is made. Questions about training content, copyright policy or model capability belong upstream.