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

RuntimeError: shape mismatch: value tensor of shape [131072] cannot be broadcast to indexing result of shape [0] #771

Open
jyh-fort opened this issue Dec 4, 2024 · 1 comment

Comments

@jyh-fort
Copy link

jyh-fort commented Dec 4, 2024

No description provided.

@Larry0454
Copy link

Larry0454 commented Dec 24, 2024

I met the same error when using BLIP model. I simply set line 1467
if getattr(self.config, "image_token_index", None) is not None:
TO
if getattr(self.config, "image_token_index", None) is None:
in modeling_instructionblip.py of the transformers package (4.48.0).
And it somehow works :)

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