Instructions to use zai-org/glm-4-9b-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/glm-4-9b-chat with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/glm-4-9b-chat", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
requirements.txt
#40
by lifelongwar - opened
chatglm4 config.json中标注的transformer版本(4.30.2无法正常启动模型)不正确,并且依赖了更高版本的tiktoken库(我用tiktoken==0.4.0加载chatglm3是可以的,但是加载chatglm4会报错),可能提供一个requirements.txt会更好
在github仓库有requirements.txt
ZHANGYUXUAN-zR changed discussion status to closed