Skip to content
Discussion options

You must be logged in to vote

Hey, yes it's possible!

You can see the below how we add Muon optimizer. Just make sure your class is compatible with torch Optimizer

if self.cfg.optimizer == "muon":
from axolotl.contribs.mit.muon import ( # pylint: disable=no-name-in-module
MuonOptimizerFactory,
)
optimizer_cls = MuonOptimizerFactory
optimizer_kwargs.update(adam_kwargs)

https://github.com/axolotl-ai-cloud/axolotl-contribs-mit/blob/main/src/axolotl/contribs/mit/muon.py

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by NanoCode012
Comment options

You must be logged in to vote
1 reply
@NanoCode012
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants