OSError: Error no file named pytorch_model.bin found in directory facebook/bart-large-cnn but there

下载facehugging里面的模型一直报这个错误:

model = AutoModelForSeq2SeqLM.from_pretrained("facebook/bart-large-cnn") 
OSError: Error no file named pytorch_model.bin found in directory facebook/bart-large-cnn but there is a file for Flax weights. Use `from_flax=True` to load this model from those weights.

参考帖子
看了上面的帖子有了些思路,但是升级git,把模型下到本地后还是无法解决,后面发现是git没有下载完全,对照分支里的文件再一个一把缺的下载下来

facebook/bart-large-cnn重点是要把拉下来的bart-large-cnn再放进同目录下的facebook里。。。。

你可能感兴趣的:(github,毕设过程问题,python,windows,pytorch)