Skip to content

[DeepSeek] Remove support of EP=1 case - #954

Closed
kwen2501 wants to merge 3 commits into
gh/kwen2501/8/basefrom
gh/kwen2501/8/head
Closed

kwen2501 wants to merge 3 commits into
gh/kwen2501/8/basefrom
gh/kwen2501/8/head

Conversation

@kwen2501

@kwen2501 kwen2501 commented Mar 12, 2025 •

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 12, 2025
kwen2501 added a commit that referenced this pull request Mar 12, 2025
ghstack-source-id: 290bf67
Pull Request resolved: #954

@wconstab wconstab 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.

hm. would it hurt to keep the EP=1 case? the removed code doesn't look worth it to me in trade for the lost functionality if we want to do some tests or experiments with different parallelism configs

For simplicity, removing code path support EP=1 (less related to this repo's purpose).

[ghstack-poisoned]
@kwen2501

Copy link
Copy Markdown
Contributor Author

Yeah, I agree with the concern/wish.
The problem is that EP=1 case would create quite some if-else branches in the forward function. For code simplicity those if-else have been already removed prior to this PR.
This PR just does the remaining cleaning in __init__.

For simplicity, removing code path support EP=1 (less related to this repo's purpose).

[ghstack-poisoned]
@wconstab

Copy link
Copy Markdown
Contributor

hmm. ill stamp to unblock, but for the record it feels like a worthwhile goal to find a way to refactor such that EP=1 can be cleanly supported (perhaps without so many branches, but nonetheless its probably worthwhile)

kwen2501 added a commit that referenced this pull request Mar 20, 2025
ghstack-source-id: 1a4b8e3
Pull Request resolved: #954
kwen2501 added a commit that referenced this pull request Mar 20, 2025
Reland of #954.

For simplicity, removing code path support EP=1 (less related to this
repo's purpose).
@kwen2501

Copy link
Copy Markdown
Contributor Author

Merged via #997.

@kwen2501 kwen2501 closed this Mar 20, 2025
MaxiBoether pushed a commit to eth-easl/torchtitan-mixtera that referenced this pull request Apr 17, 2025
Reland of pytorch#954.

For simplicity, removing code path support EP=1 (less related to this
repo's purpose).
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
Reland of pytorch#954.

For simplicity, removing code path support EP=1 (less related to this
repo's purpose).
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 25, 2026
Reland of pytorch#954.

For simplicity, removing code path support EP=1 (less related to this
repo's purpose).
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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants