Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions python/sglang/srt/models/qwen3_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ def forward_normal(
if (
self.ep_size > 1
and not should_allreduce_fusion
and not use_reduce_scatter
and not should_use_dp_reduce_scatterv()
Comment on lines 337 to 339
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

To fully align the EP all-reduce guard with the TP all-reduce guard below (lines 344-349), you should also include not should_use_flashinfer_cutlass_moe_fp4_allgather(). This ensures that if the FlashInfer specialized communication path is active, the EP all-reduce is correctly skipped to avoid double-reduction, maintaining consistency between the TP and EP branches.

            and not should_allreduce_fusion
            and not use_reduce_scatter
            and not should_use_flashinfer_cutlass_moe_fp4_allgather()
            and not should_use_dp_reduce_scatterv()

):
final_hidden_states = moe_expert_parallel_all_reduce(final_hidden_states)
Expand Down
Loading