Flexible, efficient reinforcement learning post-training for LLMs
open sourceApache-2.0free
verl (Volcano Engine Reinforcement Learning for LLMs) is an open source library for post-training large language models with reinforcement learning, the open source version of the HybridFlow paper. Its hybrid-controller programming model lets you build RL dataflows such as PPO and GRPO in a few lines, it plugs into existing training and inference stacks (FSDP, Megatron-LM, vLLM and SGLang) and Hugging Face models, and it maps models flexibly onto GPUs, resharding between training and generation with its 3D-HybridEngine. It was started by ByteDance's Seed team and is maintained by the verl community.
Problems it solves
- train a reasoning model with GRPO or PPO on my own GPUs
- run reinforcement learning from human feedback on an open-weight LLM
- scale RL post-training of a large MoE model across a GPU cluster
Features
- RL post-training for LLMs: PPO, GRPO and more
- hybrid-controller programming model for RL dataflows
- FSDP and Megatron-LM training backends
- vLLM and SGLang rollout
- Hugging Face model support
- 3D-HybridEngine resharding between training and generation
Alternatives
The same job
These do what verl does.
- TRL A comprehensive library to post-train foundation models
- OpenRLHF Scalable RLHF and agentic RL framework on Ray and vLLM
- TinyZero Minimal reproduction of DeepSeek R1-Zero reinforcement learning on small models
- Colossal-AI PyTorch library for distributed training, fine-tuning and inference of large AI models
- Unsloth Run and train AI models on your own local hardware via an open-source UI
- ms-swift Fine-tune, align, evaluate, quantize and deploy 600+ LLMs and 400+ multimodal models