Skip to content
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

Feat optimizer #5095

Merged
merged 4 commits into from
Aug 9, 2024
Merged

Feat optimizer #5095

merged 4 commits into from
Aug 9, 2024

Conversation

relic-yuexi
Copy link
Contributor

What does this PR do?

Fix: Rename the optimzer to optimizer

Feat: #4696

https://github.com/zyushun/Adam-mini

Use follow command to install adam_mini.

pip install -e git+https://github.com/zyushun/Adam-mini.git#egg=adam_mini

Now you can train the model with --use_adammini True now.

This optimizer still has a lot of room for improvement, but as of now, it is not as good as Unsloth.

But if you can't use Unsloth, it will be a good way to replace adawm_torch.

zyushun/Adam-mini#11

Before submitting

@hiyouga
Copy link
Owner

hiyouga commented Aug 9, 2024

Cool, upper: without adam-mini, lower: with adam-mini

image

@hiyouga hiyouga merged commit ef48239 into hiyouga:main Aug 9, 2024
1 check passed
@hiyouga hiyouga added the solved This problem has been already solved label Aug 9, 2024
@hiyouga hiyouga removed their request for review August 9, 2024 12:00
@relic-yuexi relic-yuexi deleted the feat-optimizer branch August 9, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants