mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 01:09:22 +01:00
Fix spaces in Mistral/Mixtral instruct prompt (#5214)
This commit is contained in:
parent
bec4e0a1ce
commit
c44836c4d7
@ -4,7 +4,7 @@ instruction_template: |-
|
||||
{{- message['content'] -}}
|
||||
{%- else -%}
|
||||
{%- if message['role'] == 'user' -%}
|
||||
{{-'[INST] ' + message['content'] + ' [/INST]'-}}
|
||||
{{-' [INST] ' + message['content'].rstrip() + ' [/INST] '-}}
|
||||
{%- else -%}
|
||||
{{-'' + message['content'] + '</s>' -}}
|
||||
{%- endif -%}
|
||||
@ -13,4 +13,3 @@ instruction_template: |-
|
||||
{%- if add_generation_prompt -%}
|
||||
{{-''-}}
|
||||
{%- endif -%}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user