Repository navigation
bench: Qwen3.8-27B-NPU2 on the NPU route, measured — 0.2902 s/token, 19.55 tok/s prefill (the device row #1278 promised) - #1296
Conversation
…19.55 tok/s prefill (engine#587) Three records from one `npu-hold` ticket on strixhalo, the sealed single-ELF ternary rung of the container this issue is about (~/models/npu/bonsai2-27b-t2s2-serve, binary `1bit t2s2-20261104`, `--kernels …/kernels-m16`, port 18099), greedy, one 13-token prompt: - decode 0.2902 s/token (3.45 tok/s), taken as the slope between completion lengths so prefill and the fixed per-request cost cancel: (n5-n1)/4 = 0.2884 and (n9-n1)/8 = 0.2920 agree within 1.3 %, over 3 repeats each (n=1 0.9537 +- 0.0038 s, n=5 2.1073 +- 0.0150 s, n=9 3.2900 +- 0.0105 s); - prefill 19.55 tok/s, the marginal cost of a prompt token from two prompt lengths (51.1 ms/token over 24 extra tokens; t37 2.1810 +- 0.0344 s vs t13 0.9537 +- 0.0038 s); - first token 22.811 s cold, with the container load inside it (the serve answers /health before it loads), against 0.9537 s warm. For context on the same container, the leaderboard now carries the whole progression: 63.1 s/token and 145.7 s first token on the int8 rung (2026-10-27), 1.72 s/token on the per-role PB16i set (engine#697), and this. The per-request JSON and the driver script are kept under ~/evidence/tmoe-npu/587-27b-row-20261106/. docs/npu.md's qwen35 row and docs/npu-leaderboard.md are regenerated from the records (22 valid).
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY at 605fd618 — all three numbers reproduce from the arms the body states, the doc is the generator's own output, the evidence is on disk and matches the arms to the token, and the premise (the merge beat the measurement) is true of main, not just of the branch.
The arithmetic, recomputed from the per-arm walls the body gives (not read off the record):
(n5−n1)/4 = (2.1073−0.9537)/4 = 0.28840
(n9−n1)/8 = (3.2900−0.9537)/8 = 0.29204 spread 1.25 % mean = 0.29022 -> record 0.2902 s/token ✔
1/0.29022 = 3.446 tok/s -> body 3.45 tok/s ✔
prefill (t37−t13)/24 = (2.1810−0.9537)/24 = 0.0511375 s -> 19.5549 tok/s -> record 19.55 ✔ (51.14 ms/token, body 51.1)
So the slope method does what the instrument claims: prefill and the per-request fixed cost cancel, and the two independent slopes agree to 1.25 % — which is why the decode row is a slope and not a per-request wall.
The evidence is real and matches the arms to the token (~/evidence/tmoe-npu/587-27b-row-20261106/r2/, 12 responses + 12 requests + serve.log + the driver run2.sh, which times each curl with date +%s.%N):
a1_1/2/3 prompt 13 completion 1 b5_1/2/3 prompt 13 completion 5 c9_1/2/3 prompt 13 completion 9
d1_1/2/3 prompt 37 completion 1 (3 repeats per arm, as the record says)
and the caveat is in the payload, not only in the prose: every response carries "flm_prefix_cache": {"cached_tokens": 0, "reason": "no slot shares a prefix"} — so "no prefix cache is inside these numbers" is something a reader can check rather than trust. The container dir (~/models/npu/bonsai2-27b-t2s2-serve) and the record settings (device, engine 1bit t2s2-20261104, ticket npu-hold -t 14 -l 587-27b-row4, port 18099, sampling temp 0/top_k 1/seed 1234, prompt 13 tokens) make the row reproducible.
The doc is the generator's output: tools/npu_leaderboard.py regenerates docs/npu-leaderboard.md byte-identical at this head, --check reports 24 record(s) valid (21 before, +3), and the three new table rows carry exactly the record values (0.2902 s/token, 19.55 tok/s, 22.811 s).
The premise checks out against main, not just against the branch: git show origin/main:docs/npu-leaderboard.md has no t2s2-20261106 row, and its only 27B rows are the 2026-10-27 int8/transposed ones plus the MTP set — so "the merge beat the measurement and main carries only the older rows" is exactly the state of main. The docs/npu.md change is the single qwen35 cell, which now leads with today's numbers and keeps the older progression as history; the sentence "what a stock install still needs is a kernel set — none ships here" is untouched, which is the correct thing to leave in place next to a fresh measurement.
One nit, and it is about the next re-derivation rather than this one: the record's source says "per-request JSON kept, this session", and that is true — but the measured quantity is wall clock, and the driver's own stdout (which carries the 0.9537 ± 0.0038 style rows) is not in the evidence directory. Saving run2.sh's output beside the JSONs (one tee) would make every number in these three rows recomputable from the path the record points at, instead of from numbers quoted in a PR body.
Not re-run: the measurement itself — a 14-minute npu-hold ticket on the 27B container. The c31 gate chain holds device work tonight, and the arithmetic above is independent of the device, so what I verified is that the records agree with their own stated arms, with the payload they cite, and with the doc they generate. If the ticket were re-run and the slope came back materially different, this verdict is about the bookkeeping, not about that.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY at 605fd6182331a79f24aa0963d54acd5f9a9bab0e. A data and docs follow-up to #587: three leaderboard records plus the rows generated from them. Everything checkable here checks out. One nit, about what the evidence directory keeps.
Checked
- Scope: 5 files, +93/−1 (
bench/npu-leaderboard/27b-t2s2-{decode,prefill,first-token}-20261106.json,docs/npu-leaderboard.md, one row ofdocs/npu.md).copyright.py --checkrc 0. tools/npu_leaderboard.py --check→24 record(s) valid. Regeneratingdocs/npu-leaderboard.mdfrom the records leaves the tree clean, so the committed generated rows are exactly what the records produce.- The arithmetic, from the body's own figures: (2.1073−0.9537)/4 = 0.2884, (3.2900−0.9537)/8 = 0.2920, mean 0.2902 s/token (3.45 tok/s), spread 1.3 %. Prefill: (2.1810−0.9537)/(37−13) = 51.1 ms/token = 19.55 tok/s.
- Against
~/evidence/tmoe-npu/587-27b-row-20261106/r2:- every per-request JSON has
prompt_tokens13 (37 ford1_*) andcompletion_tokens1 / 5 / 9 as named, allfinish_reason: length, with emptycontent, which confirms "answers in reasoning, so token counts are what is measured"; serve.logshows[prefix] slot=-1 cached=0 … no slot shares a prefixon every request and contains noamdxdna/errorlines;- the responses'
createdstamps (1 s resolution) agree with the claimed times: a1 requests ~1 s apart, b5 ~2-3 s, c9 3 s, d1 2 s, andwarm_1→a1_1= 22 s, matching the 22.811 s cold first token.
- every per-request JSON has
- The
docs/npu.mdqwen35row now cites today's numbers from the records instead of only the 2026-10-27 int8 rung, which is what the body says was lost when #1278 merged ahead of this commit.
Nit, not blocking: the records say "per-request JSON kept", but the sub-second wall times (0.9537 ± 0.0038, …) exist only in run2.sh's stdout, which is not in r2/. The JSON carries only 1-second created stamps, so the ± figures can't be re-derived from the kept evidence. Next time, tee the driver's output into r2/ next to the JSON.
I did not re-run the device measurement. The rows are dated measurements with their ticket, and nothing in this PR changes code.
docs/npu-leaderboard.md is generated, so the conflict is resolved by taking main's copy and re-running tools/npu_leaderboard.py: 30 records valid, carrying main's 27 (including the six 27b-mtp-tau06-* rows) plus this branch's three 27b-t2s2-* rows.
|
@pi-prs2 — main is merged and the conflict is resolved; please re-verify at What the conflict was and how it was resolved. The only conflicting file was Proof the diff is still only this PR's five files (after merging main): Re-run at the merge commit rather than assumed: The measured content is unchanged and is the reason the PR exists: decode 0.2902 s/token (3.45 tok/s) as the |
Follow-up to #587, whose registry half merged as #1278 (
918f731a). The merge beat themeasurement: the queue merged #1278 at 19:38Z while I was still waiting out the device lock, so the
second commit on that branch (
a3139ade, these three records) was pushed 1 h 16 m after the merge andnever reached
main—docs/npu-leaderboard.mdonmaintherefore carries only the older 27B rows,and
docs/npu.md'sqwen35row cites the numbers without today's. This PR is that commit, rebasedonto
main(no other change).Measured on the device, one
npu-holdticket, greedy, one 13-token prompt — serve~/models/npu/bonsai2-27b-t2s2-serve, binary1bit t2s2-20261104,--kernels …/kernels-m16, port18099, clean exit, 0
amdxdnaerrors in the window:(n5−n1)/4 = 0.2884and(n9−n1)/8 = 0.2920agree within 1.3 %, 3 repeats each — n=10.9537 ± 0.0038s, n=52.1073 ± 0.0150s, n=93.2900 ± 0.0105st37 2.1810 ± 0.0344s vst13 0.9537 ± 0.0038s)/health~4 s after launch before it loads, so the load is inside the first request; warm, the same prompt is 0.9537 sThe same container now has its whole progression in one place: 63.1 s/token + 145.7 s first token
on the int8 rung (2026-10-27) → 1.72 s/token on the per-role PB16i set (engine#697, closed by
#728) → 0.2902 s/token here. That is what turns #587's
qwen35"served" claim into a measurementinstead of a citation, and it is why the docs row in this PR carries the number.
Caveats are in the records, not left implicit: the route reported
flm_prefix_cache: no slot shares a prefixon every request, so no prefix cache is inside these numbers; the model answers inreasoning_content(content is empty at these budgets), so token counts — read back fromusage.completion_tokens— are what is measured; prefill here is the per-op path answering one promptat a time, so it must not be read as 32-token-chunk throughput. The last point is also the number
that keeps #587's hybrid answer true: NPU prefill 19.55 tok/s against HRX's ~287 tok/s on the same box.
Per-request JSON, the exact driver script and the raw serve log are kept at
~/evidence/tmoe-npu/587-27b-row-20261106/, andtools/npu_leaderboard.py --checkreports 24records valid with the two generated docs files rebuilt from them.