Skip to content

Commit 4c1ab0d

Browse files
Update examples/trl-integration.py
Co-authored-by: Quentin Gallouédec <45557362+qgallouedec@users.noreply.github.com>
1 parent 3ba9c47 commit 4c1ab0d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

examples/trl-integration.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
{"role": "user", "content": "What is the largest planet?"},
2626
] * 4
2727
completions = [
28-
"Paris.",
29-
"Shakespeare.",
30-
"4.",
31-
"Blue.",
32-
"Red.",
33-
"Jupiter.",
28+
{"role": "assistant", "content": "Paris."},
29+
{"role": "assistant", "content": "Shakespeare."},
30+
{"role": "assistant", "content": "4."},
31+
{"role": "assistant", "content": "Blue."},
32+
{"role": "assistant", "content": "Red."},
33+
{"role": "assistant", "content": "Jupiter."},
3434
] * 4
3535
dataset = Dataset.from_dict({"prompt": prompts, "completion": completions})
3636

0 commit comments

Comments
 (0)