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