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

能否把optimization和pytorch的checkpoint这个也放进来 #2

Open
ruoji opened this issue Dec 3, 2018 · 1 comment
Open

能否把optimization和pytorch的checkpoint这个也放进来 #2

ruoji opened this issue Dec 3, 2018 · 1 comment

Comments

@ruoji
Copy link

ruoji commented Dec 3, 2018

能否把optimization和pytorch的checkpoint这个也放进来,我用最新的bert-pytorch master的代码转的checkpoint报错:
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:

@NLPScott
Copy link
Owner

可以看下这个https://github.com/NLPScott/pytorch-pretrained-BERT

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