pytorch_bert_vec icon indicating copy to clipboard operation
pytorch_bert_vec copied to clipboard

无法加载模型

Open howie924 opened this issue 5 years ago • 1 comments

使用的都是官方链接下载的pytorch版本的bert和albert模型(各3个文件)

transformer版本是跟要求吻合的2.4.1

运行报错: "Unable to load weights from pytorch checkpoint file. " 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.

howie924 avatar Jul 08 '20 09:07 howie924

可以参考readme里面的链接下载模型。

nutalk avatar Jul 09 '20 04:07 nutalk