Skip to content

Commit 0ede716

Browse files
committed
Merge branch 'main' into feature/assistants
2 parents 4a12786 + 77399ca commit 0ede716

27 files changed

+364
-220
lines changed

.env.template

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ MODELS=`[
5757
"repetition_penalty": 1.2,
5858
"top_k": 50,
5959
"truncate": 3072,
60-
"max_new_tokens": 1024
60+
"max_new_tokens": 1024,
61+
"stop" : ["</s>", " </s><s>[INST] "]
6162
}
6263
},
6364
{
@@ -116,7 +117,8 @@ MODELS=`[
116117
"repetition_penalty": 1.2,
117118
"top_k": 50,
118119
"truncate": 4096,
119-
"max_new_tokens": 4096
120+
"max_new_tokens": 4096,
121+
"stop": [" </s><s>[INST] "]
120122
}
121123
},
122124
{
@@ -218,19 +220,18 @@ OLD_MODELS=`[
218220
{"name": "tiiuae/falcon-180B-chat"}
219221
]`
220222

221-
TASK_MODEL='mistralai/Mistral-7B-Instruct-v0.2'
222-
# TASK_MODEL=`{
223-
# "name": "mistralai/Mistral-7B-Instruct-v0.2",
224-
# "chatPromptTemplate" : "<s>{{#each messages}}{{#ifUser}}[INST] {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}}{{content}} [/INST]{{/ifUser}}{{#ifAssistant}}{{content}}</s>{{/ifAssistant}}{{/each}}",
225-
# "parameters": {
226-
# "temperature": 0.1,
227-
# "top_p": 0.95,
228-
# "repetition_penalty": 1.2,
229-
# "top_k": 50,
230-
# "truncate": 3072,
231-
# "max_new_tokens": 1024,
232-
# "stop": ["</s>"]
233-
# }}`
223+
TASK_MODEL=`{
224+
"name": "mistralai/Mistral-7B-Instruct-v0.2",
225+
"chatPromptTemplate" : "<s>{{#each messages}}{{#ifUser}}[INST] {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}}{{content}} [/INST]{{/ifUser}}{{#ifAssistant}}{{content}}</s>{{/ifAssistant}}{{/each}}",
226+
"parameters": {
227+
"temperature": 0.1,
228+
"top_p": 0.95,
229+
"repetition_penalty": 1.2,
230+
"top_k": 50,
231+
"truncate": 3072,
232+
"max_new_tokens": 1024,
233+
"stop": ["</s>"]
234+
}}`
234235

235236
APP_BASE="/chat"
236237
PUBLIC_ORIGIN=https://huggingface.co

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = {
3434
argsIgnorePattern: "^_",
3535
},
3636
],
37+
"object-shorthand": ["error", "always"],
3738
},
3839
env: {
3940
browser: true,

0 commit comments

Comments
 (0)