-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
forward() got an unexpected keyword argument 'num_items_in_batch' #35838
Comments
This seems related to the |
Getting same error for the Gemma Model. |
Same for bloom which is marking unexpected arguments as deprecated and throws Seems to be these 3 lines causing the problem:
|
We'll do a patch as soon as there is a fix! |
Can you share the traceback for the gemma model error @shubhamjain0594 ? For the bloom error, this can be easily fixed by setting For the encoder decoder, this is because we allow to pass I'll let @muellerzr decide how to fix these. Maybe the easiest fix would be to just set |
@SunMarc here you go. Does this help? |
System Info
New versions can't train encoder-decoder models.
Related issue and pull request: #34575
System-Info:
transformers
version: 4.48.1Who can help?
@ArthurZucker
@gheinrich
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
follow the blog https://huggingface.co/blog/encoder-decoder
Expected behavior
Work as in old transformer versions
The text was updated successfully, but these errors were encountered: