LLM出现OSError: Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory ......

1、模型下载完成后,出现报错截图

 

 2、清理缓存并重新下载模型

一般会在/root/.cache/huggingface/hub/目录下面存放着模型

rm -rf /root/.cache/huggingface/hub/models--sentence-transformers--all-MiniLM-L6-v2

 

posted @ 2024-08-30 03:35  吕钦扬  阅读(1062)  评论(0)    收藏  举报