mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 09:19:23 +01:00
Update Mistral V1.yaml
This commit is contained in:
parent
015ad8505b
commit
c6047508b7
@ -13,12 +13,12 @@ instruction_template: |-
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if message['role'] == 'user' %}
|
{%- if message['role'] == 'user' %}
|
||||||
{%- if loop.first and system_message is defined %}
|
{%- if loop.first and system_message is defined %}
|
||||||
{{- ' [INST] ' + system_message + '\\n\\n' + message['content'] + ' [/INST]' }}
|
{{- ' [INST] ' + system_message + '\\n\\n' + message['content'].rstrip() + ' [/INST]' }}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
{{- ' [INST] ' + message['content'] + ' [/INST]' }}
|
{{- ' [INST] ' + message['content'].rstrip() + ' [/INST]' }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- elif message['role'] == 'assistant' %}
|
{%- elif message['role'] == 'assistant' %}
|
||||||
{{- ' ' + message['content'] + '</s>'}}
|
{{- ' ' + message['content'].rstrip() + '</s>'}}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
{{- raise_exception('Only user and assistant roles are supported, with the exception of an initial optional system message!') }}
|
{{- raise_exception('Only user and assistant roles are supported, with the exception of an initial optional system message!') }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user