From 7c6f39382b16d1c4215a0d22fc148a384dd4c9e9 Mon Sep 17 00:00:00 2001 From: Eve <139727413+netrunnereve@users.noreply.github.com> Date: Mon, 18 Dec 2023 02:55:23 +0000 Subject: [PATCH] Add Orca-Vicuna instruction template (#4971) --- instruction-templates/Orca-Vicuna.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 instruction-templates/Orca-Vicuna.yaml diff --git a/instruction-templates/Orca-Vicuna.yaml b/instruction-templates/Orca-Vicuna.yaml new file mode 100644 index 0000000..b8dd250 --- /dev/null +++ b/instruction-templates/Orca-Vicuna.yaml @@ -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'] + '\n' -}} + {%- endif -%} + {%- endif -%} + {%- endfor -%} + {%- if add_generation_prompt -%} + {{-'ASSISTANT:'-}} + {%- endif -%}