Repository navigation
ggml-hrx: SET_ROWS with a quantized cache through a HIP add-on hook (census G1, fork half) - #116
Merged
bong-water-water-bong merged 3 commits intoOct 20, 2026
Conversation
format_value() only knows F16/F32, so a q8_0 KV cache has no SET_ROWS matcher: the node is placed on HRX and then rejected, which fails the whole graph and makes every chat model answer HTTP 500 with -ctk q8_0 -ctv q8_0 (placement census 2026-10-20, gap 2). Add set_hip_set_rows_hook, the SET_ROWS counterpart of the existing attention-sink hook: the public matcher keeps its F16/F32 path and its node contract, and offers a cache format outside that table to the add-on, which returns a kernel dispatch. Without an add-on nothing changes. Co-Authored-By: Claude Opus 5 <[email protected]>
…that declined A failed graph leaves one reason per matcher that declined plus, last, the node left without a dispatch, and graph_compute printed only the first one. The 20 Oct placement census hit this: a q8_0 KV cache printed the qwen attention-postprocess refusal while the graph actually failed elsewhere, which hid the refusal for a day. Print the last reason (the failing node, with its op, type, shape and inputs) and up to four earlier ones for context. Co-Authored-By: Claude Opus 5 <[email protected]>
…ract The add-on path now runs before the public 2-D matcher: it checks the in-place storage contract and the quantized output itself and hands the whole node to the hook, which may append one dispatch per batch slice. test-backend-ops' q8_0 SET_ROWS case is 4-D and batched over dims 2 and 3, so the 2-D checks would have declined it before any hook ran - which is why HRX has never executed a SET_ROWS case from that suite for any type. The public F16/F32 path is unchanged and still owns its formats. Co-Authored-By: Claude Opus 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.
The fork half of census gap G1 (q8_0 KV cache on HRX). Branch
1bit/hrx-set-rows-q8(93abb7a, 2048a5f, d2c715a) was never merged. Engine main 1834ceb5 pins gpu-kernels be68256d, whoseaddons/hip-hrx/dispatch-hip-set-rows-q8.cppusesHipSetRowsArgsfrom this branch, so the release build with the private kernels fails atdispatch-hip-set-rows-q8.cpp:39: unknown type name 'HipSetRowsArgs'.These are the three commits, cherry-picked unchanged onto
1bit/hrx-vulkan-patchedb14a283. They applied with no conflicts.hip/hip-dispatches.{h,cpp}:HipSetRowsArgsand the SET_ROWS add-on hook.ggml-hrx.cpp: offers SET_ROWS with a quantized destination to the hook, and names the node that failed the graph.dispatch-rope-set-rows.cpp: the hook owns the quantized-cache shape contract.Proof: the engine release build (scripts/weekly.sh build + test, HRX on, private gpu-kernels be68256d compiled in) on this head. The results are on the engine pin PR.
🤖 Generated with Claude Code