/
known_models.rs
251 lines (251 loc) · 9.45 KB
/
known_models.rs
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
pub const KNOWN_MODELS: &str = r####"
{
"code_completion_models": {
"bigcode/starcoder": {
"n_ctx": 4096,
"supports_scratchpads": {
"FIM-PSM": {
"context_format": "starcoder",
"rag_ratio": 0.5
},
"FIM-SPM": {}
},
"default_scratchpad": "FIM-PSM",
"similar_models": [
"bigcode/starcoderbase",
"starcoder/15b/base",
"starcoder/15b/plus",
"starcoder/1b/base",
"starcoder/3b/base",
"starcoder/7b/base",
"wizardcoder/15b",
"starcoder/1b/vllm",
"starcoder/3b/vllm",
"starcoder/7b/vllm",
"starcoder2/3b/base",
"starcoder2/7b/base",
"starcoder2/15b/base",
"starcoder2/3b/vllm",
"starcoder2/7b/vllm",
"starcoder2/15b/vllm",
"starcoder2/3b",
"starcoder2/7b",
"starcoder2/15b"
]
},
"smallcloudai/Refact-1_6B-fim": {
"n_ctx": 4096,
"supports_scratchpads": {
"FIM-PSM": {},
"FIM-SPM": {
"context_format": "default",
"rag_ratio": 0
}
},
"default_scratchpad": "FIM-SPM",
"similar_models": [
"Refact/1.6B",
"Refact/1.6B/vllm"
]
},
"codellama/CodeLlama-13b-hf": {
"n_ctx": 4096,
"supports_scratchpads": {
"FIM-PSM": {
"fim_prefix": "<PRE>",
"fim_suffix": "<SUF>",
"fim_middle": "<MID>",
"eot": "<EOT>",
"eos": "</s>"
}
},
"default_scratchpad": "FIM-PSM",
"similar_models": [
"codellama/7b"
]
},
"deepseek-coder/1.3b/base": {
"n_ctx": 4096,
"supports_scratchpads": {
"FIM-PSM": {
"fim_prefix": "<|fim▁begin|>",
"fim_suffix": "<|fim▁hole|>",
"fim_middle": "<|fim▁end|>",
"eot": "<|EOT|>"
}
},
"default_scratchpad": "FIM-PSM",
"similar_models": [
"deepseek-coder/5.7b/mqa-base",
"deepseek-coder/1.3b/vllm",
"deepseek-coder/5.7b/vllm"
]
},
"stable/3b/code": {
"n_ctx": 4096,
"supports_scratchpads": {
"FIM-PSM": {},
"FIM-SPM": {}
},
"default_scratchpad": "FIM-PSM",
"similar_models": []
}
},
"code_chat_models": {
"meta-llama/Llama-2-70b-chat-hf": {
"n_ctx": 4096,
"supports_scratchpads": {
"CHAT-LLAMA2": {
"default_system_message": "You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information."
}
}
},
"gpt-3.5-turbo": {
"n_ctx": 4096,
"supports_scratchpads": {
"PASSTHROUGH": {
"default_system_message": "You are a coding assistant that outputs short answers, gives links to documentation."
}
},
"similar_models": [
"gpt-4",
"gpt-4-turbo"
]
},
"claude-instant-1.2": {
"n_ctx": 4096,
"supports_scratchpads": {
"PASSTHROUGH": {
"default_system_message": "You are a coding assistant that outputs short answers, gives links to documentation."
}
},
"similar_models": [
"claude-2.1",
"claude-3-haiku",
"claude-3-opus",
"claude-3-sonnet"
]
},
"starchat/15b/beta": {
"n_ctx": 4096,
"supports_scratchpads": {
"CHAT-GENERIC": {
"token_esc": "",
"keyword_system": "<|system|>\n",
"keyword_user": "<|end|>\n<|user|>\n",
"keyword_assistant": "<|end|>\n<|assistant|>\n",
"stop_list": [
"<|system|>",
"<|user|>",
"<|assistant|>",
"<|end|>",
"<empty_output>"
],
"default_system_message": "You are a programming assistant."
}
}
},
"llama2/7b": {
"n_ctx": 4096,
"supports_scratchpads": {
"CHAT-LLAMA2": {
"default_system_message": "You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information."
}
},
"similar_models": [
"llama2/13b"
]
},
"wizardlm/7b": {
"n_ctx": 2048,
"supports_scratchpads": {
"CHAT-GENERIC": {
"token_esc": "",
"keyword_system": "<s>",
"keyword_user": "\nUSER: ",
"keyword_assistant": "\nASSISTANT: ",
"eot": "",
"stop_list": ["\n\n"],
"default_system_message": "You are a helpful AI assistant.\n"
}
},
"similar_models": [
"wizardlm/13b",
"wizardlm/30b"
]
},
"magicoder/6.7b": {
"n_ctx": 4096,
"supports_scratchpads": {
"CHAT-GENERIC": {
"token_esc": "",
"keyword_system": "",
"keyword_user": "\n@@ Instruction\n",
"keyword_assistant": "\n@@ Response\n",
"stop_list": [],
"default_system_message": "You are an exceptionally intelligent coding assistant that consistently delivers accurate and reliable responses to user instructions.",
"eot": "<|EOT|>"
}
}
},
"mistral/7b/instruct-v0.1": {
"n_ctx": 4096,
"supports_scratchpads": {
"CHAT-GENERIC": {
"token_esc": "",
"keyword_system": "",
"keyword_user": "[INST] ",
"keyword_assistant": "[/INST]\n",
"stop_list": [],
"default_system_message": "",
"eot": "</s>"
}
},
"similar_models": [
"mixtral/8x7b/instruct-v0.1"
]
},
"phind/34b/v2": {
"n_ctx": 4095,
"supports_scratchpads": {
"CHAT-GENERIC": {
"token_esc": "",
"keyword_system": "### System Prompt\n",
"keyword_user": "\n### User Message\n",
"keyword_assistant": "\n### Assistant\n",
"stop_list": [],
"default_system_message": "You are an intelligent programming assistant.",
"eot": "</s>"
}
}
},
"deepseek-coder/6.7b/instruct": {
"n_ctx": 4096,
"supports_scratchpads": {
"CHAT-GENERIC": {
"token_esc": "",
"keyword_system": "",
"keyword_user": "### Instruction:\n",
"keyword_assistant": "### Response:\n",
"stop_list": [],
"default_system_message": "You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer.",
"eot": "<|EOT|>"
}
},
"similar_models": [
"deepseek-coder/33b/instruct",
"deepseek-coder/6.7b/instruct-finetune",
"deepseek-coder/6.7b/instruct-finetune/vllm"
]
}
},
"tokenizer_rewrite_path": {
"Refact/1.6B": "smallcloudai/Refact-1_6B-fim",
"starcoder2/3b": "bigcode/starcoder2-3b",
"gpt-3.5-turbo": "Xenova/gpt-3.5-turbo-16k",
"gpt-3.5-turbo-1106": "Xenova/gpt-3.5-turbo-16k",
"gpt-4": "Xenova/gpt-4",
"gpt-4-turbo": "Xenova/gpt-4"
}
}
"####;