Repository navigation
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 intoNov 22, 2026
Conversation
…the matcher set selects (engine#2774) Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 22, 2026
bong-water-water-bong
left a comment
Author
There was a problem hiding this comment.
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_closeis still there inrun_mul_mat_id_expert_scale_caseand the other changed cases). - The test's IQ3 env parse (
GGML_HRX_IQ3S_TABLE_DECODE== "0" disables) matchesiq3s_table_decode_disabled()in the dispatcher. - The
next_rmsnormidentity scale changes the graph shape, not its value. The graph builder is shared, so the CPU reference sees the same graph.
- Each re-pointed row keeps its value check against the CPU reference (
- Measurements: support the change. 340/59 -> 358/41 with 0 new failures.
qwen_flash_attentionstill fails, and the PR says so. - Notes for part 2 (do not block this PR):
mul_mat_id_expert_scale.*now only checks that the first kernel iship:or containsmul_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.vector_q8_publish.cpu_referenceno 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
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]>
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.
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).
lfm_head_rope.query.*(5)ggml_rmsnorm_mul_rope_f32support.lfm_head_rope.availabilitycovered[pos]=truerouted_pair.iq3_xxs.*(3)..._wmma_iq3s_table(passes with fork #485)routed_moe.q4_k.next_rmsnormmul_mat_id_expert_scale.*(9)..._scaled_publish_f32vector_q8_publish.cpu_referenceflash_attention.asymmetricqwen_flash_attentiondecode_split_next_q8always publishes one. Left for the matcher owner.Measured
strixhalo, engine main 458d0749 + llama.cpp 7737fa3 + add-on, one
box-hold gputicket, full./hrx-ops-test, same libs:18 fixed, 0 new failures. With #484 and #485: 373 / 26.
Not in this PR (part 2)
The
kRecordedStaleExpectationstable 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