Skip to content

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

Merged
bong-water-water-bong merged 11 commits into
mainfrom
1bit/tissues-587-row
Nov 7, 2026
Merged

bong-water-water-bong merged 11 commits into
mainfrom
1bit/tissues-587-row

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Follow-up to #587, whose registry half merged as #1278 (918f731a). The merge beat the
measurement:
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 and
never reached main — docs/npu-leaderboard.md on main therefore carries only the older 27B rows,
and docs/npu.md's qwen35 row cites the numbers without today's. This PR is that commit, rebased
onto main (no other change).

Measured on the device, one npu-hold ticket, greedy, one 13-token prompt — serve
~/models/npu/bonsai2-27b-t2s2-serve, binary 1bit t2s2-20261104, --kernels …/kernels-m16, port
18099, clean exit, 0 amdxdna errors in the window:

metric value how it was taken
decode 0.2902 s/token (3.45 tok/s) slope between completion lengths so prefill and per-request cost cancel: (n5−n1)/4 = 0.2884 and (n9−n1)/8 = 0.2920 agree within 1.3 %, 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 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 the serve answers /health ~4 s after launch before it loads, so the load is inside the first request; warm, the same prompt is 0.9537 s

The 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 measurement
instead 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 prefix on every request, so no prefix cache is inside these numbers; the model answers in
reasoning_content (content is empty at these budgets), so token counts — read back from
usage.completion_tokens — are what is measured; prefill here is the per-op path answering one prompt
at 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/, and tools/npu_leaderboard.py --check reports 24
records valid
with the two generated docs files rebuilt from them.

…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

Copy link
Copy Markdown
Collaborator Author

#1296 ready for review at afbd05c (5 files: 3 leaderboard records, docs/npu-leaderboard.md, docs/npu.md; follow-up to #587 / #1278). Device row only; no source change.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 of docs/npu.md). copyright.py --check rc 0.
  • tools/npu_leaderboard.py --check → 24 record(s) valid. Regenerating docs/npu-leaderboard.md from 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_tokens 13 (37 for d1_*) and completion_tokens 1 / 5 / 9 as named, all finish_reason: length, with empty content, which confirms "answers in reasoning, so token counts are what is measured";
    • serve.log shows [prefix] slot=-1 cached=0 … no slot shares a prefix on every request and contains no amdxdna/error lines;
    • the responses' created stamps (1 s resolution) agree with the claimed times: a1 requests ~1 s apart, b5 ~2-3 s, c9 3 s, d1 2 s, and warm_1 → a1_1 = 22 s, matching the 22.811 s cold first token.
  • The docs/npu.md qwen35 row 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.
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

@pi-prs2 — main is merged and the conflict is resolved; please re-verify at 7f8cc895. GitHub now reports
MERGEABLE (was CONFLICTING/DIRTY at 605fd618), mergeStateStatus BLOCKED only on the pending checks.

What the conflict was and how it was resolved. The only conflicting file was docs/npu-leaderboard.md, which
is generated (tools/npu_leaderboard.py writes it from bench/npu-leaderboard/*.json; its own header says
"edit the records, not this file"). Resolving it by hand would have been wrong, so I took main's copy and re-ran the
generator: 30 records valid — main's 27 (including the six 27b-mtp-tau06-* rows that landed since) plus this
branch's three 27b-t2s2-* rows. No record file conflicted; nothing was dropped and nothing was hand-edited.
docs/npu.md auto-merged and still carries the qwen35 row with 0.2902.

Proof the diff is still only this PR's five files (after merging main): git diff --stat origin/main...HEAD →

 bench/npu-leaderboard/27b-t2s2-decode-20261106.json       | 29 +++++
 bench/npu-leaderboard/27b-t2s2-first-token-20261106.json  | 28 +++++
 bench/npu-leaderboard/27b-t2s2-prefill-20261106.json      | 29 +++++
 docs/npu-leaderboard.md                                   |  6 +++
 docs/npu.md                                               |  2 +-
 5 files changed, 93 insertions(+), 1 deletion(-)

Re-run at the merge commit rather than assumed: npu_leaderboard.py --check 30 records valid,
npu_leaderboard_test.py all checks passed, census_watch_test.py all checks passed,
registry_gaps_test.py PASS, copyright.py --check rc 0, and no conflict markers anywhere in docs/ or
bench/.

The measured content is unchanged and is the reason the PR exists: decode 0.2902 s/token (3.45 tok/s) as the
slope between completion lengths ((n5−n1)/4 = 0.2884, (n9−n1)/8 = 0.2920, spread 1.3 %, 3 repeats each),
prefill 19.55 tok/s, 22.811 s cold first token with the container load inside it — one npu-hold ticket,
greedy, 0 amdxdna errors, evidence at ~/evidence/tmoe-npu/587-27b-row-20261106/.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

#1296 re-pushed at 7f8cc89 (main merged, docs/npu-leaderboard.md regenerated: 30 records valid).

@bong-water-water-bong
bong-water-water-bong merged commit a4e8864 into main Nov 7, 2026
8 of 9 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the 1bit/tissues-587-row branch November 7, 2026 02:14
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.

1 participant