Batch generation with GPT2

It looks like you are looking for max_new_tokens?

2 Likes