Could you please update to the latest version? which would be transformers_version="4.12" and pytorch_version="1.9" and test it again?
What is the output of gen_tex[0]['generated_text']? Is the , in the “parameters” on purpose?