Repository navigation
perf(qwen4exp,hip): 2-stream split prefill pipeline and 64-bit Q8_0 WMMA loads - #1058
Merged
Merged
Conversation
davide221
force-pushed
the
perf/wave2-fnx-2stream-q8-load64
branch
from
November 23, 2026 10:37
8f49085 to
095ad9f
Compare
davide221
marked this pull request as ready for review
November 23, 2026 11:17
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.
Summary
Two targeted, zero-env-var prefill optimizations built on top of
main(#1052–#1055):qwen4exp_graph.cpp)n_streams = 2(8,192tokens/stream on a 16K chunk) instead of 4 streams (4,096tokens/stream) inbuild_pipelined_layers.71.73 GiBon Strix Halo) in half per 16K chunk while keeping R9700 attention/GDN overlapped with Strix Halo routed experts.lucebox9(Qwen 3.8 Flash-Next, 120Klong1, HIP graphs):n_streams = 4(main):62.95 s(1,898.7 tok/s)n_streams = 3:60.81 s(1,965.4 tok/s)n_streams = 2:59.04 s(2,024.4 tok/s, +6.6% overmain, +25.4% over original 1,614)paged-attn-rdna-wmma.cuh,fattn-rdna-wmma.cuh)pa_dequant_q8_0_quad/fa_dequant_q8_0_quadwith a single 64-bit__builtin_memcpyload (0 Bscratch ongfx1201).bench_paged_attn_wmma 4096 q8_0on R9700):-1.0%to-1.7%faster across every KV length (8K:15.61 -> 15.34 ms/53.8 TFLOP/s;16K:32.04 -> 31.64 ms;32K:68.01 -> 67.27 ms;64K:140.85 -> 139.53 ms).Verification
test_paged_attn_wmma+compare_paged_attn.py: PASS (max_abs_diff = 4.281998e-03 < 6.0e-03)test_qn_split_fusions:31/31PASSgfx1201):paged_attn_rdna_wmma_kernel<Q8_0, SPLIT_D=2, NQ_GROUPS=4>vgpr=238, scratch=0 B