Skip to content

FEAT [Trainer / bnb]: Add RMSProp from bitsandbytes to HF Trainer#29082

Merged
younesbelkada merged 5 commits into
huggingface:mainfrom
younesbelkada:add-new-bnb-optims
Feb 20, 2024
Merged

FEAT [Trainer / bnb]: Add RMSProp from bitsandbytes to HF Trainer#29082
younesbelkada merged 5 commits into
huggingface:mainfrom
younesbelkada:add-new-bnb-optims

Conversation

@younesbelkada

Copy link
Copy Markdown
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

Copy link
Copy Markdown

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.

@amyeroberts amyeroberts left a comment

Copy link
Copy Markdown
Contributor

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!

Comment thread src/transformers/trainer.py Outdated
@younesbelkada
younesbelkada merged commit f7ef7ce into huggingface:main Feb 20, 2024
@younesbelkada
younesbelkada deleted the add-new-bnb-optims branch February 20, 2024 11:18
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