Download chat_template.jinja from Successmove/tinyllama-function-calling-cpu-optimized: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/Successmove/tinyllama-function-calling-cpu-optimized/resolve/main/chat_template.jinja
- Command line
-
hf download hf://Successmove/tinyllama-function-calling-cpu-optimized/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/Successmove/tinyllama-function-calling-cpu-optimized/resolve/main/chat_template.jinja
410 Bytes
| {% for message in messages %} | |
| {% if message['role'] == 'user' %} | |
| {{ '<|user|> | |
| ' + message['content'] + eos_token }} | |
| {% elif message['role'] == 'system' %} | |
| {{ '<|system|> | |
| ' + message['content'] + eos_token }} | |
| {% elif message['role'] == 'assistant' %} | |
| {{ '<|assistant|> | |
| ' + message['content'] + eos_token }} | |
| {% endif %} | |
| {% if loop.last and add_generation_prompt %} | |
| {{ '<|assistant|>' }} | |
| {% endif %} | |
| {% endfor %} |