From 89897f2df57d94bfaf8939b928115106e0b9f85f Mon Sep 17 00:00:00 2001 From: krescent Date: Mon, 3 Nov 2025 14:57:58 +0800 Subject: [PATCH] Update installation.md add podman-compose deploy, fix directory issue, using /root may cause "SELinux relabeling of /root is not allowed" error in some OS. --- docs/en/get_started/installation.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/docs/en/get_started/installation.md b/docs/en/get_started/installation.md index a77fb8557a..633bdc3233 100644 --- a/docs/en/get_started/installation.md +++ b/docs/en/get_started/installation.md @@ -69,10 +69,34 @@ docker run -it \ --ipc=host \ --network=host \ --shm-size 32G \ - -v /root:/workspace \ + -v ./workspace:/workspace \ rocm/pytorch:latest #Once inside the container, install LMDeploy with ROCm support: LMDEPLOY_TARGET_DEVICE=rocm pip install git+https://github.com/InternLM/lmdeploy.git ``` + +If you are using podman with podman-compose: +``` +services: + pytorch-rocm: + image: docker.io/rocm/pytorch:latest + container_name: pytorch-rocm + stdin_open: true + tty: true + shm_size: 32G + ipc: host + network_mode: host + cap_add: + - SYS_PTRACE + security_opt: + - seccomp=unconfined + devices: + - /dev/kfd:/dev/kfd + - /dev/dri:/dev/dri + group_add: + - video + volumes: + - ./workspace:/workspace:Z +```