Skip to content

Commit fa1019e

Browse files
authored
Removed extra spaces from Mistral instruction template that were causing Mistral to misbehave (oobabooga#5517)
1 parent c375c75 commit fa1019e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instruction-templates/Mistral.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ instruction_template: |-
44
{{- message['content'] -}}
55
{%- else -%}
66
{%- if message['role'] == 'user' -%}
7-
{{-' [INST] ' + message['content'].rstrip() + ' [/INST] '-}}
7+
{{-'[INST] ' + message['content'].rstrip() + ' [/INST]'-}}
88
{%- else -%}
99
{{-'' + message['content'] + '</s>' -}}
1010
{%- endif -%}

0 commit comments

Comments
 (0)