Skip to content

Add Muon optimizer implementation and integration #39541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kadirnar
Copy link
Contributor

@kadirnar kadirnar commented Jul 20, 2025

@SabaPivot
Copy link

Well coded. We need muon optimizer for sure.

Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @kadirnar ! Definitely intestered in having this in transformers. Can we directly use muon library for this instead of re-coding them ? I saw that there were 4 classes that we might want to have : SingleDeviceMuon, Muon, MuonWithAuxAdam and SingleDeviceMuonWithAuxAdam. Right now in this PR, we deal with the case SingleDeviceMuon. Also, if you can add a couple of tests that we have for all optimizers, that would be great !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants