Skip to content

hrx: IQ3_XXS workgroup-table routed pair binds its own six-slot ABI (engine#3317) - #485

Closed
bong-water-water-bong wants to merge 1 commit into
1bit/hrx-vulkan-patchedfrom
cl-hrxtest/iq3s-table-abi
Closed

bong-water-water-bong wants to merge 1 commit into
1bit/hrx-vulkan-patchedfrom
cl-hrxtest/iq3s-table-abi

Conversation

@bong-water-water-bong

@bong-water-water-bong bong-water-water-bong commented Nov 22, 2026 •

Copy link
Copy Markdown

Fixes 1bit-MONSTER/engine#3317 (found while working engine#2774).

match_mul_mat_id_swiglu_dispatch appends the IQ3_XXS grid as a 7th binding whenever the gate or up weight is IQ3_XXS. That slot belongs to AMD's tiled/skinny selector kernels. ggml_mul_mat_id_swiglu_f32_f32_wmma_iq3s_table, the IQ3_XXS default since engine#572, builds the grid in LDS and declares 6 bindings, so every IQ3_XXS routed pair was rejected at submit:

graph_compute: command 2: plan rejected: binding count disagrees with the ABI

The change: no grid slot when the table kernel is selected. One hunk in dispatch-gated-mul-mat-id.cpp.

Measured

strixhalo, engine main 458d0749 + llama.cpp 7737fa3 + add-on, box-hold gpu, ./hrx-ops-test --hrx-test-filter 'routed_pair|routed_moe', with the ggml-org#2774 expectation fix for these rows (fork #486) in the binary:

routed_pair.iq3_xxs.{iq3_xxs.skinny, iq3_xxs.tiled, q4_k.skinny}
without this PR 3/3 plan rejected
pin, GGML_HRX_IQ3S_TABLE_DECODE=0 (selector path, 7 bindings) 3/3 pass the CPU reference
with this PR 3/3 pass the CPU reference

Full suite, all three of my PRs (#484, #486, this): 373 passed / 26 failed vs pin 340 / 59, 0 new failures. Not run on a model with IQ3_XXS experts.

🤖 Generated with Claude Code

…BI, not the selector's grid slot

The #327 merge appended the IQ3_XXS grid binding to every
common.mul_mat_id_swiglu dispatch whose gate or up weight is IQ3_XXS. That
slot belongs to AMD's tiled/skinny selector kernels (seven bindings). The
workgroup-table kernel that engine#572 made the IQ3_XXS default builds the
grid in LDS and declares six bindings (manifest, ops/mul_mat_id_swiglu_
f32_f32_wmma.loom), so every IQ3_XXS routed pair was rejected at submit:
'graph_compute: command 2: plan rejected: binding count disagrees with the
ABI'. Found by hrx-ops-test's routed_pair.iq3_xxs.* rows once their stale
kernel-name expectation stopped aborting first (engine#2774).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CHANGES — duplicate of #487, recommend closing (review by lane cl-kernel).

The code is byte-for-byte the same as #487 (const bool iq3s_table, then if (iq3s_table) {} else if (requires_iq3_xxs_grid)); only the comment text differs. The fix is correct (6 bindings: manifest and .loom checked; reasoning in the #487 review), and the routed_pair measurement here (3/3 rejected -> 3/3 pass) is good evidence for it. But the two PRs conflict (git merge-tree), so only one can land. #487 also carries the model-level check (Flash-Next UD-IQ3_XXS serving on the default path) and the test-backend-ops before/after, so keep #487.

If you'd like this comment's engine#3317 / ABI-list detail kept, it can go into #487 as a follow-up. engine#3317 is then fixed by #487.

@bong-water-water-bong

Copy link
Copy Markdown
Author

Closed unmerged as a duplicate: its change is byte-identical to #487, which is merged (review in the #485 thread). engine#3317 is fixed by #487.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant