Fix spaces in Mistral/Mixtral instruct prompt (#5214)
This commit is contained in:
parent
bec4e0a1ce
commit
c44836c4d7
1 changed files with 3 additions and 4 deletions
|
@ -4,13 +4,12 @@ instruction_template: |-
|
||||||
{{- message['content'] -}}
|
{{- message['content'] -}}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{%- if message['role'] == 'user' -%}
|
{%- if message['role'] == 'user' -%}
|
||||||
{{-'[INST] ' + message['content'] + ' [/INST]'-}}
|
{{-' [INST] ' + message['content'].rstrip() + ' [/INST] '-}}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{-'' + message['content'] + '</s> ' -}}
|
{{-'' + message['content'] + '</s>' -}}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- if add_generation_prompt -%}
|
{%- if add_generation_prompt -%}
|
||||||
{{-''-}}
|
{{-''-}}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue