Repository navigation
pins: llama.cpp c6c654c3 -> e0e7c8d3, the decode q8 publish sees a routed consumer through a reshape alias (llama.cpp#504; engine#3384) - #3477
Merged
Conversation
…uted consumer through a reshape alias (llama.cpp#504; engine#3384)
has_qualified_q8_consumer() walked only DIRECT consumers, so a routed gate/up reading the rmsnorm-mul output
through a ggml_reshape_2d was invisible: qwen3_moe_rmsnorm_f32_quantize_q8_1_x4 declined and the plan fell back
to ggml_rmsnorm_binary_f32 + f32 gate/up (engine#3384).
llama.cpp#504 visits every consumer of the value and of each layout alias over it, handing the consumer the value
it actually reads, and accepts an alias only when it is a contiguous full ordered value range -- the same rule
find_alternate_value uses for the alternate. Transposed/partial views are still refused; the dense helper's walk is
untouched.
Control (add-on build, fork's own -DGGML_HRX=ON tests; the rows schedule and execute no kernels):
before: decode_routed_moe.q6_k.alias_gate_input exit 134 (f32 rmsnorm in the plan)
routed_moe_decode.q6_k.true exit 134 (gate_up_routed requirement)
after : both exit 0; the alias row's plan chooses qwen.decode_rmsnorm_f32_quantize_q8_1_x4 (fused) and
llm.routed_ffn.decode_gate_up_swiglu_q4k_q8 (fused); 2 passed / 0 failed on each filtered pair.
check_stale_expectations.py --check: 490 expectation literal(s), every one selectable. The two known-fail
annotations are removed in the same commit, so no row becomes an unexpected pass.
Not measured here: the alias graph's decode tok/s win on gfx1151 (engine#3384's own gate). This pin carries the
scheduling fix; the measurement stays open on the issue.
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 09:03
This was referenced Nov 24, 2026
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#504 into the engine pin: the decode q8 publish now sees a routed consumer that reads the
rmsnorm-mul output through a reshape alias. This is the engine-side half of #3384.
What moves
third_party/llama.cppc6c654c3->e0e7c8d3(llama.cpp#504)registry/architectures.json: regenerated byscripts/registry-regen.sh(llama.cpp source sha; 354architectures, no architecture change)
config/gpu-kernels.configdoes not move.Why
has_qualified_q8_consumer()walked only direct consumers, so a routed gate/up reading the rmsnorm-mul outputthrough a
ggml_reshape_2dwas invisible:qwen3_moe_rmsnorm_f32_quantize_q8_1_x4declined and the plan fell backto
ggml_rmsnorm_binary_f32+ f32 gate/up (engine#3384). llama.cpp#504 visits every consumer of the value and ofeach layout alias over it, handing the consumer the value it actually reads, and accepts an alias only when it is a
contiguous full ordered value range -- the same rule
find_alternate_valueuses for the alternate (llama.cpp#503).Transposed/partial views are still refused; the dense helper's walk is untouched.
Control (add-on build, fork's own
-DGGML_HRX=ONtests; these rows schedule and execute no kernels)The two
known_failannotations are removed in the same fork commit, so no row becomes an unexpected pass.Host-side (this branch)
cmake --build build --target onebit: clean.ctest -R 'pin|registry|template': 23/23 passed.scripts/pre-pr-checks.sh --tree-only --base origin/main: green; skips arehip_f16_auditandkernel_id_selftest(no gpu-kernels tree here -- their own environment reason).
hw_gatelabel added; thehw_gate/hrx_buildrunners are still offline (same state #3424/#3407/#3462/#3475 mergedunder), and the changed code is covered by the fork's own
GGML_HRX=ONbuild and the scheduling control above.Not measured here: the alias graph's decode tok/s win on gfx1151, which is engine#3384's own gate and stays open on
the issue.
Closes #3384.