-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.16 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
version: '3.8'
services:
free-transformer-demo:
build:
context: .
dockerfile: Dockerfile
image: free-transformer:demo
container_name: free-transformer-demo
volumes:
- ./data:/workspace/data
- ./checkpoints:/workspace/checkpoints
- ./logs:/workspace/logs
environment:
- CUDA_VISIBLE_DEVICES=0
- PYTHONPATH=/workspace/src
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
command: ["./demo.sh"]
free-transformer-interactive:
build:
context: .
dockerfile: Dockerfile
image: free-transformer:demo
container_name: free-transformer-interactive
volumes:
- ./data:/workspace/data
- ./checkpoints:/workspace/checkpoints
- ./logs:/workspace/logs
- .:/workspace
environment:
- CUDA_VISIBLE_DEVICES=0
- PYTHONPATH=/workspace/src
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
command: ["/bin/bash"]
stdin_open: true
tty: true