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

Runtime error when loading a pretrained model, ProQA (20 prompts+paq) #2

Open
starsuzi opened this issue Mar 9, 2023 · 1 comment

Comments

@starsuzi
Copy link

starsuzi commented Mar 9, 2023

Hello,

Thanks for sharing such an exciting work!

However, I am facing an error when loading the pretrained model, ProQA (20 prompts+paq).
Specifically, I met a Runtime error when I ran a zero-shot experiment, as follows:
RuntimeError: Error(s) in loading state_dict for T5ForConditionalGeneration: size mismatch for encoder.prompt_embeddings.weight: copying a param with shape torch.Size([480, 768]) from checkpoint, the shape in current model is torch.Size([2400, 768]).

I really appreciate any help you can provide. :)

@zhongwanjun
Copy link
Owner

zhongwanjun commented Mar 17, 2023 via email

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