Download chat_template.jinja from modrill/code_think_8_olmo3_7b_base_sft: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/modrill/code_think_8_olmo3_7b_base_sft/resolve/main/chat_template.jinja
- Command line
-
hf download hf://modrill/code_think_8_olmo3_7b_base_sft/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/modrill/code_think_8_olmo3_7b_base_sft/resolve/main/chat_template.jinja
515 Bytes
| {{ '<|endoftext|>' }}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% endif %}{% if system_message is defined %}{{ system_message }}{% endif %}{% for message in loop_messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|user|> | |
| ' + content + '<|assistant|> | |
| ' }}{% elif message['role'] == 'assistant' %}{{ content + '<|endoftext|>' }}{% endif %}{% endfor %} |