mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-28 10:11:39 +00:00
Templates: Modify alpaca and chatml
Add the stop_strings metadata parameter. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -1,2 +1,6 @@
|
||||
{# Metadata #}
|
||||
{% set stop_strings = ["<|im_start|>", "<|im_end|>"] %}
|
||||
|
||||
{# Template #}
|
||||
{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content']}}{% if (loop.last and add_generation_prompt) or not loop.last %}{{ '<|im_end|>' + '\n'}}{% endif %}{% endfor %}
|
||||
{% if add_generation_prompt and messages[-1]['role'] != 'assistant' %}{{ '<|im_start|>assistant\n' }}{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user