Repository navigation
Keep prefill post-attention reductions on AITER quick reduce - #17
Merged
sammysun0711 merged 1 commit intoAug 11, 2026
Merged
sammysun0711 merged 1 commit into
sammysun0711 merged 1 commit into
Conversation
Signed-off-by: apinge <[email protected]>
There was a problem hiding this comment.
Pull request overview
Adjusts when the AITER fused all-reduce + RMSNorm path is used so that prefill post-attention reductions remain on the AITER quick-reduce communication path (matching the referenced legacy branch behavior), while keeping the fused path available when appropriate (e.g., decode).
Changes:
- Introduces
should_apply_aiter_all_reduce_fusion(...)to gate AITER fusion by forward mode whenSGLANG_FUSED_AR_RMSNORM_DECODE_ONLYis enabled. - Updates attention preparation and gather+layernorm fusion checks to use the new forward-mode-aware predicate.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
sammysun0711
approved these changes
Aug 11, 2026
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.
Motivation
This PR keeps the prefill post-attention (including linear attn and full attn) reductions on aiter quick reduce to maintain alignment with the legacy branch. This acts as a supplement to the prefill logic introduced in PR #14 .
Modifications
Accuracy Tests
Speed Tests and Profiling
Profile with 397B concurrency=1 8k in on PTL machine.
Before
Post-Linear Attn
Post-Full Attn
After
Post-Linear Attn
Post-Full Attn
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ci