-
Notifications
You must be signed in to change notification settings - Fork 477
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
Donut generate ONLY <s><s>...<s></s> #303
Comments
that solved it for you? i have the same issue, but when i upgrade to 4.40.2 i get the following error: could you be so kind and post all your installed lib versions? ( edit: introducing the "cache_position" as an argument fixes the issue, now i can train the model with transformer==4.40.2! sadly that does not fix the |
I had the same issue with the version of transformers 4.38.2. Dowgrading transformers to the version 4.25.1 solved the issue! |
@svchostdotexe the 2nd reason why you're getting this error might be because you have too much text or token in your training set |
Im having the same issue, I tried with multiple versions of transformers and result in the same. I was following this article https://medium.com/@paul_lefevre/information-extraction-from-id-documents-with-donut-792ca80d2a93 |
@nromero125 Have you solved the problem? i follow the same resource as you, and get the same error. |
@nromero125 @Ruxin124 this comment mentions the exact issue i faced, But basically after changing the transformer version i was able to resolve the issue,
i was getting this error i was able to do prediction using the Found the issue was due to not sure what exactly happened there, cause it install the same file, but it resolved the issue, |
@ephron-canopy |
After training the model, I have a normal training and validation loss decreasing over each epoch, only to return during generation the same token:
text_sequence: <s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s>...<s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s><s></s>
Edit: I solved it by using transformer version 4.40.2
The text was updated successfully, but these errors were encountered: