Skip to content

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 into
1bit/hrx-vulkan-patchedfrom
cl-hrxtest/3120-layout-route
Nov 22, 2026
Merged

bong-water-water-bong merged 2 commits into
1bit/hrx-vulkan-patchedfrom
cl-hrxtest/3120-layout-route

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#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

  1. Weight-layout assertion follows the route (9 rows). hrx-ops-test: the packed-weight layout belongs to the route that ran, not to the row (engine#3120) #475 sent add-on-served swiglu rows to 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 kquant loom_route, which also binds Q4_K as stored but got the packed assertion (:453). New require_stored_weight_bindings(): repackable source present, every binding native. Used for any route that is not FallThrough. The Loom packed route keeps require_packed_weight_bindings().
  2. 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 is ggml_rmsnorm_binary_q8_1_x4, not the unselectable ..._publish export (engine#2774), so the negative arm was vacuous before.
  3. uploaded_native_gated_q4. Measured: served by the same add-on fused swiglu as the lowtoken rows (hip:k_61d118a92b4c, family kquant_tokens_q8), so it gets the same addon_route opt-in. The CPU reference still runs.

Measured

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

binary passed failed
pin 340 59
this PR 352 47

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

bong-water-water-bong and others added 2 commits November 22, 2026 10:55
… 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]>

@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).

  • Test-only: confirmed. The only file changed is tests/hrx-ops-test.cpp.
  • Correctness:
    • The refactor into require_weight_binding_layout(graph, weights, layout) keeps require_native_weight_bindings (no repackable source) and require_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 not FallThrough, meaning AddOnServed or LoomRouteServed. route_outcome returns only those three kinds, and only for rows that opted in with addon_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 _publish name 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_close against the CPU reference.
  • 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).

@bong-water-water-bong
bong-water-water-bong merged commit 2c467b9 into 1bit/hrx-vulkan-patched Nov 22, 2026
@bong-water-water-bong
bong-water-water-bong deleted the cl-hrxtest/3120-layout-route branch November 22, 2026 19:00
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