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

OSError: Unable to load weights from pytorch checkpoint file. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True. #4

Open
sunsunshinesunshine opened this issue Apr 24, 2020 · 2 comments

Comments

@sunsunshinesunshine
Copy link

请问出现在跑这个代码的时候出现如下问题要怎么解决呢
OSError: Unable to load weights from pytorch checkpoint file. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.

@yysirs
Copy link

yysirs commented Oct 16, 2020

你好请问你解决了吗?

@wangbofan
Copy link

这个是模型的加载问题,从官网上下模型,from_pretrained加载即可

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