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

预训练模型加载出错的请进 #47

Open
Tongjilibo opened this issue Oct 13, 2022 · 0 comments
Open

预训练模型加载出错的请进 #47

Tongjilibo opened this issue Oct 13, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@Tongjilibo
Copy link
Owner

Tongjilibo commented Oct 13, 2022

不少issue是关于预训练模型加载出错的,包含报warning和config参数不对,解释如下

  • 原因:报warning是因为模型文件中的key和bert4torch的key没有完全对齐,config参数不对是笔者对原config文件做了修改(方便参数名统一)
  • 解决方案:可以直接查看README文件结尾,部分预训练权重提供了convert文件,config参数提供了config说明
@Tongjilibo Tongjilibo pinned this issue Oct 13, 2022
@Tongjilibo Tongjilibo added the documentation Improvements or additions to documentation label Oct 13, 2022
@Tongjilibo Tongjilibo changed the title 预训练模型加载出错(warning和config参数不对)的请进 预训练模型加载出错的请进 Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant