Add Orca-Vicuna instruction template (#4971)
This commit is contained in:
parent
59da429cbd
commit
7c6f39382b
1 changed files with 24 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue