Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- Dockerfile +2 -2
- app.py +2 -2
Dockerfile
CHANGED
|
@@ -45,8 +45,8 @@ RUN mkdir -p /models && chmod -R 777 /models
|
|
| 45 |
# Replace with your actual model repository
|
| 46 |
RUN huggingface-cli download \
|
| 47 |
--repo-type model \
|
| 48 |
-
|
| 49 |
-
ornith-1.0-
|
| 50 |
--local-dir /models \
|
| 51 |
|| echo "Model download failed - will be provided at runtime"
|
| 52 |
|
|
|
|
| 45 |
# Replace with your actual model repository
|
| 46 |
RUN huggingface-cli download \
|
| 47 |
--repo-type model \
|
| 48 |
+
deepreinforce-ai/Ornith-1.0-9B-GGUF \
|
| 49 |
+
ornith-1.0-9b-Q4_K_M.gguf \
|
| 50 |
--local-dir /models \
|
| 51 |
|| echo "Model download failed - will be provided at runtime"
|
| 52 |
|
app.py
CHANGED
|
@@ -14,8 +14,8 @@ import aiohttp
|
|
| 14 |
app = FastAPI(title="Ornith 1.0 Inference API - 2 Instance Load Balanced", version="1.0.0")
|
| 15 |
|
| 16 |
# Configuration
|
| 17 |
-
MODEL_PATH = "/models/ornith-1.0-
|
| 18 |
-
MODEL_REPO = "
|
| 19 |
INSTANCE_PORTS = [8081, 8082] # Two instances
|
| 20 |
INSTANCE_URLS = [f"http://localhost:{port}" for port in INSTANCE_PORTS]
|
| 21 |
MAIN_PORT = 7860
|
|
|
|
| 14 |
app = FastAPI(title="Ornith 1.0 Inference API - 2 Instance Load Balanced", version="1.0.0")
|
| 15 |
|
| 16 |
# Configuration
|
| 17 |
+
MODEL_PATH = "/models/ornith-1.0-9b-Q4_K_M.gguf"
|
| 18 |
+
MODEL_REPO = "deepreinforce-ai/Ornith-1.0-9B-GGUF"
|
| 19 |
INSTANCE_PORTS = [8081, 8082] # Two instances
|
| 20 |
INSTANCE_URLS = [f"http://localhost:{port}" for port in INSTANCE_PORTS]
|
| 21 |
MAIN_PORT = 7860
|