Skip to content

[DeepSeek] Let MoEs share Symmetric Memory across layers - #958

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

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

Conversation

@kwen2501

@kwen2501 kwen2501 commented Mar 13, 2025 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

MoEs are executed sequentially across layers, and symmetric memory here is used as temporary buffers. So we can reuse it across layers, instead of creating one per MoE instance.

(No wonder I hit OOM when running larger models previously)

MoEs are executed sequentially across layers, and symmetric memory here is used as temporary buffers. So we can reuse it across layers, instead of creating one per MoE instance. 

(No wonder I hit OOM when running larger models previously)

[ghstack-poisoned]
MoEs are executed sequentially across layers, and symmetric memory here is used as temporary buffers. So we can reuse it across layers, instead of creating one per MoE instance. 

(No wonder I hit OOM when running larger models previously)

[ghstack-poisoned]

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

lgtm

kwen2501 added a commit that referenced this pull request Mar 20, 2025
ghstack-source-id: 8ad91b1
Pull Request resolved: #958
kwen2501 added a commit that referenced this pull request Mar 20, 2025
Reland of #958 

MoEs are executed sequentially across layers, and symmetric memory here
is used as temporary buffers. So we can reuse it across layers, instead
of creating one per MoE instance.

(No wonder I hit OOM when running larger models previously)
@kwen2501

Copy link
Copy Markdown
Contributor Author

Merged via #998

@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#958 

MoEs are executed sequentially across layers, and symmetric memory here
is used as temporary buffers. So we can reuse it across layers, instead
of creating one per MoE instance.

(No wonder I hit OOM when running larger models previously)
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
Reland of pytorch#958 

MoEs are executed sequentially across layers, and symmetric memory here
is used as temporary buffers. So we can reuse it across layers, instead
of creating one per MoE instance.

(No wonder I hit OOM when running larger models previously)
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 25, 2026
Reland of pytorch#958 

MoEs are executed sequentially across layers, and symmetric memory here
is used as temporary buffers. So we can reuse it across layers, instead
of creating one per MoE instance.

(No wonder I hit OOM when running larger models previously)
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