Run this model with HF Jobs
Run zai-org/chatglm-6b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/zai-org/chatglm-6b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/zai-org/chatglm-6b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm-6b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
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文件先删除,然后在更新一下,就可以了