Skip to content

hrx-ops-test: rows that aborted on a retired kernel name assert what the matcher set selects (engine#2774, part 1) - #486

Merged
bong-water-water-bong merged 1 commit into
1bit/hrx-vulkan-patchedfrom
cl-hrxtest/2774-part1
Nov 22, 2026
Merged

bong-water-water-bong merged 1 commit into
1bit/hrx-vulkan-patchedfrom
cl-hrxtest/2774-part1

Conversation

@bong-water-water-bong

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

Copy link
Copy Markdown

Refs 1bit-MONSTER/engine#2774 (part 1 of 2). Test-only, tests/hrx-ops-test.cpp.

Each of these rows aborted on a kernel the current matcher set cannot select for its shape. For each I traced the cause to the matcher or commit that changed. The row now asserts the kernel that serves it, and its CPU reference still decides the values. Matchers are not changed (the fork route is the frozen fallback, owner 2026-11-21).

rows old expectation cause now
lfm_head_rope.query.* (5) ggml_rmsnorm_mul_rope_f32 f2099e9: the fusion serves only MROPE/IMROPE fused kernel absent, plain rmsnorm / mul / rope chain
support.lfm_head_rope.availability same, after covered[pos]=true AMD fusion-order guard wants positions written by the plan; no HRX kernel casts f32->i32 IMROPE head: declines with cast positions, fuses with input positions
routed_pair.iq3_xxs.* (3) skinny/tiled pair kernels engine#572: workgroup-table decode is the IQ3_XXS default ..._wmma_iq3s_table (passes with fork #485)
routed_moe.q4_k.next_rmsnorm fused reduce+next-rmsnorm #95: in-place reduce needs a transient residual; the graph fed a graph input residual from an identity scale (the model shape)
mul_mat_id_expert_scale.* (9) ..._scaled_publish_f32 no matcher names it expert matmul, then repeat / get_rows / mul
vector_q8_publish.cpu_reference vector f32 + q8 publish engine#444 kquant decode reads Q4_K as stored f32 decode -> kquant decode, no quantize pass
flash_attention.asymmetric FA wmma #95: FA matchers bind V with the QK stride (MLA) attention-rows kernel
qwen_flash_attention decode-split next_q8 engine#2494 guard: K/V must cover one 64-token block, row had 4 64-slot cache. Still fails, now on its own check: the row expects no q8 alternate, but decode_split_next_q8 always publishes one. Left for the matcher owner.

Measured

strixhalo, engine main 458d0749 + llama.cpp 7737fa3 + add-on, one box-hold gpu ticket, full ./hrx-ops-test, same libs:

binary passed failed
pin 340 59
this PR 358 41

18 fixed, 0 new failures. With #484 and #485: 373 / 26.

Not in this PR (part 2)

The kRecordedStaleExpectations table still silently skips 186 expectation checks across 170 cases in a full run (counted from a diagnostic build that prints what ran). Those are the original 179, now hidden instead of aborting. Part 2 rewrites those ~89 call sites to what runs and removes the table.

🤖 Generated with Claude Code

…the matcher set selects (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: APPROVE (review by lane cl-kernel), with two notes for part 2.

  • Test-only: confirmed. The only file changed is tests/hrx-ops-test.cpp; matchers are untouched.
  • Correctness:
    • Each re-pointed row keeps its value check against the CPU reference (require_close is still there in run_mul_mat_id_expert_scale_case and the other changed cases).
    • The test's IQ3 env parse (GGML_HRX_IQ3S_TABLE_DECODE == "0" disables) matches iq3s_table_decode_disabled() in the dispatcher.
    • The next_rmsnorm identity scale changes the graph shape, not its value. The graph builder is shared, so the CPU reference sees the same graph.
  • Measurements: support the change. 340/59 -> 358/41 with 0 new failures. qwen_flash_attention still fails, and the PR says so.
  • Notes for part 2 (do not block this PR):
    1. mul_mat_id_expert_scale.* now only checks that the first kernel is hip: or contains mul_mat_id, and it drops the negative check that the fusion avoided get_rows/binary. That is right for today's matchers, but it is a looser structural assertion. The values are still checked.
    2. vector_q8_publish.cpu_reference no longer tests a q8 publish, so the row name is now misleading. Rename it in part 2.
  • Merge order: after #487. The three routed_pair.iq3_xxs.* rows it now expects on the table kernel are plan-rejected without the binding fix. It merges cleanly with #484.

@bong-water-water-bong
bong-water-water-bong merged commit 9db0156 into 1bit/hrx-vulkan-patched Nov 22, 2026
@bong-water-water-bong
bong-water-water-bong deleted the cl-hrxtest/2774-part1 branch November 22, 2026 19:00
bong-water-water-bong added a commit that referenced this pull request Nov 23, 2026
…he stale table is gone (engine#2774) (#490)

kRecordedStaleExpectations silently skipped 186 expectation checks in 170 cases at 7737fa3: the names were
retired per-format kernels that no GGML_HRX_KERNEL_REF registers, so those rows asserted nothing about dispatch.
Each site now names the kernel the case schedules, measured on strixhalo with and without the add-on. Rows the
add-on serves name the Loom kernel the add-on-free build runs and opt in per row (engine#3120's rule) to accept a
hip: object; every row still compares against its CPU reference. The table and its lookup are deleted, so a miss
aborts again and prints what ran.

check_stale_expectations.py keeps its path and CLI (the engine's hrx_stale_expectations row calls it) and now checks
that every <corpus>:<kernel> literal in the suite is registered (.cpp and .h), and that the table does not return.
Its --self-test is a ctest row.

Two host cases were failing because the fusion-order guard refuses a match that reads an unplanned value:
gemma_post_proj.matcher_negatives now plans the producing add first, and routed_moe.codebook_admission plans what
precedes its root (its negative arms were passing vacuously); its arms now match the registries: the plain registry
serves the codebook gate/down, and the IQ3_XXS pair is the six-binding table decode unless
GGML_HRX_IQ3S_TABLE_DECODE=0.

Review notes from #486: mul_mat_id_expert_scale names its expert matmul and checks it runs before the scale chain;
vector_q8_publish is renamed vector_f32_into_kquant.

Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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