-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
40 lines (37 loc) · 1.02 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
services:
torch:
build:
context: .
dockerfile: ./docker/Dockerfile
args:
- BASE_TORCH_VERSION=2.3.1
- BASE_CUDA_VERSION=12.1
- BASE_CUDNN_VERSION=8
- UID=${UID}
- USERNAME=torchuser
- VMAMBA_COMMIT_HASH=${VMAMBA_COMMIT_HASH}
volumes:
- type: bind
source: .
target: ${WORKING_DIR}
- type: bind
source: ${DATASET_DIR}
target: ${WORKING_DIR}/data/
shm_size: '32gb'
init: true
working_dir: ${WORKING_DIR}
environment:
- CUDA_HOME=${CUDA_HOME}
- XDG_CACHE_HOME=${WORKING_DIR}/${XDG_CACHE_HOME}
- TORCH_EXTENSIONS_DIR=${WORKING_DIR}/${XDG_CACHE_HOME}/${TORCH_EXTENSIONS_DIR}
- TRITON_CACHE_DIR=${WORKING_DIR}/${XDG_CACHE_HOME}/triton
entrypoint: []
# command: ["/bin/bash", "./command.sh"]
user: ${UID:-1000}
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
device_ids: ['0']