Repository navigation
tests: qwen_matmul_dispatch runs to the end at the pin (engine #445) - #151
Merged
bong-water-water-bong merged 2 commits intoOct 25, 2026
Merged
Conversation
The last red row of #445. Three things kept it from finishing, all of them the case outliving the dispatcher it was written against: - the router's four-row wave32 projection is the plan's only dispatch for its row, and its kernel name does not contain "mul_mat", so the row's lookup for "the last matmul dispatch" found nothing. The lookup now also accepts the kernel the table names; when that is not a matmul-named kernel the row pins the name, the token count and the verified program, because the checks below spell their parameters under the mul_mat prefix. - with the rows running to the end, the case's single 8 MiB context no longer held the bookkeeping for ~40 weight/input tensor pairs; it is 64 MiB now. - the 128-input f32 projection block asserted "not schedulable"; the route that refused that shape is gone and the plan is built and verifies, so the block pins that instead (engine #445's rule for negative blocks the pin outgrew, same as the oversized-Q8_0 block in #148). `hrx-backend-test` at this commit + hrx-system `82804197bc`, host: **65 passed, 0 failed, 1 known-fail, 0 unexpected-pass, 66 total, exit 0**. The one known-fail is `disjoint_transient_plan_packing` (ggml-org#534) - fixed by the open PR #149, which is not in this branch; nothing else in the suite points at an open issue. The `#445` markers on `qwen_matmul_dispatch` and `lowtoken_residual_dispatch` are both retired (the latter in #148). Co-Authored-By: Claude Fable 5.1 <[email protected]>
…gml-org#533 fusion order) The postprocess programme reads the three projections, and the fusion-order guard from #150 refuses a match that reads a value no dispatch has written yet - so the manual matcher in this case now schedules the projection MUL_MATs before it asks for the postprocess, the same shape #150 gave the matching case in hrx-backend-test. Co-Authored-By: Claude Fable 5.1 <[email protected]>
bong-water-water-bong
added a commit
that referenced
this pull request
Oct 25, 2026
Continuation of the default-verbosity work on the current fork tip (`6b397ee9`), found by re-reading what a default run still prints: - `format_command_binding()` printed the ABI slot name (`gate_weight`, `partition_table`, ...) and the packed weight layout in every command-context message. Both now sit behind `GGML_HRX_REPORT`; the graph-side facts (value, origin, access, range) stay, so a message still says what was bound and where. - the ABI-mismatch and unresolvable-kernel messages in `command-program.cpp` carry a neutral class that keeps the command context (`command 0 kind=Kernel: plan rejected: ...`) - which command was rejected is graph structure, the kernel name and id are not. - `runtime/kernel-executable-cache.cpp`: the cache key is a kernel name plus its configuration, and it appeared in every load/compile failure through `key`, `error_message` or a direct `kernel %s`. All of those log lines now pass through one `disclosed()` helper, so a default run names the failure class and `GGML_HRX_REPORT=1` names the key. <withheld: GGML_HRX_REPORT=1> is what a default line shows instead. Tests: `graph_import` now pins both verbosities - the default text has no ABI slot names, no kernel id, no binding/dependency counts, and `GGML_HRX_REPORT=1` brings them back - and it clears the variable on entry so an ambient value cannot decide which branch it checks. The slot-name assertions in the resolve/verify error cases pin the graph-side text instead of the name. Both modes on the host, hrx-system `82804197bc`: **65 passed, 0 failed, 1 known-fail, 0 unexpected-pass, 66 total** (`GGML_HRX_REPORT` unset and `=1`). The one known-fail is `qwen_matmul_dispatch`, which fork PR #151 fixes; it is not in this branch. `kernel_id=` appears in the default log only where the test asserts its absence. Co-Authored-By: Claude Fable 5.1 <[email protected]>
bong-water-water-bong
added a commit
that referenced
this pull request
Oct 29, 2026
Continuation of the default-verbosity work on the current fork tip (`6b397ee9`), found by re-reading what a default run still prints: - `format_command_binding()` printed the ABI slot name (`gate_weight`, `partition_table`, ...) and the packed weight layout in every command-context message. Both now sit behind `GGML_HRX_REPORT`; the graph-side facts (value, origin, access, range) stay, so a message still says what was bound and where. - the ABI-mismatch and unresolvable-kernel messages in `command-program.cpp` carry a neutral class that keeps the command context (`command 0 kind=Kernel: plan rejected: ...`) - which command was rejected is graph structure, the kernel name and id are not. - `runtime/kernel-executable-cache.cpp`: the cache key is a kernel name plus its configuration, and it appeared in every load/compile failure through `key`, `error_message` or a direct `kernel %s`. All of those log lines now pass through one `disclosed()` helper, so a default run names the failure class and `GGML_HRX_REPORT=1` names the key. <withheld: GGML_HRX_REPORT=1> is what a default line shows instead. Tests: `graph_import` now pins both verbosities - the default text has no ABI slot names, no kernel id, no binding/dependency counts, and `GGML_HRX_REPORT=1` brings them back - and it clears the variable on entry so an ambient value cannot decide which branch it checks. The slot-name assertions in the resolve/verify error cases pin the graph-side text instead of the name. Both modes on the host, hrx-system `82804197bc`: **65 passed, 0 failed, 1 known-fail, 0 unexpected-pass, 66 total** (`GGML_HRX_REPORT` unset and `=1`). The one known-fail is `qwen_matmul_dispatch`, which fork PR #151 fixes; it is not in this branch. `kernel_id=` appears in the default log only where the test asserts its absence. Co-Authored-By: Claude Fable 5.1 <[email protected]>
bong-water-water-bong
added a commit
that referenced
this pull request
Oct 29, 2026
… GGML_HRX_REPORT (#138) * hrx: default-verbosity messages name a class, the detail moves behind GGML_HRX_REPORT A rejected plan or a bad corpus entry used to put the kernel name, the kernel id, the binding count and the ABI names straight into the message that a default run prints. Those describe the kernel set itself, so the default text now carries the class of failure and the detail is kept when `GGML_HRX_REPORT` is set. - `Status::log_detail(neutral, format, ...)` keeps the neutral class by default and the formatted detail when `GGML_HRX_REPORT` is truthy (unset/0/false/no/off = off); `Status::detail_reported()` reads it per message, so a caller or a test can exercise both. `Status::log()` is unchanged for messages that carry no such detail. - `dispatch/command-program-diagnostics.cpp`: `format_command()` always writes `command N kind=Kernel`, and appends `kernel_id=`, `bindings=`, `deps=` only in report mode. This is the one place every command-context message is built from, so the behaviour change lands without touching dozens of call sites. - `dispatch/command-program.cpp` (4 messages) and `kernel-corpus/kernel-corpus.cpp` (8 messages): the kernel-naming forms go through `log_detail` with a class such as `plan rejected: binding count disagrees with the ABI` / `kernel corpus: invalid catalog id`. - `tests/hrx-backend-test.cpp`: the three assertions that pinned the detail text now check the neutral class by default and the detail after setting `GGML_HRX_REPORT=1`, so both paths are covered. Checked on the host with the suite (66 cases, no device): `59 passed, 1 failed, 6 known-fail` in **both** modes — the single failure was one of the assertions above, updated in this commit. In the default log the string `kernel_id=` no longer appears in any message (only in a test's own assertion text). The engine side needed no change: its startup and placement lines carry counts and `ggml` op classes (`MUL_MAT`, `RMS_NORM`), not our kernels. Not yet built or run after the last test edit — the build lane is committed to other work right now; the verification for this exact tree is a `ninja hrx-backend-test` plus the host suite, which I will run and paste here as soon as the lane frees up. 🤖 Generated with [Claude Code](https://claude.com/claude-code) * hrx: binding ABI names and executable-cache keys are detail too Continuation of the default-verbosity work on the current fork tip (`6b397ee9`), found by re-reading what a default run still prints: - `format_command_binding()` printed the ABI slot name (`gate_weight`, `partition_table`, ...) and the packed weight layout in every command-context message. Both now sit behind `GGML_HRX_REPORT`; the graph-side facts (value, origin, access, range) stay, so a message still says what was bound and where. - the ABI-mismatch and unresolvable-kernel messages in `command-program.cpp` carry a neutral class that keeps the command context (`command 0 kind=Kernel: plan rejected: ...`) - which command was rejected is graph structure, the kernel name and id are not. - `runtime/kernel-executable-cache.cpp`: the cache key is a kernel name plus its configuration, and it appeared in every load/compile failure through `key`, `error_message` or a direct `kernel %s`. All of those log lines now pass through one `disclosed()` helper, so a default run names the failure class and `GGML_HRX_REPORT=1` names the key. <withheld: GGML_HRX_REPORT=1> is what a default line shows instead. Tests: `graph_import` now pins both verbosities - the default text has no ABI slot names, no kernel id, no binding/dependency counts, and `GGML_HRX_REPORT=1` brings them back - and it clears the variable on entry so an ambient value cannot decide which branch it checks. The slot-name assertions in the resolve/verify error cases pin the graph-side text instead of the name. Both modes on the host, hrx-system `82804197bc`: **65 passed, 0 failed, 1 known-fail, 0 unexpected-pass, 66 total** (`GGML_HRX_REPORT` unset and `=1`). The one known-fail is `qwen_matmul_dispatch`, which fork PR #151 fixes; it is not in this branch. `kernel_id=` appears in the default log only where the test asserts its absence. Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Fable 5.1 <[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.
Base:
1bit/hrx-vulkan-patchedat8ee20a08. Closes the last red row of engine #445.The last red row of #445. Three things kept it from finishing, all of them the case outliving the dispatcher it
was written against:
contain "mul_mat", so the row's lookup for "the last matmul dispatch" found nothing. The lookup now also accepts
the kernel the table names; when that is not a matmul-named kernel the row pins the name, the token count and
the verified program, because the checks below spell their parameters under the mul_mat prefix.
weight/input tensor pairs; it is 64 MiB now.
plan is built and verifies, so the block pins that instead (engine hrx: the fused F16 routed-FFN decodes the table with the layout it was written with (engine#2861) #445's rule for negative blocks the pin
outgrew, same as the oversized-Q8_0 block in tests: keep the FILL constant in snapshots, and bring both HRX suites to the pin (engine #444, #445) #148).
hrx-backend-testat this commit + hrx-system82804197bc, host: 65 passed, 0 failed, 1 known-fail, 0unexpected-pass, 66 total, exit 0. The one known-fail is
disjoint_transient_plan_packing(ggml-org#534) - fixed by theopen PR #149, which is not in this branch; nothing else in the suite points at an open issue. The
#445markers onqwen_matmul_dispatchandlowtoken_residual_dispatchare both retired (the latter in #148).Co-Authored-By: Claude Fable 5.1 [email protected]