Fix T5 tests: use generation_config for generation parameters (#42419)
* pass the generation parameters to generate()
* fix use_task_specific_params to separate model.config and model.generation_config params
* fix style
* some fixes
* remove redundant check
* update expectation for llama_7b_bf16 on rocm
* Update tests/models/llama/test_modeling_llama.py
Co-authored-by: Rémi Ouazan <83456801+remi-or@users.noreply.github.com>
---------
Co-authored-by: Rémi Ouazan <83456801+remi-or@users.noreply.github.com>