init
Browse files
training_scripts/finetune_t5.py
CHANGED
@@ -93,12 +93,12 @@ def train(
|
|
93 |
train_dataset=tokenized_dataset.copy(),
|
94 |
)
|
95 |
# train
|
96 |
-
|
97 |
-
trainer.log_metrics("train", result.metrics)
|
98 |
-
trainer.save_metrics("train", result.metrics)
|
99 |
# clean up memory
|
100 |
-
trainer.save_model()
|
101 |
-
trainer.save_state()
|
102 |
del trainer
|
103 |
del model
|
104 |
gc.collect()
|
|
|
93 |
train_dataset=tokenized_dataset.copy(),
|
94 |
)
|
95 |
# train
|
96 |
+
trainer.train()
|
97 |
+
# trainer.log_metrics("train", result.metrics)
|
98 |
+
# trainer.save_metrics("train", result.metrics)
|
99 |
# clean up memory
|
100 |
+
# trainer.save_model()
|
101 |
+
# trainer.save_state()
|
102 |
del trainer
|
103 |
del model
|
104 |
gc.collect()
|