EasyR1: An Efficient, Scalable, Multi-Modality RL Training Framework based on veRL
EasyR1: An Efficient, Scalable, Multi-Modality RL Training Framework based on veRL
https://github.com/user-attachments/assets/9b7033e8-f08a-4c3f-bd33-547896664e6e
This project is a clean fork of the original veRL project to support vision language models, we thank all the authors for providing such a high-performance RL training framework.
EasyR1 is efficient and scalable due to the design of HybirdEngine and the latest release of vLLM's SPMD mode.
Supported models
Supported algorithms
Supported datasets
Supported tricks
We provide a Dockerfile to easily build environments.
We recommend using the pre-built docker image in EasyR1.
docker pull hiyouga/verl:ngc-th2.8.0-cu12.9-vllm0.11.0
docker run -it --ipc=host --gpus=all hiyouga/verl:ngc-th2.8.0-cu12.9-vllm0.11.0If your environment does not support Docker, you can consider using Apptainer:
apptainer pull easyr1.sif docker://hiyouga/verl:ngc-th2.8.0-cu12.9-vllm0.11.0
apptainer shell --nv --cleanenv --bind /mnt/your_dir:/mnt/your_dir easyr1.sifUse USE_MODELSCOPE_HUB=1 to download models from the ModelScope hub.
* estimated
| Method | Bits | 1.5B | 3B | 7B | 32B | 72B |
|---|---|---|---|---|---|---|
| GRPO Full Fine-Tuning | AMP | 2*24GB | 4*40GB | 8*40GB | 16*80GB | 32*80GB |
| GRPO Full Fine-Tuning | BF16 | 1*24GB | 1*40GB | 4*40GB | 8*80GB | 16*80GB |
| GRPO LoRA Fine-Tuning | AMP | 1*12GB | 1*24GB | 2*32GB | 2*80GB | 4*80GB |
[!NOTE] Use
worker.actor.fsdp.torch_dtype=bf16andworker.actor.optim.strategy=adamw_bf16to enable bf16 training.
git clone https://github.com/hiyouga/EasyR1.git
cd EasyR1
pip install -e .bash examples/qwen2_5_vl_7b_geo3k_grpo.shbash examples/qwen3_vl_4b_geo3k_grpo_lora.shpython3 scripts/model_merger.py --local_dir checkpoints/easy_r1/exp_name/global_step_1/actor[!TIP] If you encounter issues with connecting to Hugging Face, consider using
export HF_ENDPOINT=https://hf-mirror.com.If you want to use SwanLab logger, consider using
bash examples/qwen2_5_vl_7b_geo3k_swanlab.sh.
Please refer to the example datasets to prepare your own dataset.
ray start --head --port=6379 --dashboard-host=0.0.0.0ray start --address=<head_node_ip>:6379ray statusbash examples/qwen2_5_vl_7b_geo3k_grpo.shSee the veRL's official doc for more details about multi-node training and Ray debugger.
We also reproduced the following two baselines of the R1-V project.
See baselines.md.
No open issues yet, or sync has not completed.