Skip to content

Commit cd1747e

Browse files
Apply suggestion from @qgallouedec
Co-authored-by: Quentin Gallouédec <45557362+qgallouedec@users.noreply.github.com>
1 parent adaeee3 commit cd1747e

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

examples/trl-integration.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
project_name = f"trackio-trl-demo-{suffix}"
1515

1616
prompts = [
17-
{"role": "user", "content": "What is the capital of France?"},
18-
{"role": "user", "content": "Who wrote Hamlet?"},
19-
{"role": "user", "content": "What is 2 + 2?"},
20-
{"role": "user", "content": "What color is the sky?"},
21-
{"role": "user", "content": "Name a primary color."},
22-
{"role": "user", "content": "What is the largest planet?"},
17+
[{"role": "user", "content": "What is the capital of France?"}],
18+
[{"role": "user", "content": "Who wrote Hamlet?"}],
19+
[{"role": "user", "content": "What is 2 + 2?"}],
20+
[{"role": "user", "content": "What color is the sky?"}],
21+
[{"role": "user", "content": "Name a primary color."}],
22+
[{"role": "user", "content": "What is the largest planet?"}],
2323
] * 4
2424
completions = [
25-
{"role": "assistant", "content": "Paris."},
26-
{"role": "assistant", "content": "Shakespeare."},
27-
{"role": "assistant", "content": "4."},
28-
{"role": "assistant", "content": "Blue."},
29-
{"role": "assistant", "content": "Red."},
30-
{"role": "assistant", "content": "Jupiter."},
25+
[{"role": "assistant", "content": "Paris."}],
26+
[{"role": "assistant", "content": "Shakespeare."}],
27+
[{"role": "assistant", "content": "4."}],
28+
[{"role": "assistant", "content": "Blue."}],
29+
[{"role": "assistant", "content": "Red."}],
30+
[{"role": "assistant", "content": "Jupiter."}],
3131
] * 4
3232
dataset = Dataset.from_dict({"prompt": prompts, "completion": completions})
3333

0 commit comments

Comments
 (0)