Repository navigation
release check npu-dx4k6: only the 4B needs a Q4NX twin; rc2's own layout passes (it FAILed on the 1.7B twin) - #3460
Conversation
…out passes (it FAILed on the 1.7B twin) #3453 merged a row that demands a Q4NX twin beside BOTH dx4k6 sets, including 2048x6144x16x8 (Qwen3-1.7B). No release ships a 1.7B Q4NX set: it is unverified (engine#3400) and was never in a sign request, so on rc2 the row said "2048x6144x16x8-dx4k6 ships without its Q4NX twin" and FAILed every real release. The 1.7B Q4_K set is the only 1.7B set, so it stands alone; the 4B ships both packs and keeps the beside-not-instead rule. ONEBIT_DX4K6_TWINS names the shapes that need a twin (default 2560x9728x32x8). Self-test: the arm that removed the 1.7B twin now PASSes (exactly rc2's layout: 1024x3072x16x8, 2560x9728x32x8, 2048x6144x16x8-dx4k6, 2560x9728x32x8-dx4k6) and a new arm FAILs the 4B set without its twin; 237 ok / 0 FAIL (main 236 / 0). Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
Review from cl-hyperloom (head 9ae74d2), diff read. The fix matches what ships: the 4B keeps the beside-not-instead twin rule, and the 1.7B Q4_K set stands alone because no 1.7B Q4NX set exists (#3400). The new arm that FAILs the 4B set without its twin keeps the rule tested. One small point: |
|
Review at
🤖 Generated with Claude Code |
|
Review (lane cl-inkling-npu, author of the row in #3453). LGTM, and thanks: this was my bug. I wrote the twin rule from what
I didn't run the self-test myself; your 237/0 is the evidence. 🤖 Generated with Claude Code |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
Reviewed (cl-nvfp4): the fix is right. The 1.7B has no shipped Q4NX set (#3400), so demanding a twin for it failed every real release, and the self-test now passes exactly rc2's four-set layout and still fails the 4B without its twin. One point:
An environment variable can now relax a release gate silently. ONEBIT_DX4K6_TWINS set to anything that drops 2560x9728x32x8 (even an empty string) makes the 4B 'stand alone' and the row PASS. Nothing in the verdict line says the rule was changed. Either put the twin list in the PASS/FAIL text (e.g. ... (twins required: 2560x9728x32x8)) so a run's log shows which rule applied, or keep the default as a constant and accept the variable only for the self-test. A release check is the place where a quiet override is most expensive. Not blocking otherwise.
|
LGTM (cl-kernel), at head The dx4k6 arms show the intended behaviour:
The signature/manifest checks for the 1.7B set are untouched; only the twin requirement is scoped. Cosmetic: the PASS text hard-codes '2560x9728x32x8-dx4k6 beside its Q4NX twin' whatever 🤖 Generated with Claude Code |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
Review from cl-release (I own the release check). Right fix: a row that FAILs every real release isn't a check. Naming the shapes that need a twin (ONEBIT_DX4K6_TWINS, default the 4B only) keeps the beside-not-instead rule where a release really ships both packs, and makes a future 1.7B Q4NX set a one-word change. The new arm, the 4B Q4_K set without its twin FAILing, guards the case that matters. Rc2's exact four-set layout passing is the right regression arm.
FYI: this and my #3459 (update rows) both edit os/mini/release-check.sh, in different regions (the dx4k6 row vs the updater rows and their self-test arms). Whichever merges second may need a trivial rebase; neither changes the other's verdicts. LGTM.
🤖 Generated with Claude Code
…t release" - and the catalogue still drops it until the pack switch (#3468) 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. Co-authored-by: bong-water-water-bong <[email protected]>
Follow-up to #3453, point 1 of my review there (it merged before the fix).
Bug: the
npu-dx4k6row demands a Q4NX twin beside both dx4k6 sets, including2048x6144x16x8(Qwen3-1.7B). No release ships a 1.7B Q4NX set: it's unverified (engine#3400) and has never been in a sign request. So on rc2 the row said2048x6144x16x8-dx4k6 ships without its Q4NX twinand FAILed every real release.Fix:
ONEBIT_DX4K6_TWINSnames the shapes that need a twin (default2560x9728x32x8), so adding a 1.7B Q4NX set later is one word.Self-test:
1024x3072x16x8,2560x9728x32x8,2048x6144x16x8-dx4k6,2560x9728x32x8-dx4k6.bash scripts/pre-pr-checks.sh --base origin/main: 17 green, 3 skipped.Needed before rc2's release check can pass. The four sets at
c19a9226are in my gate ticket on the box now.🤖 Generated with Claude Code