赞
踩
@ERROR :OSError: Unable to load weights from pytorch checkpoint file for ‘./data/bert-base-chinese’ at './data/bert-base-chinese/pytorch_model.bin’If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.
在跑bert模型的时候,出现加载错误
通过百度发现这是一个普遍存在的问题
在下面的帖子中找到解决方法:模型下载出了问题-------没有下载完全
https://blog.csdn.net/weixin_41831274/article/details/111414775
另外附上下载模型的方法:
https://blog.csdn.net/weixin_38481963/article/details/110535583
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。