大模型部署避坑指南--OSError: Unable to load weights from pytorch checkpoint file for

问题描述:

OSError: Unable to load weights from pytorch checkpoint file for 
'/home/aistudio/vicuna-7b-delta-v0/pytorch_model-00001-of-00002.bin' at 
'/home/aistudio/vicuna-7b-delta-v0/pytorch_model-00001-of-00002.bin'. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.

产生原因:

torch 版本低

解决办法:

pip install --upgrade torch torchvision 

猜你喜欢

转载自blog.csdn.net/bulucc/article/details/130486783