Repository navigation
hrx-ops-test: stored-layout routes get a stored-layout assertion; two more add-on rows (engine#3120) - #484
Merged
bong-water-water-bong merged 2 commits intoNov 22, 2026
Conversation
… not the uploaded-native precondition (engine#3120) #475 sent the add-on-served swiglu rows to require_native_weight_bindings(), whose first REQUIRE is that the weight has NO repackable source. The rows import their weights, so that is false by construction: the 2026-11-21 device run moved five rows from :453 to :424 instead of to their value comparison. The sixth row is the engine#444 Loom kquant route (loom_route), which binds Q4_K as stored (kquant_weight_binding) and still got the packed assertion. Split the layout walk out of the two helpers (require_weight_binding_layout) and add require_stored_weight_bindings(): repackable source present, every binding native. Any route other than FallThrough uses it; the expected Loom packed kernel keeps require_packed_weight_bindings(). Co-Authored-By: Claude Opus 5.5 <[email protected]>
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).
- Test-only: confirmed. The only file changed is
tests/hrx-ops-test.cpp. - Correctness:
- The refactor into
require_weight_binding_layout(graph, weights, layout)keepsrequire_native_weight_bindings(no repackable source) andrequire_packed_weight_bindings(repackable source, packed layout) the same as before. - The new
require_stored_weight_bindings(repackable source, native layout) is used for every route that is notFallThrough, meaningAddOnServedorLoomRouteServed.route_outcomereturns only those three kinds, and only for rows that opted in withaddon_route/loom_route, so a row that did not opt in still gets the packed assertion. - The iq4_xs prefill arm now asserts the kernel that actually served the node after
ggml_rmsnorm_binary_q8_1_x4. The old_publishname was never selectable, so the negative arm was vacuous before; now it checks something. uploaded_native_gated_q4's extra arguments match the signature:import_weights=false,addon_route="kquant_tokens_q8".- No row loses its
require_closeagainst the CPU reference.
- The refactor into
- Measurements: support the change. The full suite goes 340/59 -> 352/47 with 0 new failures (failing-case sets diffed). 373/26 with #485 and #486 matches the CL-HRXTEST STATE file.
- Merge order: independent. It merges cleanly with #486 (same file, different hunks).
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#3120. Test-only,
tests/hrx-ops-test.cpp.Per the owner's pure-Loom GPU direction (2026-11-21) the fork + HIP add-on is the frozen fallback, so the add-on winning these shapes is the shipped route. The table is what is wrong, not the routing.
Changes
require_native_weight_bindings(). Its first check is "no repackable source", which is false for an imported weight, so 8 rows aborted at:424. The 9th (lowtoken.tokens1.outputs4160) is the engine#444 kquantloom_route, which also binds Q4_K as stored but got the packed assertion (:453). Newrequire_stored_weight_bindings(): repackable source present, every binding native. Used for any route that is notFallThrough. The Loom packed route keepsrequire_packed_weight_bindings().dense_matmul.iq4_xs.prefill.*(2 rows). After the add-on acceptance, the normalized-input arm asserted the Loom kernel again, so an opted-in row could never pass. It now requires the kernel that served the node, after the q8 rmsnorm. That rmsnorm isggml_rmsnorm_binary_q8_1_x4, not the unselectable..._publishexport (engine#2774), so the negative arm was vacuous before.uploaded_native_gated_q4. Measured: served by the same add-on fused swiglu as the lowtoken rows (hip:k_61d118a92b4c, familykquant_tokens_q8), so it gets the sameaddon_routeopt-in. The CPU reference still runs.Measured
strixhalo, engine main 458d0749 + llama.cpp 7737fa3 + add-on, one
box-hold gputicket,./hrx-ops-test(all 399 cases), same libs:12 cases fixed, 0 new failures (diff of failing-case sets). All three of my PRs together: 373 / 26 (with #485 and #486).
🤖 Generated with Claude Code