-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-gpu.yml
91 lines (88 loc) · 2.84 KB
/
docker-compose-gpu.yml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
services:
vllm:
build:
context: ./data
dockerfile: vllm.Dockerfile
volumes:
- ./data/vllm_example.py:/workspace/vllm_example.py
- ./data/dev-config.ini:/home/vllm/.chutes/config.ini
- /home/jdurbin/git/chutes/dist/:/usr/src/chutes/
- ./.vllmcache:/home/vllm/.cache
user: vllm
environment:
- CHUTES_EXECUTION_CONTEXT=REMOTE
command: chutes run vllm_example:chute --port 8000 --host 0.0.0.0 --graval-seed 42 --miner-ss58 5DCJTfVx3ReNyxW3SgQEKFgvXFuqnK3BNW1vMhTQK4jdZbV4 --validator-ss58 5DCJTfVx3ReNyxW3SgQEKFgvXFuqnK3BNW1vMhTQK4jdZbV4
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
ports:
- "8101:8000"
networks:
- chutes
graval_worker:
build:
context: .
target: graval
volumes:
- ./api:/app/api
entrypoint: ["poetry", "run", "taskiq", "worker", "api.graval_worker:broker", "--workers", "1", "--max-async-tasks", "1"]
environment:
- POSTGRESQL=postgresql+asyncpg://user:password@postgres:5432/chutes
- REDIS_URL=redis://:redispassword@redis:6379/0
- MINIO_ENDPOINT=minio:9000
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
- STORAGE_BUCKET=chutes
- REGISTRY_PASSWORD=registry
- REGISTRY_INSECURE=true
- VALIDATOR_SS58=5DCJTfVx3ReNyxW3SgQEKFgvXFuqnK3BNW1vMhTQK4jdZbV4
- VALIDATOR_SEED=971c2a6674d0861ade72297d11110ce21c93734210527c8f4c9190c00139ce20
- GRAVAL_URL=http://graval:9191
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
networks:
- chutes
graval:
build:
context: .
target: graval
volumes:
- ./api:/app/api
entrypoint: ["poetry", "run", "python", "api/graval_server.py", "--port", "9191", "--validator-whitelist", "5DCJTfVx3ReNyxW3SgQEKFgvXFuqnK3BNW1vMhTQK4jdZbV4"]
ports:
- "9191:9191"
environment:
- POSTGRESQL=postgresql+asyncpg://user:password@postgres:5432/chutes
- POSTGRES_URL=postgresql://user:password@postgres:5432/chutes
- REDIS_URL=redis://:redispassword@redis:6379/0
- MINIO_ENDPOINT=minio:9000
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
- STORAGE_BUCKET=chutes
- REGISTRY_PASSWORD=registry
- REGISTRY_INSECURE=true
- VALIDATOR_SS58=5DCJTfVx3ReNyxW3SgQEKFgvXFuqnK3BNW1vMhTQK4jdZbV4
- VALIDATOR_SEED=971c2a6674d0861ade72297d11110ce21c93734210527c8f4c9190c00139ce20
- PYTHONPATH=/app
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
networks:
- chutes
networks:
chutes:
external: true
name: chutes