Update main.py
Browse files
main.py
CHANGED
|
@@ -80,7 +80,7 @@ def to_messages(example):
|
|
| 80 |
description = str(example)
|
| 81 |
|
| 82 |
# Keep prompts short at first. code_contests descriptions can be long.
|
| 83 |
-
description = description[:
|
| 84 |
|
| 85 |
return {
|
| 86 |
"messages": [
|
|
@@ -138,10 +138,10 @@ def main():
|
|
| 138 |
# GOLD generation settings
|
| 139 |
temperature=0.8,
|
| 140 |
top_p=0.95,
|
| 141 |
-
max_length=
|
| 142 |
disable_tqdm=True,
|
| 143 |
# Training settings
|
| 144 |
-
max_steps=
|
| 145 |
per_device_train_batch_size=1,
|
| 146 |
gradient_accumulation_steps=4,
|
| 147 |
learning_rate=5e-6,
|
|
@@ -151,8 +151,8 @@ def main():
|
|
| 151 |
},
|
| 152 |
|
| 153 |
# Logging/saving
|
| 154 |
-
logging_steps=
|
| 155 |
-
save_steps=
|
| 156 |
report_to="none",
|
| 157 |
|
| 158 |
# Precision
|
|
|
|
| 80 |
description = str(example)
|
| 81 |
|
| 82 |
# Keep prompts short at first. code_contests descriptions can be long.
|
| 83 |
+
description = description[:1500]
|
| 84 |
|
| 85 |
return {
|
| 86 |
"messages": [
|
|
|
|
| 138 |
# GOLD generation settings
|
| 139 |
temperature=0.8,
|
| 140 |
top_p=0.95,
|
| 141 |
+
max_length=512,
|
| 142 |
disable_tqdm=True,
|
| 143 |
# Training settings
|
| 144 |
+
max_steps=1000,
|
| 145 |
per_device_train_batch_size=1,
|
| 146 |
gradient_accumulation_steps=4,
|
| 147 |
learning_rate=5e-6,
|
|
|
|
| 151 |
},
|
| 152 |
|
| 153 |
# Logging/saving
|
| 154 |
+
logging_steps=10,
|
| 155 |
+
save_steps=100,
|
| 156 |
report_to="none",
|
| 157 |
|
| 158 |
# Precision
|