Repository navigation
registry: the dense qwen3.5 family is served on the NPU route, so Qwen3.8-27B-NPU2's packs are not a census gap (Fixes #587) - #1278
Conversation
… FastFlowLM packs are not a gap (Fixes #587) `tools/registry_build.py`'s NPU_ARCHS listed only the MoE qwen3.5 class (`Qwen3_5MoeForCausalLM`, "Qwen3.6-35B-A3B"), never the dense one, so `registry/architectures.json` mapped the whole dense qwen35 family `hrx`-only. The daily census-watch answered from that file, so it reported `qwen35 (12 packs)` under "Q4NX (NPU) packs for a family the NPU route does not serve" - including `FastFlowLM/Qwen3.8-27B-NPU2`, the model this issue is about, which this repository has measured NPU rows for since 2026-10-27. The route does not refuse that container at load: it decodes it at 63.1 s/token and takes 145.7 s to a first token (`bench/npu-leaderboard/27b-*.json`), a 5-token prefill chunk is 58.14 s, and the ternary sealed-ELF rung on the same container is 1.72 s/token at 3/3 text-identical output (engine#697, closed by #728). What a stock install lacks is a kernel set for the geometry, not the model type - which is why the docs row now says that instead of "not served". NPU_ARCHS gains the two text LM classes of the family (`Qwen3_5ForCausalLM`, `Qwen3_5ForConditionalGeneration` -> qwen3_5) and deliberately not `Qwen3_5Model`, the bare vision wrapper: the vision tower is a separate `vision_weight.q4nx` this route does not load. Regenerated with the pinned llama.cpp: npu 7 -> 9, `--check` clean. Measured effect on the census, `census_watch.py --full` before vs after: 38 -> 26 Q4NX packs under "a family the NPU route does not serve" and no `qwen35` line at all; `FastFlowLM/Qwen3.8-27B-NPU2` now prints `registry Qwen3_5ForConditionalGeneration -> qwen35 npu route: qwen3_5`. tests/census_watch_test.py failed 5 checks after this and was right to: its NPU-gap fixtures used D3-Mini (`qwen3_5_text` -> qwen35) as the HRX-only example. D3-Mini now asserts the new truth, and the guard's firing path keeps a real example (a `FastFlowLM/Gemma3-12B-NPU2` listing; gemma3 is HRX-only in the live registry and FLM ships those packs) through `sweep_org` + `report_flm`, plus a new check that a moved NPU-served pack does not alert. docs/npu.md's qwen35 row and the fast-lane sentence carry the answer with the numbers and the engine#697 provenance.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY at 03ef6d7f — the registry regenerates byte-identically from the tool at this head, and I reproduced the census before/after against the live Hub: 38 → 26 packs, with exactly the 12 qwen35 packs leaving the list and FastFlowLM/Qwen3.8-27B-NPU2 moving to served.
Generated artifact. python3 tools/registry_build.py (needs third_party/llama.cpp checked out; I initialized it at the pinned 32559003a) → wrote … architectures.json: hrx 298, npu 9, architectures 298, mapped 298, byte-identical to the file in the PR (git status clean). So the committed JSON is the generator's output, not a hand edit.
The route claim, main vs this head (registry/architectures.json, architectures map):
| HF class | origin/main |
this head |
|---|---|---|
Qwen3_5ForConditionalGeneration |
{"gguf":"qwen35","backends":["hrx"]} |
{"gguf":"qwen35","backends":["hrx","npu"],"npu_model_type":"qwen3_5"} |
Qwen3_5ForCausalLM |
{"gguf":"qwen35","backends":["hrx"]} |
same, npu + qwen3_5 |
Qwen3_5MoeForCausalLM |
hrx, npu (qwen3_5_moe) |
unchanged |
and Qwen3_5Model (the bare vision wrapper) is still unclaimed, which is what the NPU_ARCHS comment says it should be.
The census, run twice on this box against the live org (tools/census_watch.py --full, swapping only registry/architectures.json between the two runs):
origin/main registry : -> 38 Q4NX (NPU) pack(s) for a family the NPU route does not serve: … qwen35 (12 pack(s)) …
this head registry : -> 26 Q4NX (NPU) pack(s) for a family the NPU route does not serve: dflash 1, gemma-embedding 1,
gemma3 7, gemma4 4, gpt-oss 2, hunyuan-dense 1, hy_v3 1, lfm2 6, phi3 1, qwen2vl 1, qwen35moe 1
38 − 26 = 12, the qwen35 line is gone, and FastFlowLM/Qwen3.8-27B-NPU2 prints with a + instead of !! … npu route: no. The residual qwen35moe (1 pack) is a different gguf family (qwen35moe, served for the text arch) and is honestly still counted.
The measured rows the new doc text cites are the records in the tree, to the digit: 27b-npudx-20261027 decode 63.1 s/token, 27b-first-token-after-transpose-20261027 145.7 s, 27b-prefill-batched-20261027 prefill 58.14 s; and the ternary rung's provenance checks out too — engine#697 CLOSED 2026-11-01T02:50:16Z, engine#728 MERGED 2026-11-01T09:51:49Z.
tests/census_watch_test.py → all checks passed (it grew the arms for the token fallback and the 401 path, and they are the reason the census above could run unattended). Docs are in the same PR as the behaviour (docs/npu.md family table, docs/registry.md's npu row now pointing at NPU_ARCHS as the source of the list). Fixes #587, which is still OPEN, is the right close: the route is what was missing at the host level, and the pack the issue names is now served and counted served.
One caveat I want on the record rather than in a nit: the census is live-Hub data read tonight, so 38/26 are this evening's org, not constants; the delta (the 12 qwen35 packs) is the part the PR changes and it is what I reproduced.
|
Measured on the device after all — second commit Three leaderboard records, one
The same container now has the full progression on the leaderboard: 63.1 s/token + 145.7 s first Caveats written into the records rather than left implicit: the route reported |
Fixes #587 — the item that was still open at the host level: registering the model on the NPU
route. The device row the issue asks for already exists in this repository; what did not exist is
a registry that admits the family is served, so the census counted this issue's own model as an
unserved gap.
Root cause.
tools/registry_build.py'sNPU_ARCHSlistsQwen3_5MoeForCausalLM(theqwen3_5_moetype, "Qwen3.6-35B-A3B") and never the dense qwen3.5 class, soregistry/architectures.jsonmapped the whole denseqwen35familyhrx-only — whileFastFlowLM/Qwen3.8-27B-NPU2(Qwen3_5ForConditionalGeneration, model_typeqwen3_5) is thecontainer this repository has measured NPU rows for since 2026-10-27. The route does not refuse it
at load, so the registry column was describing a refusal that does not happen.
Measured effect (host-side, no device).
tools/census_watch.py --full, before vs after thisbranch, on the live FastFlowLM org:
origin/mainqwen35 (12 packs))qwen35line)FastFlowLM/Qwen3.8-27B-NPU2lineregistry Qwen3_5ForConditionalGeneration -> qwen35(no route)… -> qwen35 npu route: qwen3_5registry/architectures.jsoncounts.npuThe measured proof for "served", from this repo, not asserted here: int8 Q4NX on the NPU route
decodes at 63.1 s/token and takes 145.7 s to a first token
(
bench/npu-leaderboard/27b-*.json, 2026-10-27), a 5-token prefill chunk is 58.14 s, and theternary sealed-ELF rung on the same container is 1.72 s/token with 3/3 text-identical
output (engine#697, closed 2026-11-01 by #728, merged
46353fe9). Today's fresh end-to-end run isnot in this PR and the body does not pretend otherwise: the first attempt was a 9-minute
npu-holdticket (§ rule 1), it took the token after 172 s and then blocked 245 s on/tmp/1bit-npu-device.lock, which an orphaned host-GEMM serve (pid 2231177,~/wt/issue1035-npubuild,:18095, alive since 11:28, no/dev/accelfd) holds exclusivelyoutside the FIFO. Two other lanes are blocked on the same process; it is escalated, not worked
around.
Scope.
NPU_ARCHSgains the family's two text-LM classes (Qwen3_5ForCausalLM,Qwen3_5ForConditionalGeneration→qwen3_5) and deliberately notQwen3_5Model, the bare visionwrapper: the vision tower is a separate
vision_weight.q4nxthis route does not load.registry/architectures.jsonregenerated against the pinned llama.cpp (--checkclean).docs/npu.md'sqwen35row goes from "not served: no NPU kernel set" to the measured answer, withwhat a stock install still lacks named (a kernel set for the geometry — none ships here), and the
fast-lane sentence gains
qwen3_5.docs/registry.md'snpurow stops pretending the column isjust
qwen3.Tests.
tests/census_watch_test.pyfailed 5 checks after the change, and rightly: its NPU-gapfixtures used D3-Mini (
qwen3_5_text→ qwen35) as the HRX-only example. D3-Mini now asserts thenew truth (
npu,npu_model_type=qwen3_5,not npu_gap), and the guard's firing path keeps areal example — a
FastFlowLM/Gemma3-12B-NPU2listing (gemma3 is HRX-only in the live registryand FLM ships those packs) driven through
sweep_org+report_flm, plus a new check that a movedNPU-served pack does not alert.
npu_flm_familiesdropsqwen35and gains three explicit checksincluding "the bare vision wrapper is not claimed". All pass, as do
registry_gaps_test.py,npu_leaderboard_test.py,check_pins_test.py,bump_workflow_report_test.py,registry_build.py --checkandcopyright.py --check.Measured on the device as well (second commit
a3139ade). After the device lock cleared, onenpu-holdticket produced three leaderboard records for this container on the sealed single-ELFternary rung: 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, agreeing within 1.3 %, 3 repeats each), prefill19.55 tok/s as the marginal cost of a prompt token (51.1 ms/token over 24 extra tokens), and
22.811 s to a first token cold with the container load inside it. Same container, whole
progression: 63.1 s/token int8 → 1.72 s/token per-role PB16i (engine#697) → 0.2902 s/token here.
Caveats are in the records: no prefix cache was shared (
flm_prefix_cachesaid so per request), themodel answers in
reasoning_contentso token counts are what is measured, and prefill is the per-oppath answering one prompt at a time (not 32-token-chunk throughput).
What this PR still does not claim: the hybrid-prefill probe (item 3) keeps its recorded answer
("recommended against", #587 comment 2026-10-27) — and the 19.55 tok/s prefill row above is the
number that keeps it true, since HRX prefill on the same box is ~287 tok/s. No KLD-vs-BF16 or
GSM8K n=40 rows are added: both need a reference pass and ~2 h of decode at 0.29 s/token, which is a
separate ticket. They are listed on the issue with the exact commands so the close does not lose
them.