How to stop the model from generating repetitive lines.

#2
by abhinavprakash - opened

I'm translating long english text to telugu by batches.
At some batches the model is start repeating some words/ lines.
How to fix it?

model.generate(**inputs, max_new_tokens=4000, use_cache=True)

Sign up or log in to comment