Repository navigation
docs: IQ4_NL / IQ4_XS on the Loom path, re-verified (engine#559) - #567
Merged
Merged
Conversation
The "Not yet" bullet for IQ4_NL/IQ4_XS still read as an open gap. It was closed by fork #41 - the shared dequant reads the real `kvalues_iq4nl` table through a table lookup and the corpus has no XOR-12 on that path - so the bullet now says so and records a fresh check on the Loom-only path (a build with no HIP add-on, so every case runs through the Loom corpus), 2026-10-25: test-backend-ops -b HRX0 MUL_MAT iq4_nl OK for n=1..9 at k=256; iq4_xs the same GET_ROWS iq4_nl OK at be1=1 0 FAIL, 2/2 backends passed Two groups stay declined rather than wrong, both shape coverage and not the codebook: k=32 projections and GET_ROWS on a view or with a batched gather (v=1, be1=7), where q8_0 fails identically - the quant is not the variable, which is what #390 established. And MUL_MAT_ID for iq4_nl/iq4_xs is not claimed by the Loom corpus at all, so routed experts of those types take the CPU on a Loom-only build instead of decoding garbage; the build the engine ships carries the HIP add-on, whose routed-expert kernels handle them on HRX. Co-Authored-By: Claude Fable 5.1 <[email protected]>
PR Reviewer Guide 🔍(Review updated until commit 3002740)Here are some key observations to aid the review process:
|
|
Persistent review updated to latest commit 3002740 |
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.
Closes engine#559 as already fixed, now verified — the dequant was corrected by fork #41, and a fresh check on the Loom-only path shows the codebook is right. This PR updates the docs bullet, which still read as an open gap; it changes no code because there is nothing left to change.
What the corpus does today
ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/dequant.loombuilds the value table-127, -104, -83, -65, -49, -35, -22, -10, 1, 13, 25, 38, 53, 69, 89, 113— exactly ggml'skvalues_iq4nl— and indexes it withvector.table.lookup. There is no XOR-12 on the IQ4_NL path anywhere in the corpus (grep xorifinds only K-quant sign unpacking, the RmsNorm pair loop and the Hadamard butterfly). The fork tip is not special: the engine's own pinned source has the same code.Verification (strixhalo, HRX0, 2026-10-25)
Built
test-backend-opsfrom the engine's pinned fork source with-DGGML_HRX=ONand no HIP add-on, so every case below goes through the Loom corpus:MUL_MATiq4_nl, n=1..9, k=256MUL_MATiq4_xs, n=1..9, k=256GET_ROWSiq4_nl,be1=1MUL_MAT_IDiq4_nl / iq4_xsSo the issue's premise — garbage
mul_mat_idon the Loom-only path — does not reproduce: what runs is numerically correct, and what does not run is declined, not wrong. With the HIP add-on (the engine's normal build) the routed-expert kernels handle IQ4_NL on HRX anyway.What stays open, and is not this bug
k=32projections (MUL_MAT iq4_nl …,k=32): shape coverage, not the codebook.GET_ROWSon a view (v=1) and the batched gather (be1=7) — the batched-gather gap engine#390 already reported, whereq8_0fails the identical case, so the quant is not the variable.Docs
docs/hrx.md, the IQ4_NL / IQ4_XS bullet moves from "Not yet" to done: it names fork #41, says what the dequant does now, and records the table above, including thatMUL_MAT_IDis declined on a Loom-only build rather than wrong.python3 tools/copyright.py --check→ rc 0. No numbers beyond the runs above; nothing measured beyondtest-backend-ops.🤖 Generated with Claude Code