Skip to content

docs: the 1.7B NPU set is the Q4_K dx4k6 one, not "follows in the next release" - and the catalogue still drops it until the pack switch - #3468

Merged
bong-water-water-bong merged 1 commit into
mainfrom
fix/3400-npu-1p7b-docs
Nov 24, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
fix/3400-npu-1p7b-docs

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

What was wrong

engine#3400 was filed when Qwen3-1.7B failed AMD's verify-model top-5 gate on both NPU routes (7/8, prompt 4 step 5) with third-party packs; "not verified / not in the shipped NPU set" was copied into the docs. Two things have moved since, and the tree now contradicts those lines:

Claim-by-claim verification (tree + gh, no NPU run):

claim from triage verified
release-check requires the 1.7B dx4k6 set yes: npu_dx4k6_verdict loops 2048x6144x16x8 2560x9728x32x8, ONEBIT_DX4K6_TWINS defaults to the 4B only, so the 1.7B set stands alone; --self-test PASSes rc2's layout and FAILs a missing 2048x6144x16x8-dx4k6
config/npu-catalogue-sets.json:5 "maps it" to the dx4k6 set no: line 5 still maps Qwen3-1.7B-NPU-1bit to the Q4NX geometry 2048x6144x16x8, and no release ships that set, so tools/npu_catalogue_filter.py drops the 1.7B entry on a dx4k6-only payload. The release-check comment that said those entries "map to the dx4k6 sets" was false as merged; corrected here
npu-kernels#132 measured 8/8 yes: merged at the pin, table says 1.7B 8/8 (Q4NX route 7/8), 4B 8/8 (Q4NX 8/8)
docs/npu.md:2604 stale yes

What changed

Docs and comments only; no behaviour change.

  • docs/npu.md:2603: the Serving intro names what rc2 carries (0.6B and 4B Q4NX sets; 1.7B and 4B Q4_K dx4k6 sets).
  • docs/npu.md:2623: new "Q4_K (dx4k6) packs: Qwen3-1.7B and 4B in rc2" section with the measured record, the pack/set mechanism, the no-layerm limit on concurrent users, and what the release carries vs what the Lemonade catalogue offers.
  • docs/npu.md:2979: a note on the 1.7B row of the "Dense Qwen3, checked on the NPU" table — those are Q4NX-set numbers and that set never shipped; rc2's 1.7B set is the Q4_K one.
  • docs/releases.md:454-459: the same stale sentence, corrected with the record and a cross-link.
  • config/npu-catalogue-sets.json:2: the about note records that the 1.7B geometry now ships only as <geometry>-dx4k6, why its entry is still dropped, and what the pending switch has to change (map values unchanged).
  • os/mini/release-check.sh:988-994, 1592, 2718: comments corrected — the catalogue does not map to the dx4k6 sets yet, the 1.7B set stands alone, and the AIR 8/8 record is cited.

The numbers now in the docs (npu-kernels#132)

imatrix Q4_K (dx4k6) Q4NX (FastFlowLM pack)
Qwen3-1.7B, AIR verify-model top-5 vs HF BF16 8/8 7/8
Qwen3-4B, AIR verify-model top-5 vs HF BF16 8/8 8/8
Qwen3-1.7B decode 23.1-23.2 ms/step (~43 tok/s) 24.8-24.9 ms/step
Qwen3-4B decode 54.6-54.7 ms/step (~18.3 tok/s) 58.6-58.9 ms/step

Gate method: AIR's prompts/instruct.txt, 8 prompts raw, 32 greedy tokens no EOS stop, HF BF16 Qwen/Qwen3-1.7B@70d244cc reference, mutual top-5 at first divergence — the same gate #3400 ran. The 8/8 is the dev-set measurement recorded in #132; the serve-level run on rc2's signed sets is still listed open there.

Control (pre-fix vs post-fix)

Pre-fix tree, throwaway worktree at origin/main 4cb6131e:

$ sed -n '2603,2604p' docs/npu.md
kernels (Qwen3-0.6B and Qwen3-4B; Qwen3-1.7B follows in the next release):
$ sed -n '454,455p' docs/releases.md
...and serves Qwen3-0.6B and Qwen3-4B on the NPU;
Qwen3-1.7B follows in the next release.
$ bash os/mini/release-check.sh --self-test | grep dx4k6
ok   PASS the Q4_K NPU sets ship signed (2048x6144x16x8-dx4k6; 2560x9728x32x8-dx4k6 ...
ok   FAIL Q4_K NPU sets (1 of 2 good): 2048x6144x16x8-dx4k6 is missing

So before this PR the tree required the 1.7B dx4k6 set while its docs said the 1.7B was not shipped. The catalogue behaviour the docs now describe, measured on a synthetic rc2 set layout (1024x3072x16x8, 2048x6144x16x8-dx4k6, 2560x9728x32x8, 2560x9728x32x8-dx4k6) with the pinned Lemonade server_models.json:

npu_catalogue_filter: dropped Qwen3.6-35B-A3B-NPU-1bit: needs a route this payload does not ship (mapped to null)
npu_catalogue_filter: dropped Qwen3-1.7B-NPU-1bit: no kernel set 2048x6144x16x8 in the payload
npu_catalogue_filter: 2 NPU entr(y/ies) offered: Qwen3-0.6B-NPU-1bit Qwen3-4B-NPU-1bit

After (this branch): grep -rn 'Qwen3-1.7B follows in the next release' docs/ → no matches; the release-check self-test's npu-dx4k6 arms are byte-identical to the pre-fix output (diff empty — the comment edit changes no verdict), and the filter's answer is unchanged (now documented).

Release-check row on this branch

$ scripts/pre-pr-checks.sh --tree-only --base origin/main
pre-pr-checks: all 16 check(s) green, 2 skipped, 0 could not be told, 2 open-PR row(s) not run (--tree-only)

Skipped: hip_f16_audit and kernel_id_selftest — both "no gpu-kernels tree" on this box (environment, not this PR).

Not done, and the risk to look at first

  • The catalogue switch is deliberately not forced here. The pinned Lemonade entry still names FastFlowLM's Q4NX pack; pointing Qwen3-1.7B-NPU-1bit at the dx4k6 set now would offer an entry whose pack the shipped set refuses by name — engine#3287's failure mode in reverse. The pack publish (1bit-MONSTER/Qwen3-{1.7B,4B}-NPU-1bit-Q4K) and the entry + map switch are pins: npu-kernels -> c19a9226 (dx glue + Q4_K dx4k6 packs for Qwen3-1.7B / 4B) + release-check row npu-dx4k6 #3453's step 5.
  • scripts/weekly.sh:400-409 will FAIL a payload that carries the two dx4k6 sets: it requires every shipped set name to be a config/npu-catalogue-sets.json value, and 2048x6144x16x8-dx4k6 / 2560x9728x32x8-dx4k6 are not values. Measured on rc2's set names: two "no catalogue entry can load it" FAILs. That is a packaging check vs the pending switch, not this issue's fix — flagged so the switch PR (or the release builder) owns it.
  • No NPU was run (lane rule). NPU: Qwen3-1.7B fails AIR's top-5 token gate on both NPU routes (prompt 4, step 5): not verified #3400's closure criterion is a recorded 8/8 on the shipped signed 1.7B set plus a catalogue that agrees with the shipped set; this PR delivers the agreeing docs and the record pointer, and does not close the issue.

Refs #3400.

…t release" - and the catalogue still drops it until the pack switch

engine#3400 reports Qwen3-1.7B on the NPU as "not verified" and "not in the shipped NPU set". Both of its
failing AIR runs used third-party packs: FastFlowLM's Q4NX pack on the dx route and an import of AMD's rai
1.9.0 pack on the forward route, both 7/8 at prompt 4 step 5. With our own imatrix Q4_K packs the same gate
is 8/8 (npu-kernels#132, merged 2026-11-24T03:47:31Z at c19a9226c9fb154e36cd334362378fa3365e8b41, which is
the sha config/npu-kernels.config pins; 4B 8/8 on both packs; plain non-imatrix Q4_K 1.7B 6/8). The tree
already acts on that: os/mini/release-check.sh's npu-dx4k6 row (#3453, #3460) requires the signed
2048x6144x16x8-dx4k6 set and lets it stand alone, because no 1.7B Q4NX set was ever signed. But
docs/npu.md:2604 and docs/releases.md:454-455 still said "Qwen3-1.7B follows in the next release", and the
1.7B row in the "Dense Qwen3, checked on the NPU" table (docs/npu.md:2970) is the never-shipped Q4NX set's
numbers: the docs contradicted the release check.

What the tree does not do yet: config/npu-catalogue-sets.json still maps Qwen3-1.7B-NPU-1bit to the Q4NX
geometry, and the pinned Lemonade catalogue entry still names FastFlowLM's Q4NX pack, so
tools/npu_catalogue_filter.py drops the 1.7B entry from a dx4k6-only payload ("no kernel set
2048x6144x16x8 in the payload") and the release catalogue offers 0.6B and 4B. os/mini/release-check.sh:989-990
claimed those entries "map to the dx4k6 sets", which is false as merged. The switch is #3453's step 5, a
separate pending change, so this change records it instead of forcing it: pointing the 1.7B at the dx4k6
set now would offer an entry whose Q4NX pack the shipped set refuses by name - engine#3287's failure mode
in reverse.

- docs/npu.md:2603: the Serving intro names what rc2 carries (0.6B and 4B Q4NX; 1.7B and 4B Q4_K dx4k6).
- docs/npu.md:2623: new "Q4_K (dx4k6) packs" section - the measured AIR gate (1.7B 8/8 vs the Q4NX pack's
  7/8; 4B 8/8 on both), decode (1.7B 23.1-23.2 vs 24.8-24.9 ms/step; 4B 54.6-54.7 vs 58.6-58.9), the
  no-layerm limit on concurrent users, and what the release carries vs what the catalogue offers.
- docs/npu.md:2979: the 1.7B row is the Q4NX set's numbers and that set never shipped; the note says so
  and points at the Q4_K measurement.
- docs/releases.md:454-459: the same stale sentence, corrected, with the record and a cross-link.
- config/npu-catalogue-sets.json:2: the about note says the 1.7B geometry now ships only as
  <geometry>-dx4k6, why its entry is still dropped, and what the pending switch has to change (map values
  unchanged).
- os/mini/release-check.sh:988-994, 1592, 2718: comments corrected - the catalogue does not map to the
  dx4k6 sets yet, the 1.7B set stands alone, and the AIR 8/8 record is cited. Comments only.

Evidence

Control, pre-fix tree (throwaway worktree at origin/main 4cb6131):
  $ sed -n '2603,2604p' docs/npu.md
  kernels (Qwen3-0.6B and Qwen3-4B; Qwen3-1.7B follows in the next release):
  $ sed -n '454,455p' docs/releases.md
  ...and serves Qwen3-0.6B and Qwen3-4B on the NPU;
  Qwen3-1.7B follows in the next release.
  $ bash os/mini/release-check.sh --self-test | grep dx4k6
  ok   PASS the Q4_K NPU sets ship signed (2048x6144x16x8-dx4k6; 2560x9728x32x8-dx4k6 ...
  ok   FAIL Q4_K NPU sets (1 of 2 good): 2048x6144x16x8-dx4k6 is missing
  -> the release check requires the 1.7B dx4k6 set while the docs said the 1.7B was not shipped.
  $ python3 tools/npu_catalogue_filter.py <pinned server_models.json> <rc2 set layout>
  npu_catalogue_filter: dropped Qwen3-1.7B-NPU-1bit: no kernel set 2048x6144x16x8 in the payload
  npu_catalogue_filter: 2 NPU entr(y/ies) offered: Qwen3-0.6B-NPU-1bit Qwen3-4B-NPU-1bit
  (rc2 set layout: 1024x3072x16x8, 2048x6144x16x8-dx4k6, 2560x9728x32x8, 2560x9728x32x8-dx4k6)

After (this branch):
  $ grep -rn 'Qwen3-1.7B follows in the next release' docs/    -> no matches
  $ bash os/mini/release-check.sh --self-test | grep dx4k6 | diff - <the pre-fix output>  -> identical
  (rc2's layout still PASSes; a missing 2048x6144x16x8-dx4k6 still FAILs: the comment edit changes no
  verdict)
  $ python3 tools/npu_catalogue_filter.py ...                  -> the same two drops / two offered; now the
  docs state that behaviour instead of claiming the catalogue switch already happened.

Record checked with gh:
  $ gh pr view 132 --repo 1bit-MONSTER/npu-kernels --json state,mergedAt,mergeCommit
  {"mergedAt":"2026-11-24T03:47:31Z","merge":"c19a9226c9fb154e36cd334362378fa3365e8b41","state":"MERGED"}
  Its measured table: Qwen3-1.7B imatrix Q4_K 8/8 AIR top-5 vs HF BF16 (Q4NX route 7/8), 24.78-24.91 ->
  23.08-23.25 ms/step (~43 tok/s); Qwen3-4B 8/8 both (58.62-58.87 -> 54.63-54.74); plain Q4_K 1.7B 6/8.

Gate:
  $ scripts/pre-pr-checks.sh --tree-only --base origin/main
  pre-pr-checks: all 16 check(s) green, 2 skipped, 0 could not be told, 2 open-PR row(s) not run
  (--tree-only). Skipped: hip_f16_audit and kernel_id_selftest, both "no gpu-kernels tree" on this box.

Refs #3400, not Closes: the closure criterion is a recorded 8/8 on the shipped signed 1.7B set, and the
serve-level AIR gate on rc2's signed sets is still listed open in npu-kernels#132 (the 8/8 here is the
dev-set measurement); the pack publish and the catalogue switch are still to land.
@bong-water-water-bong
bong-water-water-bong enabled auto-merge (squash) November 24, 2026 08:05
@bong-water-water-bong
bong-water-water-bong merged commit 37b1461 into main Nov 24, 2026
10 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the fix/3400-npu-1p7b-docs branch November 24, 2026 08:23
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

3400 - Partially compliant

Compliant requirements:

  • Qwen3-1.7B now passes the AIR top-5 gate with our own imatrix Q4_K packs (8/8)
  • The release-check.sh now requires the signed 2048x6144x16x8-dx4k6 set to ship
  • The documentation now correctly states that Qwen3-1.7B is part of the next release (rc2) with Q4_K packs
  • The catalogue entries are updated to reflect that the 1.7B now uses Q4_K dx4k6 sets

Non-compliant requirements:

  • The PR does not include actual hardware testing or verification of the fix on the NPU
  • The PR does not include the actual switch of catalogue entries to use Q4_K packs (this is noted as pending)

Requires further human verification:

  • Verification that the 1.7B Q4_K pack actually works on the hardware with the specified performance
  • Confirmation that the catalogue entries have been switched to use Q4_K packs (pending change)
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Documentation Inconsistency

The documentation still refers to the Qwen3-1.7B as being part of the "next release" in the context of the catalogue, even though the release-check.sh now requires the dx4k6 sets and the tree already acts on that. The documentation should be updated to reflect that the 1.7B is now part of the current release (rc2) with Q4_K packs, not the next release.

kernels (the Qwen3-0.6B and Qwen3-4B Q4NX sets, and from rc2, the next release, the Qwen3-1.7B
and 4B Q4_K `dx4k6` sets — see "Q4_K (dx4k6) packs" below):
Incomplete Documentation Update

The documentation mentions that the catalogue entries will switch to Q4_K packs in a separate, pending change, but this change is not reflected in the current PR. This creates a disconnect between the documentation and the actual state of the codebase.

still names FastFlowLM's Q4NX pack, and `config/npu-catalogue-sets.json` still names the Q4NX
geometry for it, so `tools/npu_catalogue_filter.py` drops that entry from a dx4k6-only payload ("no
kernel set 2048x6144x16x8 in the payload"): the release catalogue offers 0.6B and 4B. Switching the
entries to our Q4_K packs (and the map to `2048x6144x16x8-dx4k6`) is a separate, pending change;
until it lands a 1.7B Q4_K pack serves on the route (`1bit serve -m <pack dir>`) but is not offered
by the catalogue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant