python examples/tensorflow/summarization/run_summarization.py \ | |
--model_name_or_path google-t5/t5-small \ | |
--dataset_name cnn_dailymail \ | |
--dataset_config "3.0.0" \ | |
--output_dir /tmp/tst-summarization \ | |
--per_device_train_batch_size 8 \ | |
--per_device_eval_batch_size 16 \ | |
--num_train_epochs 3 \ | |
--do_train \ | |
--do_eval | |
Distributed training and mixed precision | |
The Trainer supports distributed training and mixed precision, which means you can also use it in a script. |