-
Notifications
You must be signed in to change notification settings - Fork 225
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: #23
Comments
the same errors, is there anyone know the way to fix this error? thanks ================================================================= |
你好,请问一下您这边解决这个问题了吗?我在使用转化后的pytorch 模型 也出现了同样的错误,请教一下这个问题是怎么解决的呢 |
我也是同样的错误 |
你问题解决了么 |
您好,很感谢您提供代码,本人水平有限,在执行这一步时:
model.bert.load_state_dict(torch.load(args.init_checkpoint, map_location='cpu'))
遇到以下错误:
RuntimeError: Error(s) in loading state_dict for BertModel: Missing key(s) in state_dict: "embeddings.word_embeddings.weight. ...."
请问这是为什么呢。
The text was updated successfully, but these errors were encountered: