Upload train_math.py
Browse files- train_math.py +2 -2
train_math.py
CHANGED
|
@@ -75,7 +75,7 @@ def prepare_datasets():
|
|
| 75 |
|
| 76 |
|
| 77 |
def main():
|
| 78 |
-
trackio.init(project="qwen3-math-sft",
|
| 79 |
trackio.log_params({
|
| 80 |
"model": MODEL_NAME, "epochs": EPOCHS, "lr": LR,
|
| 81 |
"batch_size": PER_DEVICE_BATCH, "gradient_accumulation": GRADIENT_ACCUMULATION,
|
|
@@ -125,7 +125,7 @@ def main():
|
|
| 125 |
trainer.save_model(OUTPUT_DIR)
|
| 126 |
trainer.push_to_hub()
|
| 127 |
|
| 128 |
-
trackio.
|
| 129 |
trackio.finish()
|
| 130 |
print("Training complete!")
|
| 131 |
|
|
|
|
| 75 |
|
| 76 |
|
| 77 |
def main():
|
| 78 |
+
run = trackio.init(project="qwen3-math-sft", name="qwen3-1.7b-math-lora")
|
| 79 |
trackio.log_params({
|
| 80 |
"model": MODEL_NAME, "epochs": EPOCHS, "lr": LR,
|
| 81 |
"batch_size": PER_DEVICE_BATCH, "gradient_accumulation": GRADIENT_ACCUMULATION,
|
|
|
|
| 125 |
trainer.save_model(OUTPUT_DIR)
|
| 126 |
trainer.push_to_hub()
|
| 127 |
|
| 128 |
+
trackio.log({"training_status": "completed"})
|
| 129 |
trackio.finish()
|
| 130 |
print("Training complete!")
|
| 131 |
|