Skip to content

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

Merged
kwen2501 merged 1 commit into
mainfrom
reland_958
Mar 20, 2025
Merged

kwen2501 merged 1 commit into
mainfrom
reland_958

Conversation

@kwen2501

Copy link
Copy Markdown
Contributor

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)

ghstack-source-id: 8ad91b1
Pull Request resolved: #958
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 20, 2025
@kwen2501
kwen2501 merged commit d6ac457 into main 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.

2 participants