Hi @nunonmg, thanks for your solution! Still, length_penalty=0 prompts the model to generate shorter sequences, which may negatively affect their quality. Namely, in my example, length_penalty=0 results in a sequence David Harris has called for the BBC to give back to books., while the summary generated  length_penalty=1 is David Harris has called for the BBC to do more to promote books and authors., which is longer and more accurate.