How to make it so that GPT-2 generates the text to the end of the sentence and does not cut it off in the middle?

Hello. I am using gpt-2 to generate text, I am trying to generate headings from a short description, but I ran into such a problem that some sentences are generated incomplete and are cut off in the middle. How can you fix this and make it so that the model generates an offer to the end?

1 Like

Was wondering about this too. Is there any way to ask GPT-2 to finish sentences?