Linux部署模型报错OSError: Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_mod

报错内容:OSError: Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory

主要原因是transformer版本不对,需要升级

pip install --upgrade huggingface_hub
pip install transformers[torch]

其他参考链接:本地加载大模型出现OSError: Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or ……_oserror: error no file named model.safetensors fou-CSDN博客

你可能感兴趣的:(linux,pytorch,运维)