forked from RecursiveMAS/RecursiveMAS
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (54 loc) · 1.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (54 loc) · 1.58 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
services:
# ── Batch evaluation ────────────────────────────────────────────────────────
recursivemas:
build: .
image: recursivemas:latest
# Requires NVIDIA Container Toolkit on the host:
# https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
environment:
- HF_TOKEN=${HF_TOKEN:-}
- TAVILY_API_KEY=${TAVILY_API_KEY:-}
volumes:
- hf_cache:/hf_cache
# Override with your desired --style, --dataset, etc.
command:
- --style
- sequential_light
- --dataset
- math500
- --device
- cuda
# ── Web UI (Gradio) ─────────────────────────────────────────────────────────
serve:
build:
context: .
dockerfile: Dockerfile.serve
image: recursivemas-serve:latest
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
environment:
- HF_TOKEN=${HF_TOKEN:-}
- TAVILY_API_KEY=${TAVILY_API_KEY:-}
volumes:
- hf_cache:/hf_cache
ports:
- "${SERVE_PORT:-7860}:7860"
command:
- --host
- "0.0.0.0"
- --port
- "7860"
volumes:
hf_cache: