Spaces:
Runtime error
Runtime error
Update constants/models.py
Browse files- constants/models.py +14 -3
constants/models.py
CHANGED
|
@@ -15,7 +15,8 @@ MODEL_MAP = {
|
|
| 15 |
"llama3-8b" : "meta-llama/Meta-Llama-3-8B-Instruct",
|
| 16 |
"mistral-nemo-instruct":"mistralai/Mistral-Nemo-Instruct-2407",
|
| 17 |
"zephyr-7b-beta":"HuggingFaceH4/zephyr-7b-beta",
|
| 18 |
-
"phi-3-mini-instruct":"microsoft/Phi-3-mini-4k-instruct"
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
AVAILABLE_MODELS = list(MODEL_MAP.keys())
|
|
@@ -47,7 +48,8 @@ STOP_SEQUENCES_MAP = {
|
|
| 47 |
"llama3-70b" : "<|eot_id|>",
|
| 48 |
"mistral-nemo-instruct": "</s>",
|
| 49 |
"zephyr-7b-beta":"</s>",
|
| 50 |
-
"phi-3-mini-instruct":"<|end|>"
|
|
|
|
| 51 |
}
|
| 52 |
|
| 53 |
TOKEN_LIMIT_MAP = {
|
|
@@ -67,7 +69,8 @@ TOKEN_LIMIT_MAP = {
|
|
| 67 |
"qwen2-7b-instruct": 32768,
|
| 68 |
"qwen2-1.5b-instruct": 32768,
|
| 69 |
"llama3-8b": 8192,
|
| 70 |
-
"phi-3-mini-instruct":4096
|
|
|
|
| 71 |
}
|
| 72 |
|
| 73 |
TOKEN_RESERVED = 20
|
|
@@ -201,6 +204,14 @@ LLM_MODELS_DICTS = [
|
|
| 201 |
"owned_by": "microsoft",
|
| 202 |
"type": "basic",
|
| 203 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
]
|
| 205 |
|
| 206 |
|
|
|
|
| 15 |
"llama3-8b" : "meta-llama/Meta-Llama-3-8B-Instruct",
|
| 16 |
"mistral-nemo-instruct":"mistralai/Mistral-Nemo-Instruct-2407",
|
| 17 |
"zephyr-7b-beta":"HuggingFaceH4/zephyr-7b-beta",
|
| 18 |
+
"phi-3-mini-instruct":"microsoft/Phi-3-mini-4k-instruct",
|
| 19 |
+
"falcon-7b-instruct":"tiiuae/falcon-7b-instruct"
|
| 20 |
}
|
| 21 |
|
| 22 |
AVAILABLE_MODELS = list(MODEL_MAP.keys())
|
|
|
|
| 48 |
"llama3-70b" : "<|eot_id|>",
|
| 49 |
"mistral-nemo-instruct": "</s>",
|
| 50 |
"zephyr-7b-beta":"</s>",
|
| 51 |
+
"phi-3-mini-instruct":"<|end|>",
|
| 52 |
+
"falcon-7b-instruct":"<|endoftext|>"
|
| 53 |
}
|
| 54 |
|
| 55 |
TOKEN_LIMIT_MAP = {
|
|
|
|
| 69 |
"qwen2-7b-instruct": 32768,
|
| 70 |
"qwen2-1.5b-instruct": 32768,
|
| 71 |
"llama3-8b": 8192,
|
| 72 |
+
"phi-3-mini-instruct":4096,
|
| 73 |
+
"falcon-7b-instruct":2048
|
| 74 |
}
|
| 75 |
|
| 76 |
TOKEN_RESERVED = 20
|
|
|
|
| 204 |
"owned_by": "microsoft",
|
| 205 |
"type": "basic",
|
| 206 |
},
|
| 207 |
+
{
|
| 208 |
+
"id": "falcon-7b-instruct",
|
| 209 |
+
"description": "[tiiuae/falcon-7b-instruct]: https://huggingface.co/tiiuae/falcon-7b-instruct",
|
| 210 |
+
"object": "model",
|
| 211 |
+
"created": 1700000000,
|
| 212 |
+
"owned_by": "tiiuae",
|
| 213 |
+
"type": "basic",
|
| 214 |
+
},
|
| 215 |
]
|
| 216 |
|
| 217 |
|