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
fix bug in tokenizer `decode` method
#84
by njunlp - opened
the _decode method of ChatGLMTokenizer class should use customized _decode in sp_tokenizer rather than that in parent class, otherwise, the negative id would never be filtered.