mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-24 17:06:53 +01:00
Removed extra spaces from Mistral instruction template that were causing Mistral to misbehave (#5517)
This commit is contained in:
parent
c375c753d6
commit
fa1019e8fe
@ -4,7 +4,7 @@ instruction_template: |-
|
|||||||
{{- message['content'] -}}
|
{{- message['content'] -}}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{%- if message['role'] == 'user' -%}
|
{%- if message['role'] == 'user' -%}
|
||||||
{{-' [INST] ' + message['content'].rstrip() + ' [/INST] '-}}
|
{{-'[INST] ' + message['content'].rstrip() + ' [/INST]'-}}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{-'' + message['content'] + '</s>' -}}
|
{{-'' + message['content'] + '</s>' -}}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user