llama.cpp/tests/chat/templates/microsoft-Phi-3-medium-4k-instruct.jinja
2024-09-26 04:00:10 +01:00

5 lines
254 B
Django/Jinja

{% for message in messages %}{% if (message['role'] == 'user') %}{{'<|user|>' + '
' + message['content'] + '<|end|>' + '
' + '<|assistant|>' + '
'}}{% elif (message['role'] == 'assistant') %}{{message['content'] + '<|end|>' + '
'}}{% endif %}{% endfor %}