Custom optimizer #2997
-
Hey, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
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 axolotl/src/axolotl/core/builders/base.py Lines 266 to 272 in 7026cd5 https://github.com/axolotl-ai-cloud/axolotl-contribs-mit/blob/main/src/axolotl/contribs/mit/muon.py |
Beta Was this translation helpful? Give feedback.
-
Oh ok thank you, so I have to change the method manually _configure_custom_optimizer. |
Beta Was this translation helpful? Give feedback.
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
axolotl/src/axolotl/core/builders/base.py
Lines 266 to 272 in 7026cd5
https://github.com/axolotl-ai-cloud/axolotl-contribs-mit/blob/main/src/axolotl/contribs/mit/muon.py