Spaces:
Build error
Build error
Mishig
commited on
Commit
•
22e7bfa
1
Parent(s):
77399ca
Update readme to use `meta-llama/Llama-2-70b-chat-hf` (#723)
Browse files* Update readme to use `meta-llama/Llama-2-70b-chat-hf`
* add `mistralai/Mistral-7B-Instruct-v0.2` instead
README.md
CHANGED
@@ -174,36 +174,33 @@ You can customize the parameters passed to the model or even use a new model by
|
|
174 |
```env
|
175 |
MODELS=`[
|
176 |
{
|
177 |
-
"name": "
|
178 |
-
"
|
179 |
-
"description": "
|
180 |
-
"websiteUrl": "https://
|
181 |
-
"
|
182 |
-
"
|
183 |
-
"
|
184 |
-
|
185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
"promptExamples": [
|
187 |
{
|
188 |
"title": "Write an email from bullet list",
|
189 |
"prompt": "As a restaurant owner, write a professional email to the supplier to get these products every week: \n\n- Wine (x10)\n- Eggs (x24)\n- Bread (x12)"
|
190 |
}, {
|
191 |
"title": "Code a snake game",
|
192 |
-
"prompt": "Code a basic snake game in python
|
193 |
}, {
|
194 |
"title": "Assist in a task",
|
195 |
"prompt": "How do I make a delicious lemon cheesecake?"
|
196 |
}
|
197 |
-
]
|
198 |
-
"parameters": {
|
199 |
-
"temperature": 0.9,
|
200 |
-
"top_p": 0.95,
|
201 |
-
"repetition_penalty": 1.2,
|
202 |
-
"top_k": 50,
|
203 |
-
"truncate": 1000,
|
204 |
-
"max_new_tokens": 1024,
|
205 |
-
"stop": ["<|endoftext|>"] # This does not need to be tokens, can be any list of strings
|
206 |
-
}
|
207 |
}
|
208 |
]`
|
209 |
|
|
|
174 |
```env
|
175 |
MODELS=`[
|
176 |
{
|
177 |
+
"name": "mistralai/Mistral-7B-Instruct-v0.2",
|
178 |
+
"displayName": "mistralai/Mistral-7B-Instruct-v0.2",
|
179 |
+
"description": "Mistral 7B is a new Apache 2.0 model, released by Mistral AI that outperforms Llama2 13B in benchmarks.",
|
180 |
+
"websiteUrl": "https://mistral.ai/news/announcing-mistral-7b/",
|
181 |
+
"preprompt": "",
|
182 |
+
"chatPromptTemplate" : "<s>{{#each messages}}{{#ifUser}}[INST] {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}}{{content}} [/INST]{{/ifUser}}{{#ifAssistant}}{{content}}</s>{{/ifAssistant}}{{/each}}",
|
183 |
+
"parameters": {
|
184 |
+
"temperature": 0.3,
|
185 |
+
"top_p": 0.95,
|
186 |
+
"repetition_penalty": 1.2,
|
187 |
+
"top_k": 50,
|
188 |
+
"truncate": 3072,
|
189 |
+
"max_new_tokens": 1024,
|
190 |
+
"stop": ["</s>"]
|
191 |
+
},
|
192 |
"promptExamples": [
|
193 |
{
|
194 |
"title": "Write an email from bullet list",
|
195 |
"prompt": "As a restaurant owner, write a professional email to the supplier to get these products every week: \n\n- Wine (x10)\n- Eggs (x24)\n- Bread (x12)"
|
196 |
}, {
|
197 |
"title": "Code a snake game",
|
198 |
+
"prompt": "Code a basic snake game in python, give explanations for each step."
|
199 |
}, {
|
200 |
"title": "Assist in a task",
|
201 |
"prompt": "How do I make a delicious lemon cheesecake?"
|
202 |
}
|
203 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
}
|
205 |
]`
|
206 |
|