blob: a47f4c88213af581afe4844aa8237340c8c0ffba (
plain) (
blame)
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
|
services:
apollo:
build:
context: .
dockerfile_inline: |
FROM ghcr.io/schaka/rocm-migraphx-ort-torch-builder:rocm10.1-gfx803
# Apollo needs these; the base image already has torch/ffmpeg/libsndfile
RUN python -m pip install --no-cache-dir soundfile omegaconf
WORKDIR /workspace/Apollo
image: apollo-gfx803:local
init: true
# AMD compute devices
devices:
- /dev/kfd:/dev/kfd
- /dev/dri:/dev/dri
# Host GIDs from `getent group video render`:
# video=985, render=989. Adjust if your host differs.
group_add:
- "985"
- "989"
shm_size: "8gb"
user: "${UID:-1000}:${GID:-1000}"
working_dir: /workspace/Apollo
environment:
HOME: /tmp
XDG_CACHE_HOME: /tmp/.cache
HF_HOME: /hf-cache
HF_HUB_DISABLE_TELEMETRY: "1"
PYTHONUNBUFFERED: "1"
PYTHONDONTWRITEBYTECODE: "1"
OMP_NUM_THREADS: "8"
MKL_NUM_THREADS: "8"
MIOPEN_USER_DB_PATH: /miopen-cache
MIOPEN_CUSTOM_CACHE_DIR: /miopen-cache
# Do NOT override HSA_OVERRIDE_GFX_VERSION, ROC_ENABLE_PRE_VEGA,
# TORCH_BLAS_PREFER_HIPBLASLT or LD_PRELOAD. The image sets them correctly.
volumes:
- .:/workspace/Apollo:ro
- ${WORK_DIR:-./work}:/work
- ${HF_CACHE:-/home/lk/.cache/huggingface}:/hf-cache
- ${MIOPEN_CACHE:-./.cache/miopen}:/miopen-cache
stdin_open: true
tty: true
command: ["sleep", "infinity"]
|