Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translator: IndexError: index out of range in self #28

Open
Lyaaaaaaaaaaaaaaa opened this issue Jan 26, 2024 · 0 comments
Open

Translator: IndexError: index out of range in self #28

Lyaaaaaaaaaaaaaaa opened this issue Jan 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Lyaaaaaaaaaaaaaaa
Copy link
Member

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)

@Lyaaaaaaaaaaaaaaa Lyaaaaaaaaaaaaaaa added the bug Something isn't working label Jan 26, 2024
@Lyaaaaaaaaaaaaaaa Lyaaaaaaaaaaaaaaa self-assigned this Jan 26, 2024
@Lyaaaaaaaaaaaaaaa Lyaaaaaaaaaaaaaaa changed the title IndexError: index out of range in self Translator: IndexError: index out of range in self Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant