[t5 doc] make the example work out of the box (#12239)
[t5 doc] make the example work out of the box (#12239)

* [run_clm.py] restore caching

* style

* [t5 doc] make the example work out of the box

This PR expands the training example to include the correct model type for the example to work, e.g. with `T5Model` this example will break.

* Update docs/source/model_doc/t5.rst

Co-authored-by: Suraj Patil <e55124f2bc241ddfef100229e12a1887b326eb73@gmail.com>

* expand the other example

Co-authored-by: Suraj Patil <e55124f2bc241ddfef100229e12a1887b326eb73@gmail.com>
huggingface/transformers,huggingface/transformers,huggingface/transformers,huggingface/transformers