mirror of
https://github.com/karpathy/nanochat.git
synced 2026-01-30 04:22:02 +00:00
fixing two typos in comments
This commit is contained in:
@@ -53,7 +53,7 @@ class Task:
|
|||||||
|
|
||||||
class TaskMixture(Task):
|
class TaskMixture(Task):
|
||||||
"""
|
"""
|
||||||
For SFT Training it becomes useful to train on a tax mixture of datasets.
|
For SFT Training it becomes useful to train on a mixture of datasets.
|
||||||
Fun trick: if you wish to oversample any task, just pass it in multiple times in the list.
|
Fun trick: if you wish to oversample any task, just pass it in multiple times in the list.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ class GSM8K(Task):
|
|||||||
else:
|
else:
|
||||||
# Regular text in between tool calls
|
# Regular text in between tool calls
|
||||||
assistant_message_parts.append({"type": "text", "text": part})
|
assistant_message_parts.append({"type": "text", "text": part})
|
||||||
# No put it all together
|
# Now put it all together
|
||||||
messages = [
|
messages = [
|
||||||
{"role": "user", "content": question}, # note: simple string
|
{"role": "user", "content": question}, # note: simple string
|
||||||
{"role": "assistant", "content": assistant_message_parts}, # note: list of parts (as dicts)
|
{"role": "assistant", "content": assistant_message_parts}, # note: list of parts (as dicts)
|
||||||
|
|||||||
Reference in New Issue
Block a user