mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-01 20:04:04 +01:00
Add Orca-Vicuna instruction template (#4971)
This commit is contained in:
parent
59da429cbd
commit
7c6f39382b
24
instruction-templates/Orca-Vicuna.yaml
Normal file
24
instruction-templates/Orca-Vicuna.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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: ' + '' + '\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…
Reference in New Issue
Block a user