Repository navigation
rdna35 prefill optimizations other than mmq - #129
Draft
liangliangchang wants to merge 9 commits into
Draft
liangliangchang wants to merge 9 commits into
liangliangchang wants to merge 9 commits into
Conversation
Assisted-by: Codex
Assisted-by: Codex
Assisted-by: Codex
Assisted-by: Codex
Assisted-by: Codex
Batch Qwen vision windows and tune guarded RDNA3.5 attention paths. Fuse clamp conversion, normalization and activation packing, and residual scaling while preserving existing dispatch and rounding. Add backend coverage and document the matched VLM performance results. Assisted-by: Codex
Zero-pad compatible D72 self-attention to the existing D80 WMMA kernel, retain the original attention scale, and extract D72 output. Guard small workloads, unsupported layouts and attention features. Add backend coverage for dispatch boundaries and fallback paths. On gfx1151, Gemma-3-4B median HTTP TTFT improves from 1141.47 ms to 769.71 ms with context checkpoints enabled (32), using 20 timed requests per configuration in ABBA order. D72 and D64/D80 backend suites pass 909 and 224 cases; 32 generated token IDs match baseline. Floating-point log probabilities differ with the WMMA arithmetic. Assisted-by: Codex
Extend shared GLU producer kernels to SwiGLU and padded Q8 rows. Use 128-thread blocks for eligible D128 Q/K norm-RoPE prefill. Preserve existing dispatch, FP32 rounding and fallback paths. On gfx1151 with checkpoints enabled, 3968-token HTTP TTFT falls 4.76% for Qwen2.5-3B and 3.85% for Qwen3-4B. Producer, graph and generation checks pass with the recorded matching outputs. Assisted-by: Codex
Document every branch optimization commit, structural eligibility, measurement baseline and performance limits. Include the SwiGLU results and distinguish isolated gains from combined experiments. Assisted-by: Codex
jimw567
self-requested a review
October 14, 2026 22:21
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.
Overview
Additional information
Requirements