Repository navigation
feat: add Lion - #4331
feat: add Lion#4331
Conversation
|
@microsoft-github-policy-service agree |
|
Thank you for this contribution @enneamer! Could you also please add a unit test? Take a look at some of our other unit tests for optimizers to get an idea of how to add one: |
539567b to
8dda78c
Compare
|
@mrwyattii, I have added similar unit tests. I also added code to allow creating optimizer through JSON configuration. I know that there is a separate list for DeepSpeed ZeRO-supported optimizers. Should I add it there as well? |
951f88c to
50fa389
Compare
|
@enneamer yes, please add to the list here: Also take a look at the failing unit tests! thank you |
2af7b40 to
0bbbd94
Compare
|
@mrwyattii , I have added both optimizers to the supported optimizer list. I have added some fixes and ran the newly added unit tests locally. It seems fine. However, my test machine is an ARM64 CUDA server, so the results of CPU/CUDA comparison test might differ from those of the CI check here. Let's see. |
0bbbd94 to
7a50dc0
Compare
7a50dc0 to
ce80c8a
Compare
|
@mrwyattii , I just rebased the branch and noticed CI needs your approval again. Thank you for your help. |
Just approved. Sorry for the delay, I was on vacation last week. I will get this merged this week. Thank you again for the contribution! |
|
@mrwyattii , no problem at all. I wish you had a wonderful break. It seems that the optimizers are fine. The failed tests seem to be related to ongoing development in DeepSpeed inference. |
|
@enneamer, thanks for this incredible contribution. LGTM. |
Co-authored-by: Logan Adams <[email protected]>
Implement Lion optimizer as specified by Chen, et al. The optimizer seems welcomed by some diffusion model developers.