Download chat_template.jinja from elk-stack/pre: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/elk-stack/pre/resolve/main/chat_template.jinja
- Command line
-
hf download hf://elk-stack/pre/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/elk-stack/pre/resolve/main/chat_template.jinja
325 Bytes
| {% for message in messages %}{% if message['role'] == 'assistant' %}<|im_start|>assistant | |
| {% generation %}{{ message['content'] }}<|im_end|> | |
| {% endgeneration %}{% else %}<|im_start|>{{ message['role'] }} | |
| {{ message['content'] }}<|im_end|> | |
| {% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant | |
| {% endif %} |