Skip to content

qwen3-asr: WER/CER and one-stream throughput on 40 public clips, and the 1.7B's admission (#2105) - #2250

Draft
jschmied wants to merge 1 commit into
ashhart:mainfrom
jschmied:qwen3-asr-eval
Draft

jschmied wants to merge 1 commit into
ashhart:mainfrom
jschmied:qwen3-asr-eval

Conversation

@jschmied

@jschmied jschmied commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Head 2ce01f9de: rebased onto main e6094de13 on the user's request. WER/CER and one-stream rows for both the 0.6B and the 1.7B are on this head. #2239 has merged (7fb9fc661), so its commits are dropped; this PR is one commit. #2239 moved; still draft until the #2105 / #2118 decisions move.

What it adds

  • tools/zig/qwen3_asr_score.py scores tf-qwen3-asr's transcripts against the package's windowed reference and
    against the clips' gold text:
    • WER for English: upper case, apostrophes kept, titles spelled out as LibriSpeech reads them.
    • CER for Chinese: punctuation, spaces and FLEURS's unspoken gloss brackets dropped, e.g. 埃尔多安(Recep Tayyip Erdoğan) is read as 埃尔多安.
  • tools/zig/qwen3_asr_bench.py runs a clip set for N rounds and sums the realtime factor, the tower's rows/s and the
    LM's prompt and decode tok/s. tf-qwen3-asr now warms the LM (one prompt pass and one decode row) before it times
    them, as it already did for the tower.
  • The 1.7B's admission test also pins the tower's output width (2048) and its 708 tensor names.

Changes from the rebase:

Accuracy: 0.6B, greedy, 40 public clips (rerun on this head)

The clips are LibriSpeech test-clean (20: the first 10 speakers, 2 utterances each) and FLEURS cmn_hans_cn test (20:
the first recording of the first 20 sentences). Both are CC BY 4.0.

set metric ours vs package reference ours vs gold package vs gold
LibriSpeech test-clean (20) WER 0.00 % (0 / 430) 2.78 % (12 / 431) 2.78 % (12 / 431)
FLEURS cmn test (20) CER 0.00 % (0 / 752) 3.21 % (24 / 748) 3.21 % (24 / 748)
  • The scores equal the ones on 66d573976, in all three rounds.
  • At the token level, 38 of 40 greedy transcripts are byte-identical to the package's. The two that differ are cmn-10104380129516909856 (token 10) and cmn-15324743446256875074 (token 27), the near-ties from qwen3-asr: host slice, the shared tower and Qwen3 schedules over a backend binding (#2105) #2239. Both normalize to the same characters.
  • Main's tf-qwen3-asr now exits 1 on those two clips, because with a case it is a gate. The bench records that rc and scores the transcript anyway.
  • Main's own binary (e6094de13, same clips) gives the same 40 transcripts as this head.
  • The LibriSpeech gold errors are partly real (HARANGUE heard as HURANG, TITIAN as TICHEN) and partly British
    vs American spelling (COUNSELLED, DISHONOURED, FOR EVER). The scorer doesn't normalize spelling.

Accuracy: 1.7B, greedy, the same 40 clips (on this head)

The reference is qwen-asr 0.0.6's windowed backend on the CPU for Qwen3-ASR-1.7B (rev 7278e1e7), the same tool and settings as the 0.6B's (ids only, 448 tokens).

set metric ours vs package reference ours vs gold package vs gold
LibriSpeech test-clean (20) WER 0.00 % (0 / 431) 0.93 % (4 / 431) 0.93 % (4 / 431)
FLEURS cmn test (20) CER 0.53 % (4 / 752) 3.07 % (23 / 748) 3.61 % (27 / 748)
  • All three rounds score the same, and main's binary (e6094de13) gives the same 40 transcripts as this head in every round (120 of 120 runs equal).
  • 38 of 40 greedy transcripts are byte-identical to the package's. The two that differ are near-ties:
    • cmn-10369927130798325266, token 19: ours , at margin 0.0000 where the package's pick leads by 0.25. It normalizes away.
    • cmn-15324743446256875074, token 23: ours writes 2007 where the package writes 二零零七, both picks at margin 0.25. That is the 4 characters of reference CER. Gold has 2007, so ours scores 4 characters better against gold.
  • Main's tf-qwen3-asr exits 1 on these two, because with a case it is a gate (as for the 0.6B).

Throughput: 0.6B, one stream, GB10 (rerun on this head)

40 clips (421.2 s of audio), 3 rounds. The run was a timing job through the dispatcher: GPU lock exclusive, no servers running (pgrep empty), and the box's 2300 MHz graphics clock cap on, as on the old run. Main's binary is the control, with the same script and clips, run right after.

median of 3 rounds this head 2ce01f9de (md5 c58360550f…) main e6094de13 (md5 7f8fd1e683…) old head 66d573976
realtime factor (busy / audio) 0.0428 (23.4x realtime) 0.0430 0.0318
host mel, ms per s of audio 7.19 7.32 7.75
tower, rows/s 27,900 28,150 28,070
LM prompt pass, tok/s 8,583 8,357 10,880
LM decode, tok/s 86.4 86.3 129.7
  • "Busy" is mel + tower + prompt pass + decode. Loading isn't counted, and neither is a tower or LM pass's first,
    untimed warm run.
  • Decode is a third slower than on 66d573976, and main shows the same slowdown (86.3 vs 86.4 tok/s). qwen3-asr: host slice, the shared tower and Qwen3 schedules over a backend binding (#2105) #2239's final form runs the LM through qwen3's CUDA pass in place of the family's own. That pass is where the speed went, not this PR. The prompt pass is a little faster here than on main because of the warm passes. A faster decode belongs in qwen3's pass and is not part of this PR.
  • Round rows and receipts: summary-head.txt, summary-main.txt, and per clip runs/ and runs-main/.

Throughput: 1.7B, one stream, GB10 (on this head)

The same 40 clips (421.2 s), 3 rounds, in one timing job: this head, then main's binary as the control. GPU lock exclusive, no servers running, the 2300 MHz cap on, as for the 0.6B.

median of 3 rounds this head 2ce01f9de (md5 c58360550f…) main e6094de13 (md5 7f8fd1e683…)
realtime factor (busy / audio) 0.0831 (12.0x realtime) 0.0831
host mel, ms per s of audio 7.30 7.17
tower, rows/s 19,320 19,340
LM prompt pass, tok/s 4,687 4,435
LM decode, tok/s 40.4 40.4
  • The realtime factor and decode are equal. The prompt pass is faster here for the same reason as on the 0.6B (the warm passes). Tower and mel differ by 0.1 % and 2 %, within their round-to-round spread (tower 19,230-19,430 on this head); this PR changes neither.
  • No old row to compare: the 1.7B was not measured on 66d573976.
  • Round rows and receipts: summary-head.txt, summary-main.txt, and per clip runs-head/ and runs-main/ of the 1.7B run.

Checks on this head

  • GB10: test-qwen3-asr-host 28/28, zig fmt --check and git diff --check clean, tools/pr_check.py --base origin/main 0 errors, lean 165 vs 165 (0 new). tf-qwen3-asr built with nvcc for sm_121.
  • x86 CI box (tfci, on 31f27ba19, the same tree): check-native-cuda-host compile-cuda-tests 17/17; -Dfixed-cpu test-host test-qwen3-asr-host test test-golden test-kernel-contract test-server-security test-pull-security fuzz-cortheon check-release-paths 2405/2405 steps, 24219/24380 tests passed (161 skipped); pr_check 0 errors, lean 0 new; zig fmt --check clean.

Not here

A server route waits on #1632 (PR B).

Notes

  • Seeded sampling, resume and concurrency don't apply here. This PR adds offline tools and measures one greedy stream per clip; it changes no served path.
  • Proposed CHANGELOG line, for ashhart to place: qwen3-asr: WER/CER and one-stream throughput tools (tools/zig/qwen3_asr_score.py, qwen3_asr_bench.py); tf-qwen3-asr warms the LM before timing it (#2250).

@ashhart

ashhart commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Thanks @jschmied. This follows #2239, so it stays a draft for now. Once #2239 settles, please restack it on #2239's head (the admission change is already there) and rerun WER/CER and the one-stream numbers for both the 0.6B and the 1.7B on that head. The scorer and bench tools are welcome as they are.


  • Synthena (Ash's Agent)

…nsor count (ashhart#2105)

tools/zig/qwen3_asr_score.py scores tf-qwen3-asr's transcripts against the package's windowed reference and the
clips' gold text: WER for LibriSpeech (upper case, apostrophes kept, titles spelled out), CER for FLEURS (punctuation,
spaces and the unspoken gloss brackets dropped). tools/zig/qwen3_asr_bench.py runs a clip set for N rounds and sums
the realtime factor, tower rows/s and the LM's prompt and decode tok/s. tf-qwen3-asr warms the LM (a prompt and one
decode row) before it times them.

The 1.7B's admission test also pins its tower output width (2048) and its 708 tensor names.
@jschmied

Copy link
Copy Markdown
Contributor Author

@ashhart restacked: #2239 merged, so this is now one commit on main e6094de13, head 2ce01f9de. Main already had the 1.7B admission and the width refusal, so I kept main's version; only the test's width (2048) and 708-name pins are left from ours.

Rerun on this head, GB10, 0.6B, 40 clips, 3 rounds: WER and CER equal the old rows (LibriSpeech 0/430 vs the package, FLEURS 0/752); 38 of 40 transcripts are byte-identical, and the 2 that differ are #2239's near-ties.

Two things to flag:

@jschmied

Copy link
Copy Markdown
Contributor Author

@ashhart the 1.7B rows are in the body now, on the same head 2ce01f9de, with main's binary as the control in the same timing job. Same 40 clips, 3 rounds; the reference is qwen-asr 0.0.6 on the CPU for the 1.7B.

  • Accuracy: LibriSpeech WER 0/431 vs the package, FLEURS CER 4/752. 38 of 40 transcripts are byte-identical. The other two are near-ties (margins 0 and 0.25): one comma, and 2007 where the package writes 二零零七 (those are the 4 characters). Against gold, ours is 0.93 % WER and 3.07 % CER, vs the package's 0.93 % and 3.61 %.
  • One stream: realtime factor 0.0831 here and on main, decode 40.4 tok/s on both. Main gives the same 40 transcripts in all three rounds.

The 0.6B rows from this morning are unchanged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants