Files
enginex-mlu370-vllm/docker-images/template.jinja
2025-08-27 16:52:53 +08:00

16 lines
376 B
Django/Jinja

{% for m in messages %}
{% if m['role'] == 'system' %}{{ bos_token }}<|system|>
{{ m['content'] }}
<|end|>
{% elif m['role'] == 'user' %}{{ bos_token }}<|user|>
{{ m['content'] }}
<|end|>
{% elif m['role'] == 'assistant' %}{{ bos_token }}<|assistant|>
{{ m['content'] }}
<|end|>
{% endif %}
{% endfor %}
{% if add_generation_prompt %}{{ bos_token }}<|assistant|>
{% endif %}