-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (31 loc) · 855 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
31 lines (31 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
services:
llama:
build: .
container_name: diffusiongemma
restart: unless-stopped
ports:
- "${PORT:-8000}:8080"
environment:
- HF_TOKEN=${HF_TOKEN}
volumes:
# Reuse a host HF cache so the GGUF is downloaded once across rebuilds /
# restarts. Override HF_CACHE_HOST in `.env` to point at any local dir.
- ${HF_CACHE_HOST:-./hf-cache}:/root/.cache/huggingface
command:
- "-hf"
- "${MODEL_REPO:-unsloth/diffusiongemma-26B-A4B-it-GGUF}:${MODEL_QUANT:-Q4_K_M}"
- "-c"
- "${CONTEXT_LENGTH:-32768}"
- "-ngl"
- "${GPU_LAYERS:-99}"
- "--host"
- "0.0.0.0"
- "--port"
- "8080"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: ${GPU_COUNT:-1}
capabilities: [gpu]