How to change training epochs when using run_summarization.py
### Who can help
<!-- Your issue will be replied to more quickly if you can figure out the right person to tag with @
 If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.
 Please tag fewer than 3 people.!-->

Models:

- bart, t5: @patrickvonplaten, @patil-suraj


## Information

I am using t5-large and t5-base to train my customer model with my customer csv dataset through running run_summarization.py. But I found that t5-small's performance is better than t5-base and t5-large. I think that is because we only train 3 epochs in run_summarization.py. Can you guys tell me how to change the training epochs? 

I'm not sure whether my thinking is correct. Feel free to provide more suggestion. After all, it is strange that the performance of t5-small is better than t5-large and t5-base. 

Thank you very much!!!

Hi there,

`run_summarization.py` uses `Trainer`,  you can pass the `--num_train_epochs` to control the number of epochs. Please find the docs [here](https://huggingface.co/transformers/main_classes/trainer.html).

Also please use the [forum](https://discuss.huggingface.co/) to ask such questions, issues are for bugs and feature requests. Thanks!<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.