Repository navigation
pins: llama.cpp d2369fe2 -> f61e1b93, the split decode attention publishes its Q8_1 alternate only when a consumer reads it (llama.cpp#511; engine#3380) - #3490
Merged
Conversation
…ishes its Q8_1 alternate only when a consumer reads it (llama.cpp#511; engine#3380) The split-FA decode matcher (match_flash_attention_decode_split_next_q8_dispatch) runs a loom kernel that writes the attention output AND its Q8_1 x4 packing in one launch so the next projection need not quantize the activation, and it called append_alternate_value unconditionally. A graph that ends at the attention output -- exactly the qwen_flash_attention row -- therefore planned a copy nothing can read; the row had been parked as the suite's last known-fail with that reason (engine#3380). llama.cpp#511 applies the existing graph-only consumer qualification (dispatch-q8-publication.h's common_for_each_q8_consumer through full ordered reshape aliases + common_q8_consumer_is_qualified_projection, the #449/#504 machinery) to that publication. Kernel selection, the q8 transient and bindings[9] are untouched -- only the alternate metadata is conditional. The qwen_flash_attention row becomes a plan-only host case with the known-fail label gone; the seven test-hrx-ops fa_decode_split.* rows assert the no-alternate plan and keep asserting the q8 transient binding. Publication-when-a-consumer-exists stays pinned by qwen_decode_split_flash_attention.*.masked.head96.value64 and qwen_decode_attention_output_next_q8.*. Device evidence (strixhalo gfx1151, add-on, package runtime libs, root, one box-hold both ticket): before (d2369fe2): hrx-ops-test 410 passed, 0 failed, 1 known-fail (qwen_flash_attention) after (#511) : hrx-ops-test 411 passed, 0 failed, 0 known-fail, 411 total; the single row PASSes; test-hrx-ops 295 passed, 0 failed; the 7 publish rows pass; no reset/fault in the window Host control (no device): pre-fix source + the new host row FAILs (find_alternate_value(...) == nullptr, and the fa_decode_split rows FAIL the no-alternate assertion); with the fix all 5 rows pass, host hrx-ops-test 18/0, test-hrx-ops 2/0, check_stale_expectations 488/488 selectable. registry/architectures.json is regenerated by scripts/registry-regen.sh (llama.cpp source sha).
bong-water-water-bong
enabled auto-merge (squash)
November 24, 2026 13:20
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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.
Carries llama.cpp#511 into the engine pin: the split decode attention now publishes its Q8_1 alternate only when a
consumer actually reads it. Closes engine#3380's remaining half (the known-fail row).
What moves
third_party/llama.cppd2369fe2->f61e1b93(llama.cpp#511)registry/architectures.json: regenerated byscripts/registry-regen.sh(llama.cpp source sha)config/gpu-kernels.configdoes not move.Why
match_flash_attention_decode_split_next_q8_dispatch()(dispatch-flash-attention.cpp:659) runs the loomggml_flash_attention_decode_split_f32_f16_wmma_next_q8kernel, which writes the attention output and its Q8_1 x4packing in one launch so the next projection need not quantise the activation — and it called
append_alternate_valueunconditionally. A graph ending at the attention output (exactlyqwen_flash_attention)therefore planned a copy nothing can read; that row has been the suite's last known-fail, labelled engine#3380.
llama.cpp#511 applies the existing graph-only consumer qualification (
dispatch-q8-publication.h'scommon_for_each_q8_consumerthrough full ordered reshape aliases +common_q8_consumer_is_qualified_projection, the#449/#504 machinery). Kernel selection, the q8 transient and
bindings[9]are untouched — only the alternate metadatais conditional.
qwen_flash_attentionbecomes a plan-only host case with the known-fail label removed; the seventest-hrx-opsfa_decode_split.*rows assert the no-alternate plan and keep asserting the q8 transient binding.Publication-when-a-consumer-exists stays pinned by
qwen_decode_split_flash_attention.*.masked.head96.value64andqwen_decode_attention_output_next_q8.*.Device evidence (strixhalo gfx1151, add-on build, package runtime libs, root, one
box-hold bothticket)Host control (no device)
Pre-fix source + the new host row: FAIL (
find_alternate_value(...) == nullptr, and thefa_decode_splitrows FAILthe no-alternate assertion). With the fix: all 5 rows pass, host
hrx-ops-test18 passed / 0 failed,test-hrx-ops2 passed,
check_stale_expectations.py --check488 literals selectable.Host-side (this branch)
cmake --build build --target onebit npu_template_test: clean.ctest -R 'pin|registry|template': 23/23 passed.scripts/pre-pr-checks.sh --tree-only --base origin/main: green; skipship_f16_audit/kernel_id_selftest(no gpu-kernels tree here).
hw_gatelabel added; the self-hosted runners still cannot run (nogit/g++-16/~/lbin the reinstalled 1bit OS),so the device evidence above is the manual equivalent, taken at this pin.
With this the shipped route's add-on device tier is 411 passed / 0 failed / 0 known-fail plus
test-hrx-ops295/0 — no parked rows left. The no-add-on build's 5 pre-existing failures are tracked by engine#3488.
Closes #3380.