Closed nlp4whp closed 3 years ago
您还记得训练uer/gpt2-chinese-cluecorpussmall时用的torch版本么,我用transformers 4.2.1 和 2.1.1,pytorch用1.3.1,1.6.0和1.8.0都有这个错
raise RuntimeError("{} is a zip archive (did you mean to use torch.jit.load()?)".format(f.name))
先把zip文件解压用里面的pytorch_model.bin文件
您还记得训练uer/gpt2-chinese-cluecorpussmall时用的torch版本么,我用transformers 4.2.1 和 2.1.1,pytorch用1.3.1,1.6.0和1.8.0都有这个错
raise RuntimeError("{} is a zip archive (did you mean to use torch.jit.load()?)".format(f.name))