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

Add scripts/run_kto.py #165

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

alvarobartt
Copy link
Member

Description

As briefly discussed with @lewtun this morning, this PR adds the scripts/run_kto.py script to fine-tune LLMs using the trl.KTOTrainer from the alignment-handbook.

The script should work as is, but still needs to be tested, cc in case you're interested @jiwooya1000 and @nlee-208

The main reference used to put the script together has been https://github.com/huggingface/trl/blob/main/examples/scripts/kto.py.

@HuggingFaceDocBuilderDev

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.

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.

3 participants