-
-
Notifications
You must be signed in to change notification settings - Fork 780
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
paired kto support #1069
paired kto support #1069
Conversation
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.
Want to add something on the README about this?
so as mentioned, this is going to unlock the "paired"-kto loss with respect to the DPO dataset, meaning that the batch will have a prompt twice, once for the preferred and once for the unpreferred generation. This means that the KL term in the KTO will have a biased approximation, so kindly keep that in mind |
you will also potentially need to pin the TRL version to after this was added |
Seems like 0.7.9 was recently released 4 hours ago, so this should be sufficient? |
yes |
Co-authored-by: Kashif Rasul <kashif.rasul@gmail.com>
What does a dataset for KTO look like |
@teknium1 in the DPOTrainer its the same as the DPO one... however for the proper KTO trainer in TRL we went with the convention:
|
No description provided.