Skip to content

Fix ZeRO-3 Muon all-gather for mixed parameter shapes - #8628

Merged
pengdurice merged 6 commits into
deepspeedai:masterfrom
jinyouzhi:fix_gloo_muon
Sep 28, 2026
Merged

pengdurice merged 6 commits into
deepspeedai:masterfrom
jinyouzhi:fix_gloo_muon

Conversation

@jinyouzhi

Copy link
Copy Markdown
Contributor

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

Thanks for picking this up! I think this needs a rebase on #8600, the grads come from group_items there now since param.grad isn't the full grad at step time.

Btw NCCL seems fine with uneven all_gather, which is probably why only the gloo job failed.

@jinyouzhi

Copy link
Copy Markdown
Contributor Author

Thanks for picking this up! I think this needs a rebase on #8600, the grads come from group_items there now since param.grad isn't the full grad at step time.

Btw NCCL seems fine with uneven all_gather, which is probably why only the gloo job failed.

Thank you for remind! Yes, the ut only failed in Gloo, NCCL better compatible on this case.

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

Thanks, the rebased version looks good to me. The ZeRO-3 Muon tests pass on 2×H20, and ZeRO-3 still matches ZeRO-0 bit for bit with mixed shapes.

@jinyouzhi

Copy link
Copy Markdown
Contributor Author

Thanks! @alanhuangyoo
@delock PTAL

@PKUWZP
PKUWZP self-requested a review September 28, 2026 16:55
@pengdurice
pengdurice added this pull request to the merge queue Sep 28, 2026
Merged via the queue into deepspeedai:master with commit c9e1b4d Sep 28, 2026
15 checks passed
@tohtana tohtana added needs-gpu-test GPU testing is recommended to validate the changes in this PR. and removed needs-gpu-test GPU testing is recommended to validate the changes in this PR. labels Nov 10, 2026
@auto-pr-labeler-with-jev auto-pr-labeler-with-jev Bot added the skip-gpu-test Requires positive evidence that every changed behavior can be validated without a GPU. label Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-gpu-test Requires positive evidence that every changed behavior can be validated without a GPU. will-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants