Installation Guide
This guide will help you set up rLLM on your system.
Prerequisites
Starting with v0.2.1, rLLM's recommended dependency manager is uv. To install uv, run:
rLLM requires python>=3.10, but certain beckends may require a newer installation (e.g., tinker requires python>=3.11). Ensure that your system has a suitable installation of Python:
Basic Installation
The following will perform a minimal installation of rLLM:
rLLM supports multiple backends for training, including verl and tinker, which need to be installed separately.
To train with tinker on a CPU-only machine, run:
To train with verl on a GPU-equipped machine with CUDA 12.8, run:
The
verlextra installs vLLM by default. If you'd rather use SGLang to sample rollouts, you can install it withuv pip install sglang --torch-backend=cu128.rLLM with verl supports alternative hardware accelerators, including AMD ROCm and Huawei Ascend. For these platforms, we strongly recommend installing rLLM on top of verl's official Docker containers for ROCm (here) and Ascend (here).
Activating your environment
Be sure to activate the virtual environment before running a job:
Editable Verl Installation
If you wish to make changes to verl, you can do an editable install:
Optional Extras
rLLM provides additional optional dependencies for specific agent domains and framework integrations. For example:
- web: Tools for web agents (BrowserGym, Selenium).
- code-tools: Sandboxed code execution (E2B, Together).
- smolagents: Integration with Hugging Face's smolagents.
See the full list of managed extras here.
Installation without uv
While rLLM can also be installed without uv (i.e., just using pip), it is not recommended and may cause issues if you don't have a compatible PyTorch or CUDA version preinstalled:
Installation with Docker 🐳
For a containerized setup, you can use Docker:
# Build the Docker image
docker build -t rllm .
# Create and start the container
docker create --runtime=nvidia --gpus all --net=host --shm-size="10g" --cap-add=SYS_ADMIN -v .:/workspace/rllm -v /tmp:/tmp --name rllm-container rllm sleep infinity
docker start rllm-container
# Enter the container
docker exec -it rllm-container bash
For more help, refer to the GitHub issues page.