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

RuntimeError: Error(s) in loading state_dict for BertModel #25

Open
ZiteHe opened this issue Nov 13, 2019 · 1 comment
Open

RuntimeError: Error(s) in loading state_dict for BertModel #25

ZiteHe opened this issue Nov 13, 2019 · 1 comment

Comments

@ZiteHe
Copy link

ZiteHe commented Nov 13, 2019

RuntimeError: Error(s) in loading state_dict for BertModel:
size mismatch for bert.embeddings.word_embeddings.weight: copying a param with shape torch.Size([21128, 128]) from checkpoint, the shape in current model is torch.Size([21128, 312]).

Can anyone help with this issue? I used the convert file but it seems there is some problem with the param size in checkpoint?
Thank u

@SUFEHeisenberg
Copy link

I met the same problem when applying albert_tiny_zh in pytorch, have you solved the problem? Forword to ur reply. ^_^

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