Repository navigation
tools: a generated NPU engine leaderboard - #621
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 (
--checkexits 1) rather than ranked, andrepeatsmust be apositive integer so "it is stable" cannot stand in for a count.
tools/npu_leaderboard.py— readsbench/npu-leaderboard/*.json, validates,sorts by the metric's unit (
s/tokenlow-to-high,tok/shigh-to-low), groupsby host, writes
docs/npu-leaderboard.mdwith a do-not-edit banner.bench/npu-leaderboard/README.md— the record shape and the rules.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
hostbecause a laptop NPU row next to a server row isan invitation to read a meaningless ratio.