asahi417 commited on
Commit
c364843
1 Parent(s): 0f15dd4
Files changed (1) hide show
  1. training_scripts/finetune_t5.py +5 -5
training_scripts/finetune_t5.py CHANGED
@@ -93,12 +93,12 @@ def train(
93
  train_dataset=tokenized_dataset.copy(),
94
  )
95
  # train
96
- result = 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()
 
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()