Skip to content

Commit

Permalink
📝 Fix typo in dataset generation script (#2379)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiseshen authored Nov 21, 2024
1 parent 6578fdc commit bdeb117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/datasets/hh-rlhf-helpful-base.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def extract_dialogue(example: str) -> List[Dict[str, str]]:
prompt.append({"role": role, "content": content})

# Remove the prompt from the chosen and rejected dialogues
chosen = [{"role": "assitant", "content": chosen_line}]
chosen = [{"role": "assistant", "content": chosen_line}]
rejected = [{"role": "assistant", "content": rejected_line}]

return {"prompt": prompt, "chosen": chosen, "rejected": rejected}
Expand Down

0 comments on commit bdeb117

Please sign in to comment.