feature: add
This commit is contained in:
15
docker-images/template.jinja
Normal file
15
docker-images/template.jinja
Normal file
@@ -0,0 +1,15 @@
|
||||
{% 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 %}
|
||||
|
||||
Reference in New Issue
Block a user