From 64a57d9dc2c30add950a2af118d46670c44fffcf Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 17 Dec 2023 21:39:47 -0800 Subject: [PATCH] Remove duplicate instruction templates --- instruction-templates/Guanaco.yaml | 25 ------------------- instruction-templates/H2O-human_bot.yaml | 25 ------------------- instruction-templates/LLaVA-v1.yaml | 25 ------------------- instruction-templates/Minotaur.yaml | 25 ------------------- .../Wizard-Mega WizardLM.yaml | 25 ------------------- models/config.yaml | 8 +++--- 6 files changed, 4 insertions(+), 129 deletions(-) delete mode 100644 instruction-templates/Guanaco.yaml delete mode 100644 instruction-templates/H2O-human_bot.yaml delete mode 100644 instruction-templates/LLaVA-v1.yaml delete mode 100644 instruction-templates/Minotaur.yaml delete mode 100644 instruction-templates/Wizard-Mega WizardLM.yaml diff --git a/instruction-templates/Guanaco.yaml b/instruction-templates/Guanaco.yaml deleted file mode 100644 index fba10031..00000000 --- a/instruction-templates/Guanaco.yaml +++ /dev/null @@ -1,25 +0,0 @@ -instruction_template: |- - {%- set found_item = false -%} - {%- for message in messages -%} - {%- if message['role'] == 'system' -%} - {%- set found_item = true -%} - {%- endif -%} - {%- endfor -%} - {%- if not found_item -%} - {{- '' + 'A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human\'s questions.' + '\n\n' -}} - {%- endif %} - {%- for message in messages %} - {%- if message['role'] == 'system' -%} - {{- '' + message['content'] + '\n\n' -}} - {%- else -%} - {%- if message['role'] == 'user' -%} - {{-'### Human: ' + message['content'] + '\n'-}} - {%- else -%} - {{-'### Assistant: ' + message['content'] + '\n' -}} - {%- endif -%} - {%- endif -%} - {%- endfor -%} - {%- if add_generation_prompt -%} - {{-'### Assistant:'-}} - {%- endif -%} - diff --git a/instruction-templates/H2O-human_bot.yaml b/instruction-templates/H2O-human_bot.yaml deleted file mode 100644 index f562e451..00000000 --- a/instruction-templates/H2O-human_bot.yaml +++ /dev/null @@ -1,25 +0,0 @@ -instruction_template: |- - {%- set found_item = false -%} - {%- for message in messages -%} - {%- if message['role'] == 'system' -%} - {%- set found_item = true -%} - {%- endif -%} - {%- endfor -%} - {%- if not found_item -%} - {{- '' + '' + '' -}} - {%- endif %} - {%- for message in messages %} - {%- if message['role'] == 'system' -%} - {{- '' + message['content'] + '' -}} - {%- else -%} - {%- if message['role'] == 'user' -%} - {{-': ' + message['content'] + '\n'-}} - {%- else -%} - {{-':' + message['content'] + '\n' -}} - {%- endif -%} - {%- endif -%} - {%- endfor -%} - {%- if add_generation_prompt -%} - {{-':'-}} - {%- endif -%} - diff --git a/instruction-templates/LLaVA-v1.yaml b/instruction-templates/LLaVA-v1.yaml deleted file mode 100644 index f960d808..00000000 --- a/instruction-templates/LLaVA-v1.yaml +++ /dev/null @@ -1,25 +0,0 @@ -instruction_template: |- - {%- set found_item = false -%} - {%- for message in messages -%} - {%- if message['role'] == 'system' -%} - {%- set found_item = true -%} - {%- endif -%} - {%- endfor -%} - {%- if not found_item -%} - {{- '' + 'A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user\'s questions.' + '\n\n' -}} - {%- endif %} - {%- for message in messages %} - {%- if message['role'] == 'system' -%} - {{- '' + message['content'] + '\n\n' -}} - {%- else -%} - {%- if message['role'] == 'user' -%} - {{-'USER: ' + message['content'] + '\n'-}} - {%- else -%} - {{-'ASSISTANT: ' + message['content'] + '\n' -}} - {%- endif -%} - {%- endif -%} - {%- endfor -%} - {%- if add_generation_prompt -%} - {{-'ASSISTANT:'-}} - {%- endif -%} - diff --git a/instruction-templates/Minotaur.yaml b/instruction-templates/Minotaur.yaml deleted file mode 100644 index 7b8d5764..00000000 --- a/instruction-templates/Minotaur.yaml +++ /dev/null @@ -1,25 +0,0 @@ -instruction_template: |- - {%- set found_item = false -%} - {%- for message in messages -%} - {%- if message['role'] == 'system' -%} - {%- set found_item = true -%} - {%- endif -%} - {%- endfor -%} - {%- if not found_item -%} - {{- '' + '' + '' -}} - {%- endif %} - {%- for message in messages %} - {%- if message['role'] == 'system' -%} - {{- '' + message['content'] + '' -}} - {%- else -%} - {%- if message['role'] == 'user' -%} - {{-'USER: ' + message['content'] + '\n'-}} - {%- else -%} - {{-'ASSISTANT:' + message['content'] + '\n' -}} - {%- endif -%} - {%- endif -%} - {%- endfor -%} - {%- if add_generation_prompt -%} - {{-'ASSISTANT:'-}} - {%- endif -%} - diff --git a/instruction-templates/Wizard-Mega WizardLM.yaml b/instruction-templates/Wizard-Mega WizardLM.yaml deleted file mode 100644 index 1f2086a2..00000000 --- a/instruction-templates/Wizard-Mega WizardLM.yaml +++ /dev/null @@ -1,25 +0,0 @@ -instruction_template: |- - {%- set found_item = false -%} - {%- for message in messages -%} - {%- if message['role'] == 'system' -%} - {%- set found_item = true -%} - {%- endif -%} - {%- endfor -%} - {%- if not found_item -%} - {{- '' + 'Below is an instruction that describes a task. Write a response that appropriately completes the request.' + '\n\n' -}} - {%- endif %} - {%- for message in messages %} - {%- if message['role'] == 'system' -%} - {{- '' + message['content'] + '\n\n' -}} - {%- else -%} - {%- if message['role'] == 'user' -%} - {{-'### Instruction:\n' + message['content'] + '\n\n'-}} - {%- else -%} - {{-'### Response:\n' + message['content'] + '\n\n' -}} - {%- endif -%} - {%- endif -%} - {%- endfor -%} - {%- if add_generation_prompt -%} - {{-'### Response:\n'-}} - {%- endif -%} - diff --git a/models/config.yaml b/models/config.yaml index 86b5ca40..5cebb713 100644 --- a/models/config.yaml +++ b/models/config.yaml @@ -38,7 +38,7 @@ instruction_template: 'LLaVA' custom_stopping_strings: '"\n###"' .*llava.*1.5: - instruction_template: 'LLaVA-v1' + instruction_template: 'Vicuna-v1.1' .*wizard.*mega: instruction_template: 'Wizard-Mega' custom_stopping_strings: '""' @@ -108,7 +108,7 @@ .*bactrian: instruction_template: 'Bactrian' .*(h2ogpt-oig-|h2ogpt-oasst1-|h2ogpt-research-oasst1-): - instruction_template: 'H2O-human_bot' + instruction_template: 'INCITE-Chat' .*h2ogpt-gm-: instruction_template: 'H2O-prompt_answer' .*manticore: @@ -128,7 +128,7 @@ .*lazarus: instruction_template: 'Alpaca' .*guanaco-.*(7|13|33|65)b: - instruction_template: 'Guanaco' + instruction_template: 'Vicuna-v0' .*hypermantis: instruction_template: 'Alpaca' .*open-llama-.*-open-instruct: @@ -144,7 +144,7 @@ .*wizardcoder: instruction_template: 'Alpaca' .*minotaur: - instruction_template: 'Minotaur' + instruction_template: 'Manticore Chat' .*orca_mini: instruction_template: 'Orca Mini' .*(platypus|gplatty|superplatty):