-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
70 lines (66 loc) · 1.41 KB
/
compose.yaml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
services:
cpu-server:
build:
context: cpu-server/
volumes:
- transformers-cache:/.cache/huggingface/
- torch-cache:/.cache/torch/
- pip-cache:/.cache/pip/
- dvc-cache:/var/task/.dvc/cache/
environment:
- TRANSFORMERS_CACHE=/.cache/huggingface/hub
- TORCH_HOME=/.cache/torch/
- XDG_CACHE_HOME=/.cache/
links:
- "gpu-server:gpuserver"
ports:
- "8001:8000"
gpu-server:
build:
context: gpu-server/
ports:
- "8002:8000"
volumes:
- transformers-cache:/.cache/huggingface/
- pip-cache:/.cache/pip/
- dvc-cache:/var/task/.dvc/cache/
environment:
- TRANSFORMERS_CACHE=/.cache/huggingface/hub
- XDG_CACHE_HOME=/.cache/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
data-studio:
build:
context: data-studio/
ports:
- "8003:8000"
mongo:
image: mongo
restart: always
ports:
- "27017:27017"
volumes:
torch-cache:
driver: local
driver_opts:
o: bind
type: none
device: ~/.cache/torch/
transformers-cache:
driver: local
driver_opts:
o: bind
type: none
device: ~/.cache/huggingface/
pip-cache:
driver: local
driver_opts:
o: bind
type: none
device: ~/.cache/pip/
dvc-cache: