mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-21 23:57:58 +01:00
Added instruct-following template for Metharme (#1679)
This commit is contained in:
parent
1aaa47070a
commit
334486f527
4
characters/instruction-following/Metharme.yaml
Normal file
4
characters/instruction-following/Metharme.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: "<|model|>"
|
||||||
|
your_name: "<|user|>"
|
||||||
|
context: "<|system|>"
|
||||||
|
turn_template: "<|user|><|user-message|><|bot|><|bot-message|>"
|
@ -74,6 +74,9 @@
|
|||||||
.*chatglm:
|
.*chatglm:
|
||||||
mode: 'instruct'
|
mode: 'instruct'
|
||||||
instruction_template: 'ChatGLM'
|
instruction_template: 'ChatGLM'
|
||||||
|
.*metharme:
|
||||||
|
mode: 'instruct'
|
||||||
|
instruction_template: 'Metharme'
|
||||||
.*llava:
|
.*llava:
|
||||||
mode: 'instruct'
|
mode: 'instruct'
|
||||||
model_type: 'llama'
|
model_type: 'llama'
|
||||||
|
@ -147,9 +147,9 @@ def load_quantized(model_name):
|
|||||||
name = model_name.lower()
|
name = model_name.lower()
|
||||||
if any((k in name for k in ['opt-', 'opt_', 'opt1', 'opt3', 'optfor', 'galactica', 'galpaca', 'pygmalion-350m'])):
|
if any((k in name for k in ['opt-', 'opt_', 'opt1', 'opt3', 'optfor', 'galactica', 'galpaca', 'pygmalion-350m'])):
|
||||||
model_type = 'opt'
|
model_type = 'opt'
|
||||||
elif any((k in name for k in ['gpt-j', 'gptj', 'gpt4all-j', 'malion-6b', 'pygway'])):
|
elif any((k in name for k in ['gpt-j', 'gptj', 'gpt4all-j', 'malion-6b', 'pygway', 'pygmalion-6b'])):
|
||||||
model_type = 'gptj'
|
model_type = 'gptj'
|
||||||
elif any((k in name for k in ['llama', 'alpac', 'vicuna', 'guanaco', 'koala', 'llava', 'wizardlm'])):
|
elif any((k in name for k in ['llama', 'alpac', 'vicuna', 'guanaco', 'koala', 'llava', 'wizardlm', 'metharme'])):
|
||||||
model_type = 'llama'
|
model_type = 'llama'
|
||||||
else:
|
else:
|
||||||
logging.error("Can't determine model type from model name. Please specify it manually using --model_type argument")
|
logging.error("Can't determine model type from model name. Please specify it manually using --model_type argument")
|
||||||
|
@ -78,6 +78,7 @@ settings = {
|
|||||||
".*vicuna.*v0": "Vicuna v0",
|
".*vicuna.*v0": "Vicuna v0",
|
||||||
".*vicuna.*(1.1|1_1)": "Vicuna v1.1",
|
".*vicuna.*(1.1|1_1)": "Vicuna v1.1",
|
||||||
".*stable.*vicuna": "StableVicuna",
|
".*stable.*vicuna": "StableVicuna",
|
||||||
|
'.*metharme': 'Metharme',
|
||||||
".*guanaco": "Guanaco-Chat",
|
".*guanaco": "Guanaco-Chat",
|
||||||
".*koala": "Koala",
|
".*koala": "Koala",
|
||||||
".*stablelm-tuned": "StableLM",
|
".*stablelm-tuned": "StableLM",
|
||||||
|
5
prompts/Metharme.txt
Normal file
5
prompts/Metharme.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<|system|>This is a text adventure game. Describe the scenario to the user and give him three options to pick from on each turn.<|user|>Start!<|model|>You are standing in front of an old, abandoned house. The windows are boarded up, and there's no sign of life around it. As you approach, you notice a strange feeling emanating from within. Suddenly, you hear a voice calling out to you... 'Come inside!'
|
||||||
|
|
||||||
|
- Go inside the house.
|
||||||
|
- Ignore the call and move away.
|
||||||
|
- Run as fast as you can.<|user|>go inside<|model|>
|
@ -35,17 +35,20 @@
|
|||||||
"default": "Default",
|
"default": "Default",
|
||||||
".*(alpaca|llama|llava)": "LLaMA-Precise",
|
".*(alpaca|llama|llava)": "LLaMA-Precise",
|
||||||
".*pygmalion": "NovelAI-Storywriter",
|
".*pygmalion": "NovelAI-Storywriter",
|
||||||
".*RWKV": "Naive"
|
".*RWKV": "Naive",
|
||||||
|
".*moss": "MOSS"
|
||||||
},
|
},
|
||||||
"prompts": {
|
"prompts": {
|
||||||
"default": "QA",
|
"default": "QA",
|
||||||
".*(gpt4chan|gpt-4chan|4chan)": "GPT-4chan",
|
".*(gpt4chan|gpt-4chan|4chan)": "GPT-4chan",
|
||||||
".*(oasst|stablelm-7b-sft-v7-epoch-3)": "Open Assistant",
|
".*(oasst|stablelm-7b-sft-v7-epoch-3)": "Open Assistant",
|
||||||
".*(alpac|dolly)": "Alpaca",
|
".*(alpac|dolly)": "Alpaca",
|
||||||
|
".*mpt-.*instruct": "Alpaca",
|
||||||
"(?!.*v0)(?!.*1.1)(?!.*1_1)(?!.*stable).*vicuna": "Vicuna v0",
|
"(?!.*v0)(?!.*1.1)(?!.*1_1)(?!.*stable).*vicuna": "Vicuna v0",
|
||||||
".*vicuna.*v0": "Vicuna v0",
|
".*vicuna.*v0": "Vicuna v0",
|
||||||
".*vicuna.*(1.1|1_1)": "Vicuna v1.1",
|
".*vicuna.*(1.1|1_1)": "Vicuna v1.1",
|
||||||
".*stable.*vicuna": "StableVicuna",
|
".*stable.*vicuna": "StableVicuna",
|
||||||
|
".*metharme": "Metharme",
|
||||||
".*guanaco": "Guanaco-Chat",
|
".*guanaco": "Guanaco-Chat",
|
||||||
".*koala": "Koala",
|
".*koala": "Koala",
|
||||||
".*stablelm-tuned": "StableLM",
|
".*stablelm-tuned": "StableLM",
|
||||||
@ -54,7 +57,6 @@
|
|||||||
".*galactica.*-v2": "Galactica v2",
|
".*galactica.*-v2": "Galactica v2",
|
||||||
"(?!.*finetuned)(?!.*-v2).*galactica": "Galactica",
|
"(?!.*finetuned)(?!.*-v2).*galactica": "Galactica",
|
||||||
".*baize": "Baize",
|
".*baize": "Baize",
|
||||||
".*mpt-.*instruct": "Alpaca",
|
|
||||||
".*mpt-.*chat": "MPT-Chat",
|
".*mpt-.*chat": "MPT-Chat",
|
||||||
"(?!.*-flan-)(?!.*-t5-).*lamini-": "Alpaca",
|
"(?!.*-flan-)(?!.*-t5-).*lamini-": "Alpaca",
|
||||||
".*incite.*chat": "INCITE-Chat",
|
".*incite.*chat": "INCITE-Chat",
|
||||||
@ -62,7 +64,7 @@
|
|||||||
},
|
},
|
||||||
"lora_prompts": {
|
"lora_prompts": {
|
||||||
"default": "QA",
|
"default": "QA",
|
||||||
".*(alpaca-lora-7b|alpaca-lora-13b|alpaca-lora-30b)": "Alpaca",
|
".*alpaca": "Alpaca",
|
||||||
".*baize": "Baize"
|
".*baize": "Baize"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user