大模型部署避坑指南--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 

你可能感兴趣的:(pytorch,深度学习,python)