Large model deployment pit avoidance guide --OSError: Unable to load weights from pytorch checkpoint file for

Problem Description:

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.

cause:

torch version is low

Solution:

pip install --upgrade torch torchvision 

Guess you like

Origin blog.csdn.net/bulucc/article/details/130486783