-
Notifications
You must be signed in to change notification settings - Fork 54
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
Output model files compatible with Official Bert's pre-trained models? #18
Comments
|
Hi @guotong1988 thanks for the reply. Actually I'm using the the |
Could you find the error tensor corresponding to the code? |
Hi @guotong1988 I don't know how to find the error tensor... The above error was from this code (if it helps):
|
try https://github.com/guotong1988/BERT-multi-gpu/blob/master/modeling_lastest.py |
Hi, I assume you mean to change the the line
to
I'll have a try and let you know. |
Yes |
Hi @guotong1988 It works. |
Hi, I tried to pre-train a Bert model with this project. I find the output of the model is not compatible with the official Bert's pre-trained model. Is it easy to make it compatible?
For example, I can use
pytorch_transformers
to read the official Bert's pre-trained models, but when I do this same for the model trained by this project, I get some errors about some shape sizes are not the same.The text was updated successfully, but these errors were encountered: