RDNA 3.5 MMVQ/fattn optimizations for gfx1151#31
Draft
jeffli-xilinx wants to merge 1 commit into
Draft
Conversation
Add RDNA 3.5 (gfx1151) specific parameter tuning and kernel optimizations for decode throughput on LPDDR5X-based APUs (Radeon 8060S). Key changes: - MMVQ parameter table: add MMVQ_PARAMETERS_RDNA3_5 with nwarps=1 (single wave per block, optimal for wave32 on 40 CU APU) - Bias defusion: run bias-only fused kernels through non-fused template + separate bias-add kernel (24% per-kernel speedup) - Split-K for low-row-count MMVQ: split K-dimension across multiple waves with atomicAdd when waves_per_cu < 80 (improves LPDDR5X BW utilization from 76% to 89%) - Q8_1 cache: avoid redundant activation quantization when the same src1 pointer is reused across fused MMVQ dispatches - RMS norm + quantize fusion: fused kernel combining RMS normalization, weight multiplication, and Q8_1 quantization in a single pass - Flash attention tile configs: add RDNA 3.5 specific tile configurations for head dimensions 72 and 80 Benchmarked on Radeon 8060S (gfx1151, 40 CUs, LPDDR5X): Qwen3.5-9B Q4_0, 128 token decode: 38.1 -> 39.0 t/s (+2.3%) Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
bc52096 to
7a55d72
Compare
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
Benchmark
Device: Radeon 8060S (gfx1151, 40 CUs, LPDDR5X), ROCm nightly 7.13
Decode (tg128, single token generation)
Prefill (prompt processing)
Notes
Test plan
🤖 Generated with Claude Code