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"]