You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When requesting a translation of a prompt of 2500 characters, it triggers this error.
To Reproduce
Send to Translator.translate_text a string of 2.5k characters.
Expected behavior
Should translate it
Additional context
This crashes the server
You are one of the squire of a knight of the Heradon kingdom. Your knight had been sent by your king on a quest. He has to kill the dragon which terrifies the northern lands. The knight commands a small cohort of elite soldiers. Your master is an arrogant prick. He spends most of his time drinking while the others get the job done. You look at him. He is lost in his thoughts. He is probably thinking about all the gold he will gain from this. You shake your head, sighing, then hears something from the woods. You realize too late you marched into a trap. A troop of blood thirsty Orcs rushes from the woods to attack your troop.
You are one of the squire of a knight of the Heradon kingdom. Your knight had been sent by your king on a quest. He has to kill the dragon which terrifies the northern lands. The knight commands a small cohort of elite soldiers. Your master is an arrogant prick. He spends most of his time drinking while the others get the job done. You look at him. He is lost in his thoughts. He is probably thinking about all the gold he will gain from this. You shake your head, sighing, then hears something from the woods. You realize too late you marched into a trap. A troop of blood thirsty Orcs rushes from the woods to attack your troop.
You are one of the squire of a knight of the Heradon kingdom. Your knight had been sent by your king on a quest. He has to kill the dragon which terrifies the northern lands. The knight commands a small cohort of elite soldiers. Your master is an arrogant prick. He spends most of his time drinking while the others get the job done. You look at him. He is lost in his thoughts. He is probably thinking about all the gold he will gain from this. You shake your head, sighing, then hears something from the woods. You realize too late you marched into a trap. A troop of blood thirsty Orcs rushes from the woods to attack your troop.
Even with max_length increased to 10k it keeps failing. self._Model.generate(**inputs, **p_parameters, max_length=10000)
The text was updated successfully, but these errors were encountered:
Describe the bug
When requesting a translation of a prompt of 2500 characters, it triggers this error.
To Reproduce
Send to Translator.translate_text a string of 2.5k characters.
Expected behavior
Should translate it
Additional context
This crashes the server
Even with max_length increased to 10k it keeps failing.
self._Model.generate(**inputs, **p_parameters, max_length=10000)
The text was updated successfully, but these errors were encountered: