FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

NovaSky-AI/verl-fork · GitHub

Repository files navigation

👋 Hi, everyone! verl is a RL training library initiated by ByteDance Seed team and maintained by the verl community.

verl: Volcano Engine Reinforcement Learning for LLMs

verl is a flexible, efficient and production-ready RL training library for large language models (LLMs).

verl is the open-source version of HybridFlow: A Flexible and Efficient RLHF Framework paper.

verl is flexible and easy to use with:

  • Easy extension of diverse RL algorithms: The hybrid-controller programming model enables flexible representation and efficient execution of complex post-training dataflows. Build RL dataflows such as GRPO, PPO in a few lines of code.

  • Seamless integration of existing LLM infra with modular APIs: Decouples computation and data dependencies, enabling seamless integration with existing LLM frameworks, such as FSDP, Megatron-LM, vLLM, SGLang, etc

  • Flexible device mapping: Supports various placement of models onto different sets of GPUs for efficient resource utilization and scalability across different cluster sizes.

  • Ready integration with popular HuggingFace models

verl is fast with:

  • State-of-the-art throughput: SOTA LLM training and inference engine integrations and SOTA RL throughput.

  • Efficient actor model resharding with 3D-HybridEngine: Eliminates memory redundancy and significantly reduces communication overhead during transitions between training and generation phases.

News

  • [2025/07] The first verl meetup will be held at ICML Vancouver on July 16th! Please join us if you are at ICML! (onsite only)
  • [2025/07] verl keynote at AWS AI Hours Singapore on 7/8, verl & verl-agent project updates at Agent for SWE meetup by LF AI & Data Singapore on 7/11.
  • [2025/06] verl with Megatron backend enables large MoE models such as DeepSeek-671b and Qwen3-236b.
  • [2025/06] verl team will provide latest project updates at PyTorch Day China on June 7th. Meet our dev team in Beijing!
  • [2025/04] Seed-Thinking-v1.5 tech report is released! Trained with verl, Seed-Thinking-v1.5 achieves 86.7 on AIME 2024, 55.0 on Codeforces and 77.3 on GPQA, demonstrating excellent reasoning abilities in STEM and coding. Beyond reasoning tasks, the method demonstrates notable generalization across diverse domains.
  • [2025/03] DAPO is the open-sourced SOTA RL algorithm that achieves 50 points on AIME 2024 based on the Qwen2.5-32B pre-trained model, surpassing the previous SOTA achieved by DeepSeek's GRPO (DeepSeek-R1-Zero-Qwen-32B). DAPO's training is fully powered by verl and the reproduction code is available in recipe/dapo now.
more...

Key Features

Upcoming Features and Changes

Getting Started

Documentation

Quickstart:

Running a PPO example step-by-step:

Reproducible algorithm baselines:

For code explanation and advance usage (extension):

Blogs from the community

Performance Tuning Guide

The performance is essential for on-policy RL algorithm. We have written a detailed performance tuning guide to help you optimize performance.

Upgrade to vLLM >= v0.8.2

verl now supports vLLM>=0.8.2 when using FSDP as the training backend. Please refer to this document for the installation guide and more information. Please avoid vllm 0.7.x, which contains bugs that may lead to OOMs and unexpected errors.

Use Latest SGLang

SGLang is fully supported with verl, and SGLang RL Group is working extensively on building unique features, including multi-turn agentic RL, VLM RLHF, server-based RL, and partial rollout. Please refer to this document for the installation guide and more information.

Upgrade to FSDP2

verl is fully embracing FSDP2! FSDP2 is recommended by torch distributed team, providing better throughput and memory usage, and is composible with other features (e.g. torch.compile). To enable FSDP2, simply use verl main and set the following options:

actor_rollout_ref.ref.strategy=fsdp2
actor_rollout_ref.actor.strategy=fsdp2
critic.strategy=fsdp2 
reward_model.strategy=fsdp2 

Furthermore, FSDP2 cpu offloading is compatible with gradient accumulation. You can turn it on to save memory with actor_rollout_ref.actor.fsdp_config.offload_policy=True. For more details, see verl-project/verl#1026

AMD Support (ROCm Kernel)

verl now supports FSDP as the training engine (Megatron support coming soon) and both integrates with vLLM and SGLang as inference engines. Please refer to this document for the installation guide and more information, and this document for the vLLM performance tuning for ROCm.

Citation and acknowledgement

If you find the project helpful, please cite:

@article{sheng2024hybridflow,
  title   = {HybridFlow: A Flexible and Efficient RLHF Framework},
  author  = {Guangming Sheng and Chi Zhang and Zilingfeng Ye and Xibin Wu and Wang Zhang and Ru Zhang and Yanghua Peng and Haibin Lin and Chuan Wu},
  year    = {2024},
  journal = {arXiv preprint arXiv: 2409.19256}
}

verl is inspired by the design of Nemo-Aligner, Deepspeed-chat and OpenRLHF. The project is adopted and contributed by Bytedance, Anyscale, LMSys.org, Alibaba Qwen team, Shanghai AI Lab, Tsinghua University, UC Berkeley, UCLA, UIUC, University of Hong Kong, ke.com, All Hands AI, ModelBest, JD AI Lab, Microsoft Research, StepFun, Amazon, LinkedIn, Meituan, Camel-AI, OpenManus, Xiaomi, NVIDIA research, Baichuan, RedNote, SwissAI, Moonshot AI (Kimi), Baidu, Snowflake, Skywork.ai, JetBrains, IceSword Lab, and many more.

Awesome work using verl

  • TinyZero: a reproduction of DeepSeek R1 Zero recipe for reasoning tasks
  • SkyThought: RL training for Sky-T1-7B by NovaSky AI team.
  • simpleRL-reason: SimpleRL-Zoo: Investigating and Taming Zero Reinforcement Learning for Open Base Models in the Wild
  • Easy-R1: Multi-modal RL training framework
  • OpenManus-RL: LLM Agents RL tunning framework for multiple agent environments.
  • rllm: async RL training with verl-pipeline
  • RAGEN: a general-purpose reasoning agent training framework
  • Search-R1: RL with reasoning and searching (tool-call) interleaved LLMs
  • ReSearch: Learning to Reason with Search for LLMs via Reinforcement Learning
  • Skywork-OR1: Skywork open reaonser series
  • ToRL: Scaling tool-integrated RL
  • Absolute Zero Reasoner: A no human curated data self-play framework for reasoning
  • verl-agent: A scalable training framework for long-horizon LLM/VLM agents, along with a new algorithm GiGPO
  • RL-Factory: An easy and efficient RL post-training framework for Agentic Learning
  • ReTool: ReTool: reinforcement learning for strategic tool use in LLMs. Code release is in progress...
  • verl-tool: An unified and easy-to-extend tool-agent training framework based on verl
  • PRIME: Process reinforcement through implicit rewards
  • MemAgent: MemAgent: Reshaping Long-Context LLM with Multi-Conv RL based Memory Agent
  • POLARIS: A Post-training recipe for scaling RL on Advanced Reasoning models
  • GUI-R1: GUI-R1: A Generalist R1-style Vision-Language Action Model For GUI Agents
  • DeepRetrieval: RL Training of Search Agent with Search/Retrieval Outcome
  • Code-R1: Reproducing R1 for Code with Reliable Rewards
  • DeepResearcher: Scaling deep research via reinforcement learning in real-world environments
  • VAGEN: Training VLM agents with multi-turn reinforcement learning
  • RM-R1: RL training of reasoning reward models
  • LUFFY: Learning to Reason under Off-Policy Guidance
  • DeepMath: DeepMath-103K data and series models for math reasoning
  • Entropy Mechanism of RL: The Entropy Mechanism of Reinforcement Learning for Large Language Model Reasoning
  • LLaSA-TTS-GRPO: TTS fine-tuning with GRPO optimization based on LLASA models
  • PF-PPO: Policy Filtration for PPO based on the reliability of reward signals for more efficient and robust RLHF.
  • RACRO: Build multi-modal reasoning models via decoupling it into query-conditioned captioning and text-only reasoning

and many more awesome work listed in recipe.

Contribution Guide

See contributions guide

Founded in 2023, ByteDance Seed Team is dedicated to crafting the industry's most advanced AI foundation models. The team aspires to become a world-class research team and make significant contributions to the advancement of science and society. You can get to know Bytedance Seed better through the following channels👇

---

We are HIRING! Send us an email if you are interested in internship/FTE opportunities in RL for agents.

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL