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 [Trainer / bnb]: Add RMSProp from bitsandbytes to HF Trainer #29082

Merged
merged 5 commits into from
Feb 20, 2024

Conversation

younesbelkada
Copy link
Contributor

What does this PR do?

As requested by the community, this PR adds the support for bnb RMSProp optimizers to HF Trainer !
RMSProp exists in bitsandbytes since its first commit: bitsandbytes-foundation/bitsandbytes@7439924#diff-8384af03566f84c3055f3fee7b1516696a1546d130d63935714af17781d6202b so this PR is compatible with all versions of bnb.

I also added nice tests, which all pass on my machine

Fixes: huggingface/trl#1336

cc @amyeroberts and @Titus-von-Koeller FYI !

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Looks great - thanks for adding!

src/transformers/trainer.py Outdated Show resolved Hide resolved
@younesbelkada younesbelkada merged commit f7ef7ce into huggingface:main Feb 20, 2024
21 checks passed
@younesbelkada younesbelkada deleted the add-new-bnb-optims branch February 20, 2024 11:18
itazap pushed a commit that referenced this pull request May 14, 2024
…ner` (#29082)

* add RMSProp to Trainer

* revert some change

* Update src/transformers/trainer.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

---------

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
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.

RMS PROP 8bit support
3 participants