Skip to content

Commit

Permalink
Bring back mistral task model (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin authored Jan 22, 2024
1 parent a6e6ee6 commit 1e4a456
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -218,19 +218,18 @@ OLD_MODELS=`[
{"name": "tiiuae/falcon-180B-chat"}
]`

TASK_MODEL='mistralai/Mistral-7B-Instruct-v0.2'
# TASK_MODEL=`{
# "name": "mistralai/Mistral-7B-Instruct-v0.2",
# "chatPromptTemplate" : "<s>{{#each messages}}{{#ifUser}}[INST] {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}}{{content}} [/INST]{{/ifUser}}{{#ifAssistant}}{{content}}</s>{{/ifAssistant}}{{/each}}",
# "parameters": {
# "temperature": 0.1,
# "top_p": 0.95,
# "repetition_penalty": 1.2,
# "top_k": 50,
# "truncate": 3072,
# "max_new_tokens": 1024,
# "stop": ["</s>"]
# }}`
TASK_MODEL=`{
"name": "mistralai/Mistral-7B-Instruct-v0.2",
"chatPromptTemplate" : "<s>{{#each messages}}{{#ifUser}}[INST] {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}}{{content}} [/INST]{{/ifUser}}{{#ifAssistant}}{{content}}</s>{{/ifAssistant}}{{/each}}",
"parameters": {
"temperature": 0.1,
"top_p": 0.95,
"repetition_penalty": 1.2,
"top_k": 50,
"truncate": 3072,
"max_new_tokens": 1024,
"stop": ["</s>"]
}}`

APP_BASE="/chat"
PUBLIC_ORIGIN=https://huggingface.co
Expand Down

0 comments on commit 1e4a456

Please sign in to comment.