-
Notifications
You must be signed in to change notification settings - Fork 2.3k
🔥 [Refactor] RLOOTrainer #3801
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
🔥 [Refactor] RLOOTrainer #3801
Conversation
|
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. |
edbeeching
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this clean refactor @shirinyamani and @qgallouedec .
Would it be possible to include more details in the PR description of the experiments you have run to validate the results with the new implementation vs the original one?
Co-authored-by: Edward Beeching <edbeeching@users.noreply.github.com>
…eters for clarity
…e calculation in warnings
…enerations factor
Done! 🔥 |
Co-authored-by: Quentin Gallouédec <gallouedec.quentin@gmail.com> Co-authored-by: Quentin Gallouédec <45557362+qgallouedec@users.noreply.github.com> Co-authored-by: Edward Beeching <edbeeching@users.noreply.github.com>
What does this PR do?
This is an RLOO trainer which is an updated version of the RLOO in
TRL < 0.25.0. This is a simple script to run;Please refer to migration guide section of the readme to see the complete list of renamed/removed params.
Benchmark on TLDR:
To reproduce:
Before
Add this to the new trainer
in the old trainer, the reward was not computed properly. Replace this:
by
Training script
train.py:Results
See above
Why don't we get an exact match?
One of the reasons is that in the old trainer, the learning rate schedule was wrong, consequently it decays 2 times slower and ranges from 3e-6 to 1.5e-6.