Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Issue with Loading Models from Huggingface Repo

Open cskyl opened this issue 1 year ago • 7 comments

Hi, Thank you for your fantastic project.

I've encountered a problem when trying to evaluate the model downloaded from the Huggingface repo given in your project. I'm facing an issue with both the small and tiny vim models. When I loaded the models, I receive the following error message: "size mismatch for pos_embed: copying a param with shape torch.Size([1, 730, 384]) from checkpoint, the shape in the current model is torch.Size([1, 197, 384])."

Could you please offer some guidance on how to address this problem? Your assistance would be greatly appreciated.

Thank you so much for this matter!

cskyl avatar Feb 22 '24 15:02 cskyl