Instructions to use zai-org/chatglm3-6b-128k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/chatglm3-6b-128k with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm3-6b-128k", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "name_or_path": "THUDM/chatglm3-6b-128k", | |
| "remove_space": false, | |
| "do_lower_case": false, | |
| "tokenizer_class": "ChatGLMTokenizer", | |
| "chat_template": "{% for message in messages %}{% if loop.first %}[gMASK]sop<|{{ message['role'] }}|> \n {{ message['content'] }}{% else %}<|{{ message['role'] }}|> \n {{ message['content'] }}{% endif %}{% endfor %}{% if add_generation_prompt %}<|assistant|>{% endif %}", | |
| "auto_map": { | |
| "AutoTokenizer": [ | |
| "tokenization_chatglm.ChatGLMTokenizer", | |
| null | |
| ] | |
| } | |
| } |