Skip to content

Keep prefill post-attention reductions on AITER quick reduce - #17

Merged
sammysun0711 merged 1 commit into
qwen3_5_v0.5.15_dflashfrom
qwen3_5_v0.5.15_dflash_reduce_after_attn
Aug 11, 2026
Merged

sammysun0711 merged 1 commit into
qwen3_5_v0.5.15_dflashfrom
qwen3_5_v0.5.15_dflash_reduce_after_attn

Conversation

@apinge

@apinge apinge commented Aug 11, 2026 •

Copy link
Copy Markdown
Owner

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

image

Post-Full Attn

image

After

Post-Linear Attn

image

Post-Full Attn

image

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
    • Common commands include /tag-and-rerun-ci, /tag-run-ci-label, /rerun-failed-ci
  4. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

@apinge
apinge marked this pull request as ready for review August 11, 2026 06:43
@apinge
apinge requested a lite review from Copilot August 11, 2026 06:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 when SGLANG_FUSED_AR_RMSNORM_DECODE_ONLY is 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
sammysun0711 merged commit 52b8794 into qwen3_5_v0.5.15_dflash Aug 11, 2026
6 of 8 checks passed
@apinge
apinge deleted the qwen3_5_v0.5.15_dflash_reduce_after_attn branch October 12, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants