Instructions to use zai-org/chatglm-6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/chatglm-6b with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm-6b", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Unable to load weights from pytorch checkpoint pytorch_model-00006-of-00008.bin
#9
by samge - opened
OSError: Unable to load weights from pytorch checkpoint file for xxx\huggingface\hub\models--THUDM--chatglm-6b\snapshots\2460dc243020b034420cb759ff966b83a7601d06\pytorch_model-00006-of-00008.bin' at '
xxx\huggingface\hub\models--THUDM--chatglm-6b\snapshots\2460dc243020b034420cb759ff966b83a7601d06\pytorch_model-00006-of-00008.bin'. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.
猜测大概率是模型下载的时候出了错导致文件不完整?
多谢,确实是这个问题,删掉那个文件重新下载就可以了
samge changed discussion status to closed