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

Conversational dataset support for Online DPO #2075

Merged
merged 24 commits into from
Sep 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update prompt length check to 512 characters
  • Loading branch information
qgallouedec committed Sep 16, 2024
commit 30f36c09a9b1332f8e9408cd7f9c3156259225ce
2 changes: 1 addition & 1 deletion examples/datasets/ultrafeedback-prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def to_unpaired_preference(example):


def drop_long_prompt(example):
if len(example["prompt"][0]["content"]) > 768:
if len(example["prompt"][0]["content"]) > 512:
return False
else:
return True
Expand Down
Loading