llama.cpp/tests/chat/templates/microsoft-Phi-3.5-vision-instruct.jinja
2024-09-29 00:33:19 +01:00

4 lines
220 B
Django/Jinja

{% for message in messages %}{{'<|' + message['role'] + '|>' + '
' + message['content'] + '<|end|>
' }}{% endfor %}{% if add_generation_prompt and messages[-1]['role'] != 'assistant' %}{{- '<|assistant|>
' -}}{% endif %}