-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
TypeError: ModernBertModel.forward() got an unexpected keyword argument 'num_items_in_batch' #36074
Comments
cc @muellerzr , but also @Bachstelze have you tried installing the latest version from |
I installed transformers with those lines after the PR:
|
Hmm, okay, seems like the issue still exists then! |
@Bachstelze Can you please provide the full stack trace and code you're running for this instance? |
@Pappasad also mentions that TrOCR doesn't forward
|
@Bachstelze can you try via |
still the same error |
@muellerzr don't make a sad face, take your time and enjoy your weekend! ;) |
@muellerzr I have a similar issue with Donut
Looking at the linked PR, does it also fix the Donut model? I'm quite new to this, but the changes in the PR are for the |
@muellerzr also hit a similar issue for DistilBert upgrading from 4.46.3 -> 4.49.0
|
@muellerzr I get the error
|
I got same error after update my transformer's libs |
@zheka77111 What was the previous version you used? Did that version work for you? |
4.36, but now I backup to it and get same error |
System Info
Reopening: #35838
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
see #35838
Expected behavior
see #35838
The text was updated successfully, but these errors were encountered: