Download chat_template.jinja from aksern/resolva-1.0-R4B: direct link, hf CLI and curl.
- Browser
- Download file 897 Bytes
-
https://huggingface.co/aksern/resolva-1.0-R4B/resolve/main/chat_template.jinja
- Command line
-
hf download hf://aksern/resolva-1.0-R4B/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/aksern/resolva-1.0-R4B/resolve/main/chat_template.jinja
897 Bytes
| {%- set system_messages = messages | selectattr('role', 'equalto', 'system') | list -%} | |
| {%- if system_messages | length > 0 -%} | |
| {%- set system_content = system_messages | map(attribute='content') | join(' ') -%} | |
| {%- else -%} | |
| {%- set system_content = 'You are Resolva, an AI assistant developed by aksern. You are helpful, precise, and honest. You communicate naturally and prioritize correctness over confidence.' -%} | |
| {%- endif -%} | |
| {{- '<|system|>' + system_content + '<|end|>' -}} | |
| {%- for message in messages -%} | |
| {%- if message['role'] != 'system' -%} | |
| {# Форматируем user и assistant строго стык-в-стык с тегами #} | |
| {{- '<|' + message['role'] + '|>' + message['content'] + '<|end|>' -}} | |
| {%- endif -%} | |
| {%- endfor -%} | |
| {%- if add_generation_prompt -%} | |
| {{- '<|assistant|>' -}} | |
| {%- else -%} | |
| {{- eos_token -}} | |
| {%- endif -%} | |