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

初始化模型报错 #39

Open
steambread666 opened this issue Mar 4, 2021 · 2 comments
Open

初始化模型报错 #39

steambread666 opened this issue Mar 4, 2021 · 2 comments

Comments

@steambread666
Copy link

您好,我在运行代码至初始化模型处,在models/transformers/modeling_utils.py文件的358行报错:
0
运行代码,控制台仅输出 ”Process finished with exit code -1“
进入报错函数内部调试时,输出以下报错信息:
1
2

请问这是什么原因呢?
我的运行环境是 python3.6 pytorch1.2

非常感谢!

@lvjiujin
Copy link

lvjiujin commented Sep 7, 2021

老哥,我估计你加载的不是pytorch的预训练模型,而是tensorflow的预训练模型。

@Sophiarong
Copy link

请问解决了吗哥。。我在这个地方困住两天了

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

3 participants