Spaces:
Runtime error
Runtime error
Update .env.local.template
Browse files- .env.local.template +20 -21
.env.local.template
CHANGED
|
@@ -20,32 +20,31 @@ OPENID_PROVIDER_URL=https://huggingface.co # for Google, use https://accounts.go
|
|
| 20 |
|
| 21 |
|
| 22 |
# 'name', 'userMessageToken', 'assistantMessageToken' are required
|
|
|
|
|
|
|
| 23 |
MODELS=`[
|
| 24 |
{
|
| 25 |
-
"name": "
|
|
|
|
| 26 |
"chatPromptTemplate": "${MODEL_PROMPT_TEMPLATE}",
|
| 27 |
-
"
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
"
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
"type": "tgi",
|
| 43 |
-
"url": "http://127.0.0.1:8080"
|
| 44 |
-
}
|
| 45 |
-
],
|
| 46 |
-
"parameters": ${MODEL_PARAMS}
|
| 47 |
}
|
| 48 |
]`
|
|
|
|
| 49 |
OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
|
| 50 |
|
| 51 |
PUBLIC_ORIGIN=${SPACE_HOST}
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
# 'name', 'userMessageToken', 'assistantMessageToken' are required
|
| 23 |
+
|
| 24 |
+
|
| 25 |
MODELS=`[
|
| 26 |
{
|
| 27 |
+
"name": "llama3-8b-Indica",
|
| 28 |
+
"id": "llama3-8b-Indica",
|
| 29 |
"chatPromptTemplate": "${MODEL_PROMPT_TEMPLATE}",
|
| 30 |
+
"parameters": {
|
| 31 |
+
"temperature": 0.2,
|
| 32 |
+
"top_p": 0.95,
|
| 33 |
+
"max_new_tokens": 1024,
|
| 34 |
+
"stop": []
|
| 35 |
+
},
|
| 36 |
+
"endpoints": [{
|
| 37 |
+
"type" : "openai",
|
| 38 |
+
"baseURL": "https://d20b-165-204-156-250.ngrok-free.app/v1/completions",
|
| 39 |
+
"extraBody": {
|
| 40 |
+
"model": "/app/model/llama3_8b_lora_indica_sft/",
|
| 41 |
+
"max_tokens": 1024,
|
| 42 |
+
"temperature": 0.5
|
| 43 |
+
}
|
| 44 |
+
}]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
}
|
| 46 |
]`
|
| 47 |
+
|
| 48 |
OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
|
| 49 |
|
| 50 |
PUBLIC_ORIGIN=${SPACE_HOST}
|