mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 09:19:23 +01:00
Synthia instruction templates (#5041)
This commit is contained in:
parent
afc91edcb2
commit
8956f3ebe2
25
instruction-templates/Synthia-CoT.yaml
Normal file
25
instruction-templates/Synthia-CoT.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: ' + 'Elaborate on the topic using a Tree of Thoughts and backtrack when necessary to construct a clear, cohesive Chain of Thought reasoning. 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 -%}
|
||||||
|
|
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 -%}
|
||||||
|
|
@ -188,3 +188,5 @@
|
|||||||
instruction_template: 'ChatML'
|
instruction_template: 'ChatML'
|
||||||
(dolphin).*:
|
(dolphin).*:
|
||||||
instruction_template: 'ChatML'
|
instruction_template: 'ChatML'
|
||||||
|
.*synthia:
|
||||||
|
instruction_template: 'Synthia'
|
||||||
|
Loading…
Reference in New Issue
Block a user