LAVIS
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]).
How should this problem be solved?
Thank you!
I also want to know
please,bro
I also want to know,too!!
同求解决方法
同求解决办法
How should this problem be solved? Thank you!
How should this problem be solved? Thank you!
Hi, friend. Have you resolved the problem? I need help~
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.
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)