LAVIS icon indicating copy to clipboard operation
LAVIS copied to clipboard

size mismatch for opt_proj.weight: copying a param with shape torch.Size([2560, 768]) from checkpoint, the shape in current model is torch.Size([768, 768]).

Open shams2023 opened this issue 1 year ago • 8 comments

image How should this problem be solved? Thank you!

shams2023 avatar Nov 05 '23 14:11 shams2023

I also want to know

HeYiyang2 avatar Dec 26 '23 10:12 HeYiyang2

please,bro

HeYiyang2 avatar Dec 26 '23 10:12 HeYiyang2

I also want to know,too!!

shaonian526-526 avatar Mar 12 '24 10:03 shaonian526-526

同求解决方法

zrj1234212 avatar May 10 '24 12:05 zrj1234212

同求解决办法

rhyhck avatar Jun 05 '24 14:06 rhyhck

image How should this problem be solved? Thank you!

image How should this problem be solved? Thank you!

Hi, friend. Have you resolved the problem? I need help~

rhyhck avatar Jun 05 '24 14:06 rhyhck

I solved the problem by using the local opt_model opt-2.7b in the blip2_pretrain_opt2.7b.yaml , which come from Facebook/opt-2.7b.

harukaza avatar Jul 10 '24 01:07 harukaza

In fact, I misunderstand the different usages between huggingface and the project page. The former provides a whole ckpt, while the latter need two different module ckpts (i.e., blip2_pretrained_opt2.7b.pth & opt-2.7b)

harukaza avatar Jul 10 '24 02:07 harukaza