-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[CGPO] CGPO Trainer (single task single objective) #2190
base: main
Are you sure you want to change the base?
Conversation
Some judges in I’m using the What do you prefer ?@qgallouedec @kashif |
What does this PR do?
This PR introduces the
CGPOTrainer
to thetrl
library, as introduced in the paper CGPO paper.The current implementation follows the approach of section 4.1 of the paper (CGPO in Single Task with Single Objective) and adds the three possible policy optimization methods described:
codpo
,crraft
andcrpg
.This PR was initially discussed in #2156.
This PR depends on #2159 which introduces the MOJs.
I plan to address "Multi-Taks with Multi-Objectives" part (section 4.2) in a separate PR once this one has been successfully merged and tested.
Note: This PR relies on the
DataCollatorForChatML
which has a small bug. Refer to #2169.Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines.
To do
crpg
policy optimizationCODPO
where no completions satisfy all constraints.Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.