asahi417 commited on
Commit
3e831ea
1 Parent(s): db45d5c
Files changed (1) hide show
  1. training_scripts/finetune_t5.py +1 -1
training_scripts/finetune_t5.py CHANGED
@@ -90,7 +90,7 @@ def train(
90
  per_device_train_batch_size=_BATCH,
91
  ),
92
  data_collator=transformers.DataCollatorForSeq2Seq(tokenizer, model=model),
93
- train_dataset=tokenized_dataset,
94
  )
95
  # train
96
  result = trainer.train()
 
90
  per_device_train_batch_size=_BATCH,
91
  ),
92
  data_collator=transformers.DataCollatorForSeq2Seq(tokenizer, model=model),
93
+ train_dataset=tokenized_dataset.copy(),
94
  )
95
  # train
96
  result = trainer.train()