mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-24 08:56:52 +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'] -}}
|
||||
{%- else -%}
|
||||
{%- if message['role'] == 'user' -%}
|
||||
{{-' [INST] ' + message['content'].rstrip() + ' [/INST] '-}}
|
||||
{{-'[INST] ' + message['content'].rstrip() + ' [/INST]'-}}
|
||||
{%- else -%}
|
||||
{{-'' + message['content'] + '</s>' -}}
|
||||
{%- endif -%}
|
||||
|
Loading…
Reference in New Issue
Block a user