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

替换别的model失败 #3

Open
mjx990307 opened this issue Aug 17, 2021 · 4 comments
Open

替换别的model失败 #3

mjx990307 opened this issue Aug 17, 2021 · 4 comments

Comments

@mjx990307
Copy link

你好 我用您的代码可以运行ernie的model 但是换成别的比如bert就会报错
Variable Shape not match, Variable [ embedding_0.w_0_moment1_0 ] need tensor with shape (21128, 768) but load set tensor with shape (50006, 1024)
像这样 请问是什么问题呢

@zhenhao-huang
Copy link
Owner

您用的是哪个bert模型呢

@mjx990307
Copy link
Author

mjx990307 commented Aug 17, 2021 via email

@zhenhao-huang
Copy link
Owner

是的,训练新模型需要删除原来ernie_checkpoint保存的模型

@mjx990307
Copy link
Author

mjx990307 commented Aug 17, 2021 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