Spaces:
Sleeping
Sleeping
Update huggingface_hub>=0.28.0 and DEFAULT_MODELS to verified serverless models
Browse files- app.py +7 -21
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -150,6 +150,13 @@ class LLMProvider:
|
|
| 150 |
"context_window": 32768,
|
| 151 |
"ref_url": "https://huggingface.co/Qwen/Qwen2.5-72B-Instruct/blob/main/config.json"
|
| 152 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
"llama-3.1-8b": {
|
| 154 |
"provider": "huggingface",
|
| 155 |
"hf_model": "meta-llama/Llama-3.1-8B-Instruct",
|
|
@@ -157,27 +164,6 @@ class LLMProvider:
|
|
| 157 |
"context_window": 128000,
|
| 158 |
"ref_url": "https://ai.meta.com/blog/meta-llama-3-1/"
|
| 159 |
},
|
| 160 |
-
"mistral-7b": {
|
| 161 |
-
"provider": "huggingface",
|
| 162 |
-
"hf_model": "mistralai/Mistral-7B-Instruct-v0.3",
|
| 163 |
-
"name": "Mistral 7B (HF Free)",
|
| 164 |
-
"context_window": 32768,
|
| 165 |
-
"ref_url": "https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3/blob/main/config.json"
|
| 166 |
-
},
|
| 167 |
-
"qwen2-0.5b": {
|
| 168 |
-
"provider": "huggingface",
|
| 169 |
-
"hf_model": "Qwen/Qwen2-0.5B-Instruct",
|
| 170 |
-
"name": "Qwen 2 0.5B (HF Free)",
|
| 171 |
-
"context_window": 32768,
|
| 172 |
-
"ref_url": "https://huggingface.co/Qwen/Qwen2-0.5B-Instruct/blob/main/config.json"
|
| 173 |
-
},
|
| 174 |
-
"phi-3-mini": {
|
| 175 |
-
"provider": "huggingface",
|
| 176 |
-
"hf_model": "microsoft/Phi-3-mini-4k-instruct",
|
| 177 |
-
"name": "Phi-3 Mini (HF Free)",
|
| 178 |
-
"context_window": 4096,
|
| 179 |
-
"ref_url": "https://huggingface.co/microsoft/Phi-3-mini-4k-instruct/blob/main/config.json"
|
| 180 |
-
},
|
| 181 |
}
|
| 182 |
|
| 183 |
def __init__(self):
|
|
|
|
| 150 |
"context_window": 32768,
|
| 151 |
"ref_url": "https://huggingface.co/Qwen/Qwen2.5-72B-Instruct/blob/main/config.json"
|
| 152 |
},
|
| 153 |
+
"qwen2.5-coder-32b": {
|
| 154 |
+
"provider": "huggingface",
|
| 155 |
+
"hf_model": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 156 |
+
"name": "Qwen 2.5 Coder 32B (HF Free)",
|
| 157 |
+
"context_window": 32768,
|
| 158 |
+
"ref_url": "https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct/blob/main/config.json"
|
| 159 |
+
},
|
| 160 |
"llama-3.1-8b": {
|
| 161 |
"provider": "huggingface",
|
| 162 |
"hf_model": "meta-llama/Llama-3.1-8B-Instruct",
|
|
|
|
| 164 |
"context_window": 128000,
|
| 165 |
"ref_url": "https://ai.meta.com/blog/meta-llama-3-1/"
|
| 166 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
}
|
| 168 |
|
| 169 |
def __init__(self):
|
requirements.txt
CHANGED
|
@@ -5,5 +5,6 @@ numpy
|
|
| 5 |
scikit-learn
|
| 6 |
pypdf
|
| 7 |
python-multipart
|
| 8 |
-
huggingface_hub
|
| 9 |
requests
|
|
|
|
|
|
| 5 |
scikit-learn
|
| 6 |
pypdf
|
| 7 |
python-multipart
|
| 8 |
+
huggingface_hub>=0.28.0
|
| 9 |
requests
|
| 10 |
+
spaces
|