init
Browse files
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()
|