-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
36 lines (36 loc) · 1.15 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
version: "3.8"
services:
neurosis:
image: ghcr.io/neggles/tensorpods/base:cu121-torch210
restart: unless-stopped
# mounted below
working_dir: "/workspace"
# sleep forever so we can exec into it
command:
- "bash"
- "-c"
- "while sleep 1000; do :; done"
environment:
# make python print immediately instead of buffering
PYTHONUNBUFFERED: "1"
PYTHONIOENCODING: "UTF-8"
# saves ~1GB of VRAM and speeds up startup, has to be uppercase
CUDA_MODULE_LOADING: "LAZY"
# fix annoying tcmalloc problem
TCMALLOC_AGGRESSIVE_DECOMMIT: "t"
# volta turing ampereDC ampere ada hopper (sorry pascal users)
TORCH_CUDA_ARCH_LIST: "7.0;7.5;8.0;8.6;8.9;9.0"
# enable hf_transfer module for faster data transfer to/from hub
HF_HUB_ENABLE_HF_TRANSFER: "1"
# shut up bitsandbytes
BITSANDBYTES_NOWELCOME: "1"
# enable numpy type promotions
NPY_PROMOTION_STATE: "weak"
volumes:
- type: bind
source: ./
target: /workspace/neurosis
consistency: "cached"
- type: bind
source: ${HOME}/.cache
target: /workspace/.cache