Skip to content

tools: a generated NPU engine leaderboard - #621

Merged
bong-water-water-bong merged 3 commits into
mainfrom
feat/npu-leaderboard
Oct 27, 2026
Merged

bong-water-water-bong merged 3 commits into
mainfrom
feat/npu-leaderboard

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Rows are measured runs of this engine, not marketing claims: a record that cannot
name its instrument, its repeat count, its timestamp and where the numbers came
from is refused (--check exits 1) rather than ranked, and repeats must be a
positive integer so "it is stable" cannot stand in for a count.

  • tools/npu_leaderboard.py — reads bench/npu-leaderboard/*.json, validates,
    sorts by the metric's unit (s/token low-to-high, tok/s high-to-low), groups
    by host, writes docs/npu-leaderboard.md with a do-not-edit banner.
  • bench/npu-leaderboard/README.md — the record shape and the rules.
  • Six seeded records, all from logs that exist on the box: Qwen3.8-27B-NPU2 Q4NX
    on the NPU route (63.1 and 67.5 s/token — the pair that showed the add-on does
    not move decode), three Flash-Next prefill points (286.63 / 269.34 / 260.59
    tok/s), and the Qwen3-4B four-slot arm from the HRX: Qwen3-4B --parallel 4 NaN logits on a never-used slot while another GPU job runs (CWSR off) #528 repro, annotated as
    single-slot because that arm never actually used four slots.

Deliberately not included: no CI wiring (the required-check set is fixed by a
ruleset and this is not worth adding a job for), and no cross-host comparison —
the generator groups by host because a laptop NPU row next to a server row is
an invitation to read a meaningless ratio.

1bit and others added 3 commits October 27, 2026 16:19
A row is one measured run, and the generator refuses any record that cannot say
how it was measured: instrument, repeat count, timestamp and source are required,
and a record with repeats=0 or a missing instrument fails --check instead of
being ranked. The unit decides the sort direction (s/token low-to-high, tok/s
high-to-low), rows are grouped by host so nobody compares a laptop NPU with a
server, and docs/npu-leaderboard.md carries a do-not-edit-by-hand banner.

Seeded with the six runs we have on disk: the 27B Q4NX pair on the NPU route,
three Flash-Next prefill points, and the Qwen3-4B four-slot arm from the #528
repro (noted as single-slot, since that arm never used four slots).
The build job runs tools/copyright.py --check, which wants a notice on every
tracked file. The generator now writes the same notice into the top of
docs/npu-leaderboard.md instead of fighting --fix on every regeneration.
@bong-water-water-bong
bong-water-water-bong enabled auto-merge (squash) October 27, 2026 19:48
@bong-water-water-bong
bong-water-water-bong merged commit 800cf6f into main Oct 27, 2026
7 of 8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the feat/npu-leaderboard branch October 27, 2026 19:52
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