verl
volcengine / verl
字节跳动的 RL 训练框架:面向 LLM Agent 与推理任务,支持 PPO/GRPO 与多轮工具调用。ByteDance's RL training framework for LLM agents and reasoning tasks, with PPO/GRPO and multi-turn tool use.
为什么选Why choose it
- 为 Agentic RL 设计,能把工具调用轨迹纳入训练。Designed for Agentic RL; tool-use trajectories can enter training.
- 与 vLLM/SGLang 推理后端配合,rollout 吞吐高。Works with vLLM/SGLang inference backends for high rollout throughput.
- 支持多机多卡与异步训练。Supports multi-node, multi-GPU and asynchronous training.
不适合Not for
只做 SFT,不需要这么重的 RL 栈。SFT-only work does not need this heavy RL stack.
环境与奖励设计仍要自己做,框架不替你定义任务。You still design the environment and reward; the framework does not define your task.
最小上手Minimum setup
- 从示例环境跑一个单步任务,确认 rollout 与 reward 能通。Run a single-step task from the example environment to verify rollout and reward.
- 加一个多轮工具调用任务,记录轨迹长度与失败类型。Add a multi-turn tool-use task and record trajectory length and failure types.
- 先在 1 个节点跑通再扩多机,避免一上来调分布式。Get one node working before scaling multi-node; do not debug distributed first.
依赖与成本Dependencies and cost
Python + PyTorch/CUDA;rollout 需要 vLLM/SGLang;多机要 Ray 或 Slurm。Python + PyTorch/CUDA; rollout needs vLLM/SGLang; multi-node needs Ray or Slurm.
许可与使用边界License and usage boundaries
代码 Apache-2.0;模型、环境与数据各有许可。Code is Apache-2.0; models, environments and data carry their own licenses.
开源不等于可商用:GPL / AGPL 有传染性;代码许可、模型许可、生成内容许可要分开看。上线前读仓库 LICENSE 与模型卡,必要时让法务确认。Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.
替代与相邻Alternatives and neighbors
- OpenRLHF — 规模 / 性能Scale / performance,基于 Ray + vLLM 的 RLHF 训练框架:PPO、GRPO、DPO、KTO 与多机多卡编排。A Ray + vLLM RLHF framework: PPO, GRPO, DPO, KTO and multi-node orchestration.
- TRL — 生产可用Production,Hugging Face 的强化学习与对齐训练库:SFT、DPO、PPO、GRPO、奖励模型都能接。Hugging Face's RL and alignment training library: SFT, DPO, PPO, GRPO and reward models.
下一步Next steps
- 打开 GitHub,先读 README、LICENSE、最近 release 与 issue。Open GitHub and read the README, LICENSE, latest release and issues first.
- 按“部署依赖 / 显存 / 数据 / 网络 / 权限”列一张上手清单。Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
- 用一个小样本跑通,再决定是否进生产;不要直接上生产数据。Run a small sample first, then decide on production; never start with production data.
GitHub 仓库 ↗GitHub repository ↗ 文档 ↗Docs ↗ 加入对比Add to compare