Repository navigation
qwen3-asr: WER/CER and one-stream throughput on 40 public clips, and the 1.7B's admission (#2105) - #2250
qwen3-asr: WER/CER and one-stream throughput on 40 public clips, and the 1.7B's admission (#2105)#2250jschmied wants to merge 1 commit into
Conversation
|
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.
|
…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.
0806372 to
2ce01f9
Compare
|
@ashhart restacked: #2239 merged, so this is now one commit on main 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:
|
|
@ashhart the 1.7B rows are in the body now, on the same head
The 0.6B rows from this morning are unchanged. |
Head
2ce01f9de: rebased onto maine6094de13on 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.pyscores tf-qwen3-asr's transcripts against the package's windowed reference andagainst the clips' gold text:
埃尔多安(Recep Tayyip Erdoğan)is read as 埃尔多安.tools/zig/qwen3_asr_bench.pyruns a clip set for N rounds and sums the realtime factor, the tower's rows/s and theLM's prompt and decode tok/s.
tf-qwen3-asrnow warms the LM (one prompt pass and one decode row) before it timesthem, as it already did for the tower.
Changes from the rebase:
config.zigandconfig_test.zigkept main's version. The test's two extra assertions above are what is left of ours.31f27ba19, which the x86 run used.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.
66d573976, in all three rounds.cmn-10104380129516909856(token 10) andcmn-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.tf-qwen3-asrnow exits 1 on those two clips, because with a case it is a gate. The bench records that rc and scores the transcript anyway.e6094de13, same clips) gives the same 40 transcripts as this head.HARANGUEheard asHURANG,TITIANasTICHEN) and partly Britishvs 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).e6094de13) gives the same 40 transcripts as this head in every round (120 of 120 runs equal).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 writes2007where the package writes二零零七, both picks at margin 0.25. That is the 4 characters of reference CER. Gold has2007, so ours scores 4 characters better against gold.tf-qwen3-asrexits 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 (
pgrepempty), 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.2ce01f9de(md5 c58360550f…)e6094de13(md5 7f8fd1e683…)66d573976untimed warm run.
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.summary-head.txt,summary-main.txt, and per clipruns/andruns-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.
2ce01f9de(md5 c58360550f…)e6094de13(md5 7f8fd1e683…)66d573976.summary-head.txt,summary-main.txt, and per clipruns-head/andruns-main/of the 1.7B run.Checks on this head
test-qwen3-asr-host28/28,zig fmt --checkandgit diff --checkclean,tools/pr_check.py --base origin/main0 errors, lean 165 vs 165 (0 new).tf-qwen3-asrbuilt with nvcc for sm_121.31f27ba19, the same tree):check-native-cuda-host compile-cuda-tests17/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-paths2405/2405 steps, 24219/24380 tests passed (161 skipped);pr_check0 errors, lean 0 new;zig fmt --checkclean.Not here
A server route waits on #1632 (PR B).
Notes
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).