Download chat_template.jinja from CuriousCat29/model_com_reflection_test: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/CuriousCat29/model_com_reflection_test/resolve/main/chat_template.jinja
- Command line
-
hf download hf://CuriousCat29/model_com_reflection_test/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/CuriousCat29/model_com_reflection_test/resolve/main/chat_template.jinja
423 Bytes
| {{ bos_token }}{% for message in messages %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + '[/INST]' }}{% elif message['role'] == 'system' %}{{ '[SYSTEM_PROMPT] ' + message['content'] + '[/SYSTEM_PROMPT]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + message['content'] + eos_token }}{% else %}{{ raise_exception('Only user, system and assistant roles are supported!') }}{% endif %}{% endfor %} |