Skip to content

[DeepEP] Implement shared_experts overlap with deepep.combine() - #2310

Merged
tianyu-l merged 1 commit into
pytorch:mainfrom
vivekgoe:deepep_overlap
Feb 5, 2026
Merged

tianyu-l merged 1 commit into
pytorch:mainfrom
vivekgoe:deepep_overlap

Conversation

@vivekgoe

@vivekgoe vivekgoe commented Feb 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR implements overlap of MOE shared_expert computation with deepep combine communication (during forward pass of training step). Relates to #2298

Tests

Confirmed expected behavior by taking a profiler trace for reduced DeepSeek-V3-671B model. Also verified loss convergence for 100 training steps.
Screenshot 2026-02-02 at 2 50 58 PM

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 2, 2026
@tianyu-l
tianyu-l requested a review from shuhuayu February 2, 2026 19:43
@shuhuayu shuhuayu self-assigned this Feb 2, 2026

@tianyu-l tianyu-l left a comment

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.

sgtm

@tianyu-l tianyu-l linked an issue Feb 3, 2026 that may be closed by this pull request
@vivekgoe

vivekgoe commented Feb 3, 2026

Copy link
Copy Markdown
Contributor Author

@tianyu-l CI failures seem to be unrelated to PR changes, should I rebase to latest and push another patch?

@vivekgoe
vivekgoe marked this pull request as ready for review February 4, 2026 04:21
@tianyu-l
tianyu-l merged commit e215f4f into pytorch:main Feb 5, 2026
9 of 11 checks passed
TXacs pushed a commit to McmillanTAC/torchtitan that referenced this pull request Apr 13, 2026
…rch#2310)

### Summary
This PR implements overlap of MOE shared_expert computation with deepep
combine communication (during forward pass of training step). Relates to
pytorch#2298

### Tests
Confirmed expected behavior by taking a profiler trace for reduced
DeepSeek-V3-671B model. Also verified loss convergence for 100 training
steps.
<img width="1683" height="782" alt="Screenshot 2026-02-02 at 2 50 58 PM"
src="https://github.com/user-attachments/assets/878879c6-08f7-4238-8123-b199b8b92dab"
/>
ACharacterInASimulation pushed a commit to ACharacterInASimulation/torchtitan that referenced this pull request Apr 21, 2026
…rch#2310)

### Summary
This PR implements overlap of MOE shared_expert computation with deepep
combine communication (during forward pass of training step). Relates to
pytorch#2298

### Tests
Confirmed expected behavior by taking a profiler trace for reduced
DeepSeek-V3-671B model. Also verified loss convergence for 100 training
steps.
<img width="1683" height="782" alt="Screenshot 2026-02-02 at 2 50 58 PM"
src="https://github.com/user-attachments/assets/878879c6-08f7-4238-8123-b199b8b92dab"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[DeepEP] shared_experts cannot overlap with deepep.combine()

3 participants