-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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: LlavaLlamaForCausalLM.forward() got an unexpected keyword argument 'cache_position' #29426
Comments
Hey! I think you should open this issue on the |
Hm that's weird, cuz I install |
Could you provide a |
a workaround here, add |
I get the same error when I Fine-Tune my llama type models since I updated transformer library |
Again I need a reproducer to be able to push a fix. Also now the transformers/src/transformers/models/llama/modeling_llama.py Lines 980 to 985 in 76a33a1
|
I had the same issue when I tried with transformers version 4.38.x and 4.39.x. I installed transformers==4.37.2 and it worked. |
Thanks @amankumarhal , but again, without reproducers I am having a really hard time fixing this |
This repros for me with a different model with the following code. I imagine it repros with many models.
I believe the issue is caused by 23db187 at |
Oh this is using a |
+1 encountered this error when trying to use olmo |
+1 encountered this error. |
Olmo is not part of |
Workaround that got rid of the error for me was an older version of transformers |
Olmo is on transformers now |
Got the same error for OLMo-1B with Transformers 4.39.3
edit: I was using conda, Transformers 4.40.0 is not yet available. Reinstalling most recent Transformers 4.40.0 via
|
Please use |
I also added an issue in the LLAva repo haotian-liu/LLaVA#1448 |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Transformers 4.37.2 OK! |
it works! |
Closing then! Thanks 🤗 |
It works for me. Thanks!!! |
System Info
transformers
version: 4.39.0.dev0Who can help?
@ArthurZucker @amyeroberts
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Expected behavior
Everything should work just fine.
The text was updated successfully, but these errors were encountered: