Spaces:
Sleeping
Sleeping
Dmitry Beresnev
commited on
Commit
·
110f827
1
Parent(s):
944c08a
fix app
Browse files
app.py
CHANGED
|
@@ -9,20 +9,20 @@ from typing import Optional
|
|
| 9 |
|
| 10 |
app = FastAPI()
|
| 11 |
|
| 12 |
-
# Predefined list of available models (verified
|
| 13 |
AVAILABLE_MODELS = {
|
| 14 |
-
# ===
|
| 15 |
-
"
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
"mistral-7b": "TheBloke/Mistral-7B-Instruct-v0.
|
| 19 |
-
"
|
| 20 |
|
| 21 |
# === Coding Models ===
|
| 22 |
"deepseek-coder": "TheBloke/deepseek-coder-6.7B-instruct-GGUF:deepseek-coder-6.7b-instruct.Q4_K_M.gguf",
|
| 23 |
|
| 24 |
-
# ===
|
| 25 |
-
"
|
| 26 |
}
|
| 27 |
|
| 28 |
# Global state
|
|
|
|
| 9 |
|
| 10 |
app = FastAPI()
|
| 11 |
|
| 12 |
+
# Predefined list of available models (TheBloke only - verified, fits 18GB Space)
|
| 13 |
AVAILABLE_MODELS = {
|
| 14 |
+
# === General Purpose (Default) ===
|
| 15 |
+
"deepseek-chat": "TheBloke/deepseek-llm-7B-chat-GGUF:deepseek-llm-7b-chat.Q4_K_M.gguf",
|
| 16 |
+
|
| 17 |
+
# === Financial & Summarization Models ===
|
| 18 |
+
"mistral-7b": "TheBloke/Mistral-7B-Instruct-v0.2-GGUF:mistral-7b-instruct-v0.2.Q4_K_M.gguf",
|
| 19 |
+
"openhermes-7b": "TheBloke/OpenHermes-2.5-Mistral-7B-GGUF:openhermes-2.5-mistral-7b.Q4_K_M.gguf",
|
| 20 |
|
| 21 |
# === Coding Models ===
|
| 22 |
"deepseek-coder": "TheBloke/deepseek-coder-6.7B-instruct-GGUF:deepseek-coder-6.7b-instruct.Q4_K_M.gguf",
|
| 23 |
|
| 24 |
+
# === Lightweight/Fast ===
|
| 25 |
+
"llama-7b": "TheBloke/Llama-2-7B-Chat-GGUF:llama-2-7b-chat.Q4_K_M.gguf",
|
| 26 |
}
|
| 27 |
|
| 28 |
# Global state
|