v1.1,加载时报错 Unable to load weights from pytorch checkpoint file for '...'. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.

#72
by hanswang73 - opened

v1.1,加载时报错 Unable to load weights from pytorch checkpoint file for './model/chatglm-6b/pytorch_model-00001-of-00008.bin' at './model/chatglm-6b/pytorch_model-00001-of-00008.bin'. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.

PyTorch 2.0.0, Python 3.8, ubuntu 20.04, Cuda 11.8
GPU: RTX A5000(24GB) * 1

我也遇到这样的问题,请问解决了吗,怎么解决的

我也遇到了这样的问题很迷

我解决了这个问题,有可能是你的bin文件没有加载完成,将出错bin文件先删除,然后在更新一下,就可以了

Sign up or log in to comment