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

The shape of checkpoint and the shape of model do not match #23

Open
yulongwanxue opened this issue Mar 7, 2024 · 0 comments
Open

The shape of checkpoint and the shape of model do not match #23

yulongwanxue opened this issue Mar 7, 2024 · 0 comments

Comments

@yulongwanxue
Copy link

Thank you for your wonderful research!
but,when I was doing a zero-shot test, I got this error.

just as:
size mismatch for vision_encoder.layers.2.blocks.2.attn.relative_position_bias_table: copying a param with shape torch.Size([169, 16]) from checkpoint, the shape in current model is torch.Size([529, 16])
size mismatch for vision_encoder.layers.2.blocks.9.attn_mask: copying a param with shape torch.Size([4, 49, 49]) from checkpoint, the shape in current model is torch.Size([4, 144, 144])

I followed your code,but get this problem。Do you know the answer to the question?

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

1 participant