Download chat_template.json from red-kit/GLM-5.2-tokenizer: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/red-kit/GLM-5.2-tokenizer/resolve/main/chat_template.json
- Command line
-
hf download hf://red-kit/GLM-5.2-tokenizer/chat_template.json
-
curl -L -o chat_template.json https://huggingface.co/red-kit/GLM-5.2-tokenizer/resolve/main/chat_template.json
373 Bytes
| { | |
| "chat_template": "[gMASK]<sop>{% for message in messages %}{% if message['role'] == 'system' %}<|system|>\\n{{ message['content'] }}{% elif message['role'] == 'user' %}<|user|>\\n{{ message['content'] }}<|assistant|>\\n{% elif message['role'] == 'assistant' %}{{ message['content'] }}{% endif %}{% endfor %}{% if add_generation_prompt %}<|assistant|>\\n{% endif %}" | |
| } |