Synthia instruction templates (#5041)
This commit is contained in:
parent
afc91edcb2
commit
8956f3ebe2
3 changed files with 52 additions and 0 deletions
25
instruction-templates/Synthia.yaml
Normal file
25
instruction-templates/Synthia.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
instruction_template: |-
|
||||
{%- set found_item = false -%}
|
||||
{%- for message in messages -%}
|
||||
{%- if message['role'] == 'system' -%}
|
||||
{%- set found_item = true -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- if not found_item -%}
|
||||
{{-'SYSTEM: ' + 'Answer the question thoughtfully and intelligently. Always answer without hesitation.' + '\n' -}}
|
||||
{%- endif %}
|
||||
{%- for message in messages %}
|
||||
{%- if message['role'] == 'system' -%}
|
||||
{{-'SYSTEM: ' + message['content'] + '\n' -}}
|
||||
{%- else -%}
|
||||
{%- if message['role'] == 'user' -%}
|
||||
{{-'USER: ' + message['content'] + '\n'-}}
|
||||
{%- else -%}
|
||||
{{-'ASSISTANT: ' + message['content'] + '</s>\n' -}}
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- if add_generation_prompt -%}
|
||||
{{-'ASSISTANT:'-}}
|
||||
{%- endif -%}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue