Download chat_template.jinja from SimoneRizzo/RizzoMesh: direct link, hf CLI and curl.
- Browser
- Download file 656 Bytes
-
https://huggingface.co/SimoneRizzo/RizzoMesh/resolve/main/chat_template.jinja
- Command line
-
hf download hf://SimoneRizzo/RizzoMesh/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/SimoneRizzo/RizzoMesh/resolve/main/chat_template.jinja
656 Bytes
| {{ '<|begin_of_text|>' }}{% 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 %}{{ '<|start_header_id|>system<|end_header_id|> | |
| ' + system_message + '<|eot_id|>' }}{% endif %}{% for message in loop_messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|start_header_id|>user<|end_header_id|> | |
| ' + content + '<|eot_id|><|start_header_id|>assistant<|end_header_id|> | |
| ' }}{% elif message['role'] == 'assistant' %}{{ content + '<|eot_id|>' }}{% endif %}{% endfor %} |