:bug: Handle empty gen_kwargs for seq2seq trainer prediction_step function (#24759)
* :bug: Handle empty gen_kwargs for seq2seq trainer prediction_step fn
Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
* Update src/transformers/trainer_seq2seq.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
---------
Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>