Instructions to use MaddieMo/ChatGLM3-6B-Test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MaddieMo/ChatGLM3-6B-Test with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MaddieMo/ChatGLM3-6B-Test", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from MaddieMo/ChatGLM3-6B-Test: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/MaddieMo/ChatGLM3-6B-Test/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://MaddieMo/ChatGLM3-6B-Test/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/MaddieMo/ChatGLM3-6B-Test/resolve/main/tokenizer_config.json
518 Bytes
| { | |
| "name_or_path": "THUDM/chatglm3-6b", | |
| "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 | |
| ] | |
| } | |
| } | |