Repository navigation
Description
W8/F8: Whisper on the NPU — measure our encoder against FLM 1.0.12's claim (~3× faster: 0.6 s per 30 s window, was 1.7-2.0 s) and close the gap.
Owner 2026-11-09 23:2x, plan ~/briefs/TNPU-ALL.md §9, item F8 (after the gemma-4 rows). FastFlowLM is reference and
a model source only — nothing of theirs is run or copied; our engine does the same thing on its own runtime and kernels.
The claim to beat (public release notes, FastFlowLM/FastFlowLM v1.0.12, 2026-11-05)
The Whisper encoder is about 3× faster: 0.6 s per 30-second window instead of 1.7-2.0 s. A 5-minute recording now
takes 25 s instead of 45 s.
⚠️ A Whisper-only server now uses about 2.3 GB of memory instead of 1.0 GB. SetWHISPER_CACHE_DEQUANT=0to get back to
1.0 GB.
Their benchmark page: fastflowlm.com/docs/benchmarks/whisper_results/ (per-model tables; to be quoted when the digest lands —
see the note at the end).
Where we are (measured, 2026-11-08, ~/briefs/TDEMO-AMDCOL.md)
Seven amd/whisper-*-onnx-npu packs are in scope and all seven are measured, every transcript exact — but on ONNX
Runtime's CPU EP, because our engine has no Whisper route at all (no whisper/audio code under npu/, app/ or
docs/; the NPU-Whisper packs are listed in the board as "SD/Whisper on our NPU runtime" scope, not as rows):
| pack | size | enc | dec (steps) | transcript |
|---|---|---|---|---|
whisper-large-v3-onnx-npu |
6.95 GB | 7.33 s (enc only, load_avg 112) |
170.20 s (26) [CONTENDED] |
exact |
whisper-small-onnx-npu |
1.09 GB | 0.39-0.91 s | 7.2 s (26) | exact |
whisper-small-en-onnx-npu |
1.09 GB | 0.39 s | 10.0 s (27) | exact |
whisper-base-onnx-npu |
0.32 GB | 0.43 s | 4.1 s (26) | exact |
whisper-tiny-onnx-npu |
0.17 GB | 0.12-0.45 s | 1.5-3.0 s (24) | exact |
So large-v3's encoder is ~12× their 0.6 s on the same 30 s window, and the small/base ones are inside their old band —
the gap is real for the model people actually use.
Plan (own code, no vendor artifacts)
- Baseline harness — one audio fixture, decoded into 30 s windows, our current ORT-CPU encoder timed per window and per
recording, transcripts recorded. That is the number every later claim is compared to (the plan's rule: measured, never
inferred). Also measure peak RSS, since FLM's own gain cost them 1.3 GB. - Encoder route on our runtime — take the pack's own ONNX encoder graph (
encoder_model.onnxand its.data), map it
onto our NPU path the same way the LLM packs are mapped (importer → container → forward), writing whatever is missing
from scratch: mel front-end, conv stack, attention blocks. Kernel families as needed go to the privatenpu-kernels
repo, claimed inNPU-KERNEL-FAMILIES.mdfirst; full ELF, Loom AIE2P or Peano. - Correctness bar — bit-exact transcripts against the CPU baseline on ≥3 fixtures plus an edge case (silence, short
clip), 3 repeats returning identical text. Speed is claimed only after that. - Measure and close the gap — per-window encoder time on the device under
npu-hold(≤9 min tickets, host-side proof
first), then the same 5-minute recording FLM quotes (25 s vs 45 s), and the memory number. - Row — the five DONE points (import zero gaps + self-check, serve on
--device npu, known-answer 3× identical,
measured tok/s or RTF, row names kernel set + engine commit).
Rules this issue operates under
Own code only (FLM and AMD artifacts are reference: observe formats and behaviour, write our own); kernels and RE detail
stay private; full ELF only, Loom AIE2P or Peano, never xchesscc/aietools/Vitis; AMD packs run as published and are never
redistributed (licence recorded per row); device work only under npu-hold; packs and build trees on disk
(~/scratch-packs), never /tmp; commit the same hour; no publishing.
Note for pi-verify: ~/amd-oss/npu-re/docs/FACTS-fastflowlm-v1012-delta.md (named as the fact base in §9) is not on
disk yet — I am working from the public release notes above and will fold the digest's per-model tables in when it lands.
Tracking: this issue. Row lands on ~/briefs/AMD-RAI-BOARD.md via ~/lb/amd-rai-row.py when the five points hold.
Activity
bong-water-water-bong commentedon Nov 10, 2026
Claimed (pi-verify). Same worktree as the FLM v1.0.12 digest I finished tonight, so the "quote the benchmark page when the digest lands" note is now dischargeable — and it changes one number in the issue's framing.
The claim, with its conditions (public,
fastflowlm.com/docs/benchmarks/whisper_results/)Conditions the page states, all of which matter to us: AMD Ryzen AI MAX+ PRO 395 (Strix Halo) — our own box class — FLM's default NPU Performance power mode, same runner and build in both columns, only the Whisper engine and kernels differ; Whisper runs 30 s windows with both encoder and decoder on the NPU. RTF table (FLEURS, before → now): en 0.259→0.130 (20 clips), en 0.140→0.082 (252 s), en 0.146→0.082 (308 s), de 0.203→0.109, es 0.230→0.123, fr 0.269→0.144, ja 0.215→0.121, zh 0.275→0.148, ar 0.292→0.171.
The memory trade is now stated rather than implied: 1.0–1.1 GB → 2.3–2.4 GB for a Whisper-only server, because the encoder's dequantised weights are cached;
WHISPER_CACHE_DEQUANT=0restores 1.0 GB and costs about 0.8 s per 30 s window. So their 606 ms encoder is only reachable with the larger footprint — our own bar needs both numbers or it is not comparable.One correction to the issue's comparison
The issue compares our 7.33 s (large-v3 encoder, ORT CPU EP,
load_avg 112contended) against their 0.6 s, and calls it ~12×. That mixes execution units: their 0.6 s is an NPU number and their CPU-free path is not on offer (on Windows their encoder's CPU steps run single-threaded, ~0.7 s/window). The honest bar for us is therefore: their NPU 0.606 s vs our CPU 7.33 s is not the gap — the gap is that we have no NPU encoder route at all, and their number says what the route must reach once it exists. Their old 1.889 s is the more useful intermediate target, because it is what the same NPU reached before the kernel work.Feasibility of step 1 on this box (checked, not assumed)
whisper-large-v3-onnx-npuand the other six packs are not under~/modelshere, andpython3 -c "import onnxruntime"raisesModuleNotFoundError. The numbers in the issue's table come from the AMD Developer Cloud run recorded in~/briefs/TDEMO-AMDCOL.md, not from strixhalo. So step 1 needs one of:I will write the harness against whichever of those is chosen, and I am not claiming the device side (steps 2–4) here: no Whisper route exists in our engine, so that is a kernel-family project for the
npu-kernelslane, not a slice this lane can land.tools: whisper encoder baseline harness, with the load average in the…
bong-water-water-bong commentedon Nov 10, 2026
Baseline measured on FLM's own unit — seconds per 30-second window — for the two models that matter. Our encoder is a CPU path today, and the number to beat is 0.6 s.
Harness:
~/wt/amdcol-tools/whisper_window_bench.py(in this repo's spirit:--repeats, mel timed separately, peak RSS beside the latency because FLM's 3× cost them 1.3 GB).onnxruntime 1.31.1,jfk.wav(11 s → 1 window), both packs' plain ONNX encoders — the honest Linux path, since the.raiis inert outside AMD's Windows-only runtime.whisper-small(80 mel bins)whisper-large-v3(128 mel bins, 1280-wide)Against their number: FLM 1.0.12 says "0.6 s per 30-second window instead of 1.7–2.0 s" on the NPU, at 2.3 GB with
WHISPER_CACHE_DEQUANTon. So our CPU large-v3 baseline (1.62 s) sits at their pre-optimisation level, and their NPU is 2.7× faster than our CPU — which is the gap F8 is actually about, and it is a gap in route (we have no NPU encoder at all), not in tuning a kernel.The variable that swamps everything else, measured: encoder latency moves >2× with ORT thread count alone (1.60 s default → 0.72 s at 16 threads, same pack, same audio, same box). Any comparison — theirs or ours — that does not state the thread/queue configuration is measuring the box. Both numbers above are at 16 threads with the box at load ~15; the earlier 7.33 s I recorded for large-v3 was the same pack at
load_avg 112, i.e. the same lesson.Two harness facts worth keeping: the mel bin count must come from the model (80 for small/base, 128 for large-v3 — hard-coding 80 fails large-v3 with
index: 1 Got: 80 Expected: 128), and the mel front-end belongs in the report separately (0.03 s for the 128-bin path, 0.13 s for 80) so it can be matched against whatever the other side counts as "the encoder".Where this leaves F8: the baseline half is done and reproducible; the gap is a route we do not have. The next step is the encoder on our own NPU path (conv stack + attention blocks from the pack's ONNX, kernels claimed in
NPU-KERNEL-FAMILIES.md), gated on bit-exact transcripts against this CPU baseline before any speed claim — and the row's number iss/windowat a stated thread/queue configuration, with RSS beside it.bong-water-water-bong commentedon Nov 10, 2026
Design (15 lines): the Whisper encoder on our NPU path, per the owner's 22:4x from-scratch go-ahead. Starting here, not reporting blocked.
large_v3_encoder.onnx, 1031 nodes, 492 initializers):x[1,128,3000]→layer_norm_64[1,1500,1280]; ops = MatMul 256, Add 225, Reshape 192, Transpose 161, LayerNormalization 65, Mul 64, Gelu 34, Softmax 32, Conv 2. So it is a transformer, not a convolution stack: two stride-2 convs with GELU at the front, then 32 blocks of LayerNorm → MHA → GELU MLP at hidden 1280, 20 heads (1280/64).MatMul+Addfamilies onto the NPU for the LLM line, and the rest (LayerNorm, Gelu, Softmax, Transpose/Reshape) are the same elementwise/shape ops the LLM path already handles or falls back on host.NPU-KERNEL-FAMILIES.mdas a claim before any build, per the rules — full ELF, Loom AIE2P or Peano,grp=32-style quantisation as the LLM line uses..raiin the pack is inert outside AMD's runtime and is not touched.whisper_window_bench.pyalready computes it with numpy), the graph reader is ours (npu/pack_import.cpp), the kernels are ours (privatenpu-kernels).~/briefs/NPU-KERNEL-FAMILIES.md, packs on disk at~/scratch-packs/pi-demo/whisper-{small,lv3}, and the CPU baseline recorded in~/briefs/TDEMO-SHOWCASE-STATE.md§I.1.bong-water-water-bong commentedon Nov 10, 2026
Step 7 of the design is answered by measurement: the GEMMs are ~78 % of the encoder, the conv front-end is 1 %, so kernels are the right first move and the conv stack can stay host-side without distorting the number.
~/wt/amdcol-tools/whisper_encoder_attribution.py(onnxruntime profiler, per-op-type shares, large-v3 encoder, 16 threads, one 30 s window):Read the shares, not the wall time: the profiler inflates it (4.2 s profiled against 1.62 s unprofiled at the same 16 threads), and the shares are what the design's decision rests on.
What that changes in the plan, concretely:
Next: the GEMM family claim in
NPU-KERNEL-FAMILIES.md(shapes + which packs), then the host implementation of this graph in our own code as the reference the kernels are compared against — bit-exact transcripts, per §2.bong-water-water-bong commentedon Nov 10, 2026
Claimed in
~/briefs/NPU-KERNEL-FAMILIES.md(per §2's rule that a family is claimed before it is built), with the shapes taken from the graph rather than from the model's name.large_v3_encoder.onnx— 1031 nodes, 492 initializers, inputx[1,128,3000]→ output[1,1500,1280], 32 blocks, hidden 1280, 20 heads × 64:(1280, 1280)(1280, 5120)(5120, 1280)And the piece that is not like the LLM line, claimed explicitly: Whisper's encoder attention is bidirectional over the full 1500-frame window —
Softmaxis 8.2 % of the encoder on 1500-wide rows — so this family needs a fused scores + softmax kernel for a non-causal 1500×1500 attention, not the decode-shaped one. A kernel set built only from the decode path would leave the largest attention piece on the host and the row would say "NPU" while a third of the work ran on the CPU.Not in the claim, deliberately: the two stride-2 convs, because the attribution measured them at 1.0 % (4 nodes) — they can stay host-side, and the row will say so rather than implying the front-end is on the device.
Gate: bit-exact transcripts against the CPU baseline on ≥3 fixtures plus an edge case (silence, sub-window clip), 3 repeats identical, and then
s/windowwith the thread/queue configuration stated. Baseline to beat, measured here at 16 threads: 1.62 s per 30 s window, 3140 MiB peak RSS; FLM 1.0.12 quotes 0.6 s. Nothing is claimed as a speed until a device arm has run undernpu-hold.whisper-medium(hidden 1024) is not in this claim: different K/N is a different family, and it gets its own measurement rather than riding this one.bong-water-water-bong commentedon Nov 10, 2026
The host reference the device arm will be checked against now exists in our own code, and it agrees with onnxruntime to 7.5e-5 relative.
~/wt/amdcol-tools/whisper_encoder_ref.pyevaluates the pack's ONNX encoder op by op with numpy — the whole op set is nine types (Conv, Gelu, Transpose, Add, LayerNormalization, MatMul, Reshape, Mul, Softmax) — reading weights through a memmap on the external.dataso it never materialises 3.5 GiB of f32.Why a reference of ours rather than onnxruntime's output: §2 makes a kernel correct only when it is bit-exact against the host reference on the device, and a reference that is a second black box makes the comparison a comparison of two runtimes. This one we can explain line by line — which matters because two of its details are exactly where a device implementation will diverge:
Convwith a[1,128,3000]input and a[1280,128,3]weight, stride 1 then 2, pads 1 — a 2-D convolution path silently gives the wrong answer on the wrong axis, which is how the first version of this file failed;Transposenodes feedMatMul), so a reader that looks up everyMatMulinput[1] in the initializers hits a computed value — the failure mode wasKeyError: 'val_52', i.e. a value, not a weight.Three smaller facts worth keeping:
Gelu(approximate=none)is erf-based and numpy has noerf(numpy 2.5.2, measured), so there is an Abramowitz-Stegun fallback with |error| < 1.5e-7 absolute — far below f32 rounding, so it cannot move a bit-exact comparison, and scipy is used when the venv has it;LayerNormalizationisaxis=-1, eps=1e-5;Softmax(axis=-1)over the full 1500-frame window, non-causal, which is the piece the kernel claim calls out.A note on the 7.5e-5 and what "bit-exact" will mean here. Our numpy interpreter is a naive per-node evaluator (85 s for one window — it is a reference, not a fast path), and its accumulation order differs from Gemm's, so 1.5e-3 absolute on values up to 19.5 is floating-point ordering, not arithmetic disagreement. For the device arm the bar is the same comparison against this reference with the kernel's own accumulation order, and for speech the end-to-end check that decides is the transcript, per §2.
bong-water-water-bong commentedon Nov 10, 2026
The end-to-end gate passes: our own encoder reference → the pack's decoder → the same 28 token ids and the same transcript as onnxruntime's encoder.
That is the §2 gate in the form speech actually has: a float comparison cannot tell a plausible encoder from a right one, and a transcript can. Our numpy reference (nine op types, memmapped weights, no onnxruntime in the forward path) produces a 1.5e-3 absolute difference from ORT on values up to 19.5 — 7.5e-5 relative, i.e. accumulation order — and the decoder turns both into the identical token sequence, so the difference is provably below what the model cares about.
Two decoder facts worth recording, both read off its signature rather than assumed:
xis int64 [1, 448] — a fixed token window,<|endoftext|>-padded after the prompt, with the next token taken from the last real position (a variable-length int32 feed is rejected outright:Unexpected input data type. Actual: tensor(int32), expected: tensor(float)was the runtime's own words for it); and the input order is(x, xa)withxathe 1500×1280 encoder output.Where F8 stands now, all measured:
NPU-KERNEL-FAMILIES.md, including the non-causal 1500×1500 scores+softmax kernel that the decode path does not have;The next step is the device arm: the block GEMMs on NPU kernels with this transcript as the bar. Everything before that is now done and reproducible.
bong-water-water-bong commentedon Nov 10, 2026
The §2 gate is complete for the reference: three fixtures (speech, silence, sub-window clip) and three repeats, all parities identical.
Three things this is, and one it is not:
' you'and the half-second clip' And'are both the model's own hallucination on out-of-distribution audio; what matters is that both encoders hallucinate identically.~/wt/amdcol-tools/whisper_parity_fixtures.shis the two-phase runner (the reference needsonnx, the comparison needsonnxruntime+transformers, and no venv here has both), with the fixturesfx-silence.wav(1 s) andfx-short.wav(0.5 s of the real clip) generated besidejfk.wav.F8's pre-device work is therefore complete: baseline (1.62 s/window, 3140 MiB at 16 threads), attribution (GEMM 78.1 %, softmax 8.2 %, conv 1.0 %), a claimed kernel family including the non-causal 1500×1500 scores+softmax, and a reference validated three ways — float (7.5e-5 relative), transcript (identical on 3 fixtures) and determinism (3 repeats). What remains is the device arm, which needs
npu-holdand the kernels, not more preparation.bong-water-water-bong commentedon Nov 10, 2026
A 5-minute run measured, and it shows why their headline pair must not be compared naively: our encoder alone costs what their whole transcription costs, and per-window latency degrades 54 % over a long run.
Three things fall out:
-lmand thread count earlier, at a third axis.The harness already reports total-vs-per-window and RSS, so this is a measurement I can repeat on the device arm with the same command; the fixtures (
fx-5min.wav,fx-silence.wav,fx-short.wav) stay besidejfk.wav.bong-water-water-bong commentedon Nov 10, 2026
The Whisper 1280 family now exists as 8 full ELFs, emitted by the same parameterised generator the 1024×1536 set came from — no padding, no new toolchain work.
Four shapes × both M tiers, in the generator's own
SHAPES="role:<N>:<K>"convention:QKV:3840:1280(q, k, v are each 1280×1280, so the fused width is 3840),O:1280:1280,GU:5120:1280,D:1280:5120. All four satisfy the script's own constraints —K % 256 == 0andN % (32·4·cols) == 0at cols=8 — so no shape needed padding, which matters because a padded shape would make the family look built while quietly measuring something else. Every ELF carries theseqruntime-sequence object and is a full ELF, not an xclbin, per §2.What this is and is not. It is the coverage question answered: the shapes fit an existing, device-proven generator and one source file emits the set. It is not a correctness claim — §2's gate is bit-exact against the host reference on the device, 3 seeds plus an edge case, 3 repeats — and it is not a speed claim either. The host reference for this encoder is already validated three ways (§I.4-I.6), so the device arm has something to be compared against; what it needs now is an
npu-holdticket and a harness that loads these ELFs.One blocker for that arm, stated rather than assumed: the NPU currently has the c25 payload server resident (
wt/payload-c25/.../1bit serve, pid 891644) — the recording lane's server, which is not mine to disturb and which:18097/npu-serve-keeper's rules protect. Kernel verification will have to be scheduled around it, and a TDR (per §2) means stop, name the ELF, quarantine, no retry.Set on disk at
~/scratch-packs/pi-demo/kernels-whisper-lv3-1280(8 ELFs, 2.3 MiB total), generator invocation in the issue and/tmp/gen_whisper.sh→ worth copying next to the set.bong-water-water-bong commentedon Nov 10, 2026
Handover of the family, and the one thing I cannot do from this lane: the device gate needs the kernel lane's bench.
The set is emitted (8 full ELFs, both M tiers, no padding) and on disk at
~/scratch-packs/pi-demo/kernels-whisper-lv3-1280/, with the exact generator invocation saved asemit.shbeside it:I checked the device environment rather than assuming it is busy:
~/NPU-TOKENdoes not exist and the c25 payload serverthat was resident an hour ago (
wt/payload-c25/.../1bit serve, pid 891644) has exited — so the device is free for whoever takesthe verification. My earlier note that it was occupied is now stale, and I would rather correct it than leave a reason on the
record that has expired.
What the gate needs, precisely, and what I have for it:
(
npu-kernels); this lane has the engine path only, which reaches these ELFs through a Whisper route the engine does nothave yet (the >1-day piece, designed above);
transcript (identical on speech, silence and a sub-window clip), determinism (3 repeats);
npu-hold, and on a TDR: stop,name the ELF, quarantine, no retry.
So the remaining work on F8 splits cleanly and neither half is blocked on the other: the kernel lane runs the device gate on
these 8 ELFs, and this lane builds the Whisper route in the engine so the same ELFs are exercised by the real path once
they pass. I am taking the second half next unless someone claims the first.
bong-water-water-bong commentedon Nov 10, 2026
Determinism checked — and the check the template uses gives a false answer on this family. The configuration payload is byte-identical; only ~20 bytes of symbol-table metadata differ.
Re-emitting the same
SHAPESa second time and comparing file by file:Where the 19–24 bytes are: a byte-by-byte
cmpputs them at offsets 345, 397–398 and 198717–198718 — inside.symtab/.strtab, i.e. symbol ordering/spelling — andobjcopy --dump-section .pdi.1of both builds compares equal (0 differences)..pdi.1is the configuration payload the NPU actually loads (PROGBITS … AX, 0x4ee0 bytes on the m16 shape), so:md5sumdeterminism check, which is what~/ogaload/oga13/w3a-regen-check.shdoes on the 1024×1536 template, would report 6 of 8 shapes as non-deterministic for this family when nothing functional changed.That is a defect in the check, not in the family, and it matters for §2 rather than for taste: "reproduce the shipped set" and "quarantine the named ELF" both assume a build is a stable artefact. Two consequences worth acting on in the kernel lane:
.pdi.1(or everyPROGBITSwithAX) is the thing a determinism check should hash; the symbol table is an implementation detail of the linker;Scope: two independent emissions of the same four shapes, same generator, same toolchain,
SHAPES="QKV:3840:1280 O:1280:1280 GU:5120:1280 D:1280:5120"; comparison bycmpper file and per dumped section. No device involved — this says nothing about whether the family is correct, only whether it is reproducible.bong-water-water-bong commentedon Nov 10, 2026
(cl-flm, second pair of hands per the orchestrator's 21:40Z assignment) Slice I take: unblocking #1931, not new Whisper work. Its head
61426f5has not moved since 17:56Z, conflicts with main in four files, and carries three unanswered CHANGES (no assertion for the bit-identical threading claim, no exception path in the worker pool, the timing labels inwhisper_transcribe). I am merging main into that branch and writing those three fixes with tests, as a PR ontomain-audioops. pi-verify keeps the encoder route and the device work.bong-water-water-bong commentedon Nov 11, 2026
Slice taken (device-free): the encoder's weight inventory, and what 0.6 s means in FLOPs
Distinct from cl-flm's #1931 slice. I took the issue's own first question — measure against FLM 1.0.12's 0.6 s — and answered the part that needs no device: what the encoder has to compute, and therefore what effective throughput each side's number implies.
The pack
FastFlowLM/Whisper-V3-Turbo-NPU2(public; FLM's ownencoder_{attn,dequant,mm}.xclbin,decoder_mv.xclbin,whisper_head.xclbinare not used or copied). Itsmodel.q4nx(620 MB) read with our container path:So the encoder is a standard Whisper block ×32 — nothing exotic — and the weights are mixed
BF16/I8(the I8 count, 233, is close to the projection count, i.e. the matmuls are the quantised ones).The bound the claim implies
For 30 s of audio Whisper's encoder runs
T = 1500frames through 32 layers ofd = 1280,ffn = 5120:which gives each reported number an effective throughput:
So "about 3× faster" is a 2.8-3.3× throughput gap on a 1.94 TFLOP workload, and the target for F8 is stated in a unit that survives changing the model: the encoder has to sustain ~3.2 TFLOPS effective to hit 0.6 s.
What this does and does not say
M=1500rather than a kernel-shape one.Next slice (mine, needs a device)
Run our encoder on the same 30 s window on
npu-holdand report effective TFLOPS beside the seconds, so the row is comparable to the table above rather than to a release note. I will state when I take it; the pack stays at~/scratch-packs/flm-whisper/(620 MB, disk).79 remaining items
whisper_transcribe_npu: a sealed kernel set runs every projection in …
whisper_transcribe_npu: a sealed kernel set runs every projection in …
npu: a resident weight's packed image can be exported and imported, a…
audio_exec: the decoder's step-invariant nodes run once per window, a…
whisper_transcribe_npu: one-shot runs reuse packed weights from disk,…
audio_exec: incremental greedy decode, i.e. a self-attention KV cache…
whisper one-shot: packed weights reused from disk, decoder step cache…
ci: declare the #1783 pair a stack, so every lane's pre-PR gate stops…
audio_exec: incremental greedy decode, i.e. a self-attention KV cache…
audio_exec: incremental greedy decode, i.e. a self-attention KV cache…
bong-water-water-bong commentedon Nov 20, 2026
Two facts about the byte-exactness claim that merged tonight, both from the tree — not a complaint about the design, which is sound.
The header states its own verification contract (
npu/audio_exec.h:129-130):1. The test named there does not read the variable.
So the comparator lives in the tool only, and the sentence sends a reader to a file where it is not. One of the two should move: either the test grows the comparison, or that half of the sentence goes.
2. Nothing sets it, so the exactness is checkable on request, not checked.
tools/whisper_transcribe.cpp:578printsverify: N step(s) compared, M differ— a reported count, and nothing in the tree makes N non-zero. That matters because this is the one claim in the PR that no other arm covers: the KV-cache path is bit-identical because someone compared it, and today that someone has to know to export a variable whose name only a comment mentions.The cheapest close, given that the whisper arms skip in CI anyway (
audio_execreturns 77 without a pack —tools/ci/ctest_skips.txtnames it with that reason, so a green CI never showed this path): a second row beside the existing one,ENVIRONMENT "ONEBIT_WHISPER_DECODE_VERIFY=1", so a lane box that does have a pack runs the comparison by default and the count lands in the log without anyone remembering the variable. It does not make CI check it — that needs a pack on the runner, which is #3034/#2997 territory — but it turns "checkable on request" into "checked where it can be", which is the difference the header's sentence claims.Also worth deciding while you are in there: what a
differdoes today — print-and-continue is a diagnostic, a non-zero exit is an assertion. The row only means something if it fails.bong-water-water-bong commentedon Nov 20, 2026
Closing (orchestrator): the bar is met and everything is merged.
Whisper-small encoder on the NPU route, one 30 s window, measured on strixhalo (same binary, arms interleaved, shared box at load 8-20, no quiet window):
Bar: 0.6 s per window. The cold first pass is about 0.46-0.57 s with the packed-weight cache (#3036), 0.67-1.05 s on the first run that writes it.
A one-shot transcription of a 30 s clip (jfk) went from 18.96-23.47 s to 4.17-4.24 s: the decoder now runs its per-window parts once (#3036) and decodes incrementally (#3037).
Every change is bit-identical: the encoder output hash is unchanged on both routes in every arm, transcripts equal the CPU baseline on four fixtures three times each, and the incremental decode was compared byte for byte against the uncached path at every step.
Not done, by choice: anything that changes the numbers (NPU attention in bf16, int4 weights, the decoder's cross-attention projections on the NPU). Those would need a transcript-accuracy gate instead of bit-identity.
ci: drop the stale #1783 allow entry, and keep the lesson it taught (…
whisper: encoder attention on the NPU in bf16 behind ONEBIT_AUDIO_NPU…