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

shape mismatch: value tensor of shape [128, 4096] cannot be broadcast to indexing result of shape [0, 4096] #7

Open
wangyePHD opened this issue Oct 4, 2024 · 1 comment

Comments

@wangyePHD
Copy link

shape mismatch: value tensor of shape [128, 4096] cannot be broadcast to indexing result of shape [0, 4096]
How to solve it?

@roman-bachmann
Copy link
Member

Could you try installing transformers==4.41.2? There is a bug in newer versions that breaks fine-tuned IDEFICS 2 models, see huggingface/transformers#33763.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants