verl on ROCm installation#
2026-03-03
3 min read time
System requirements#
To use verl 0.6.0, you need the following prerequisites:
Install verl#
To install verl on ROCm, you have the following options:
Use the prebuilt Docker image (recommended)
Use a prebuilt Docker image with verl pre-installed#
The recommended way to set up a verl environment and avoid potential installation issues is with Docker. The tested, prebuilt image includes verl, PyTorch, ROCm, and other dependencies.
Prebuilt Docker images with verl configured for ROCm are available on Docker Hub.
Pull the Docker image
docker pull rocm/verl:verl-0.6.0.amd0_rocm7.0_vllm0.11.0.dev
Launch and connect to the Docker container
docker run --rm -it \ --name rocm_verl \ --device /dev/dri \ --device /dev/kfd \ --group-add video \ --cap-add SYS_PTRACE \ --security-opt seccomp=unconfined \ --privileged \ -p 8265:8265 \ -v "$HOME/.ssh:/root/.ssh" \ -v "$HOME:$HOME" \ --shm-size 128G \ -w "$PWD" \ rocm/verl:verl-0.6.0.amd0_rocm7.0_vllm0.11.0.dev \ /bin/bash
Build your own Docker image#
Clone the ROCm/verl repository
git clone https://github.com/ROCm/verl.git
Build the Docker container using the Dockerfile in the
verl/dockerdirectorycd verl docker build --build-arg VLLM_REPO=https://github.com/vllm-project/vllm.git \ --build-arg VLLM_BRANCH=4ca5cd5740c0cd7788cdfa8b7ec6a27335607a48 \ --build-arg VERL_REPO=https://github.com/ROCm/verl.git \ --build-arg VERL_BRANCH=0eb50ec4a33cda97e05ed8caab9c7f17a30c05a9 \ -f docker/Dockerfile.rocm7 -t my-rocm-verl .
Launch and connect to the container
docker run --rm -it \ --device /dev/dri \ --device /dev/kfd \ -p 8265:8265 \ --group-add video \ --cap-add SYS_PTRACE \ --security-opt seccomp=unconfined \ --privileged \ -v $HOME/.ssh:/root/.ssh \ -v $HOME:$HOME \ --shm-size 128G \ -w $PWD \ --name rocm_verl \ my-rocm-verl \ /bin/bash
Note
The
--shm-sizeparameter allocates shared memory for the container. It can be adjusted based on your system’s resources.
Test the verl installation#
Once connected to the Docker container, verify that verl is installed:
pip list | grep verl
verl 0.3.0.post0 /app