-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
48 lines (47 loc) · 993 Bytes
/
docker-compose.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
version: "3.8"
services:
redis:
image: redis:alpine
rank-counter:
image: redis:alpine
depends_on:
- redis
command:
- redis-cli
- -h
- redis
- set
- rank-counter
- ${REPLICAS}
sweep:
build: .
depends_on:
- redis
env_file:
- .env
volumes:
- .:/config
entrypoint:
- create-sweep
- --name=${NAME}
- --method=${SWEEP_METHOD}
- --remaining-runs=${MAX_RUNS}
- redis
run:
build: .
depends_on:
- rank-counter
- sweep
env_file:
- .env
entrypoint:
- execute-sweep
- --graphql-endpoint=${GRAPHQL_ENDPOINT}
- --command=python ${SCRIPT} log sweep --sweep-id
volumes:
- "${PWD}/logs:/root/logs"
- "${PWD}/completions:/root/completions"
- "${HUGGINGFACE_CACHE_DIR}:/root/.cache/huggingface"
- "${TORCH_EXTENSIONS_HOST_DIR}:/root/.cache/torch_extensions"
deploy:
replicas: ${REPLICAS}