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: start working on revisions instead of preferences #1999

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KarelDO
Copy link
Contributor

@KarelDO KarelDO commented Aug 30, 2024

Don't land this PR yet. I would initially like some feedback on the idea of this PR, and if this is a welcome change in TRL.

This PR seeks to adds revisions to TRL. Revisions create preference pairs by minimally revising a completion, unlike Judges who rank a set of completions.

To do this, I've added a tmp/trainer/revisions.py file with all the revision logic.

see CLAIR paper: https://www.arxiv.org/abs/2408.06266

TODO:

  • add tests
  • add max retries in OpenAIReviser
  • handle errors in the chat completion parsing

@qgallouedec qgallouedec marked this pull request as draft September 3, 2024 22:06
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.

2 participants