-
-
Notifications
You must be signed in to change notification settings - Fork 549
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 1.23 KB
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (32 loc) · 1.23 KB
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
32
33
34
version: '3.8'
services:
shimmy:
image: ghcr.io/michael-a-kuykendall/shimmy:latest
container_name: shimmy-server
ports:
- "11434:11434" # Shimmy server port
volumes:
- ./models:/app/models # Mount your models directory
- shimmy-cache:/root/.cache # Persistent cache for downloads
environment:
- SHIMMY_BASE_GGUF=/app/models # Point to mounted models
- SHIMMY_PORT=11434 # Server port
- SHIMMY_HOST=0.0.0.0 # Listen on all interfaces
# TurboShimmy v2.1 — cut KV cache VRAM ~60% (recommended for 4 GB GPUs)
# Uncomment to enable INT4 KV quantization:
# - SHIMMY_KV_QUANT=int4
# Uncomment to reduce prefill chunk size (prevents Windows TDR crashes on long prompts):
# - SHIMMY_PREFILL_CHUNK=8
# Uncomment to override max context length (default: model's native ctx from GGUF):
# - SHIMMY_MAX_CTX=4096
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia # GPU support (optional)
count: all
capabilities: [gpu]
volumes:
shimmy-cache:
driver: local