-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 1.14 KB
/
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
services:
# GPU enabled
all: &dev
image: carpedm20/quanto:24.06-py3
build:
dockerfile: ./Dockerfile
volumes:
- .:/app
- $HOME/.vscode-server:/root/.vscode-server
- $HOME/.zshrc:/root/.zshrc
- $HOME/.cache:/root/.cache
- $HOME/.npm:/root/.npm
- $HOME/.ipython:/root/.ipython
- $HOME/.zsh_history:/root/.zsh_history
- $HOME/.jupyter:/root/.jupyter
# - $HOME/.gitconfig:/root/.gitconfig
# Data
- $HOME/data:/root/data
# Local repos
- $HOME/git:/root/git
tty: true
ipc: host
stdin_open: true
network_mode: host
tmpfs:
- /tmp/docker
environment:
# https://github.com/AutoGPTQ/AutoGPTQ#quick-installation
- SHELL=/usr/bin/zsh
- TORCH_CUDA_ARCH_LIST=8.6;8.6+PTX;8.7;9.0;9.0+PTX
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
gpu0:
<<: *dev
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: [ '0' ]
capabilities: [ gpu ]