forked from openvinotoolkit/openvino_notebooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
38 lines (36 loc) · 1.54 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
SUPPORTED_LLM_MODELS = {
"tiny-llama-1b": {
"model_id": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
"prompt_template": "<|user|>\n{instruction}</s> \n<|assistant|>\n",
"tokenizer_kwargs": {"add_special_tokens": False},
},
"phi-2": {
"model_id": "susnato/phi-2",
"prompt_template": "Instruct:{instruction}\nOutput:",
},
"dolly-v2-3b": {
"model_id": "databricks/dolly-v2-3b",
"instriction_key": "### Instruction:",
"response_key": "### Response:",
"end_key": "### End",
"prompt_template": """Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
{instruction}
### Response:
""",
},
"red-pajama-instruct-3b": {
"model_id": "togethercomputer/RedPajama-INCITE-Instruct-3B-v1",
"prompt_template": "Q: {instruction}\nA:",
},
"mistral-7b": {
"model_id": "mistralai/Mistral-7B-Instruct-v0.2",
"prompt_template": "<s> [INST] {instruction} [/INST] </s>",
"tokenizer_kwargs": {"add_special_tokens": False},
},
"llama-3-8b-instruct": {
"model_id": "meta-llama/Meta-Llama-3-8B-Instruct",
"end_key": "<|eot_id|>",
"prompt_template": "<|start_header_id|>system<|end_header_id|>\n\nBelow is an instruction that describes a task. Write a response that appropriately completes the request.<|eot_id|><|start_header_id|>user<|end_header_id|>Instruction: {instruction} Answer:<|eot_id|><|start_header_id|>assistant<|end_header_id|>",
},
}