Removed extra spaces from Mistral instruction template that were causing Mistral to misbehave (#5517)

This commit is contained in:
fschuh 2024-02-16 19:40:51 -05:00 committed by GitHub
parent c375c753d6
commit fa1019e8fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 -%}