Overview of verl-agent for LLM Agent Training
masterWhat is verl-agent?
verl-agent is an extension of veRL designed specifically for training Large Language Model (LLM) agents using Reinforcement Learning (RL).
Core Capabilities
- Step-Independent Multi-turn Rollouts: Unlike methods that concatenate full interaction histories,
verl-agentuses a step-independent mechanism. This allows for fully customizable per-step input structures, history management, and memory modules. - Scalability: Because it constructs inputs step-by-step rather than growing a single massive context window, it is highly scalable for long-horizon tasks (e.g., 30–50 steps in ALFWorld) without hitting token limits.
- Memory Management: Features a customizable memory module that lets developers define what to include in each step (e.g., recent steps, key events, or summaries).
- Environment Support: Supports parallelized Gym-style environments and "Group Environments" (where multiple rollouts share the same initial state), which is critical for algorithms like GRPO and DAPO.
- Model & Modality Support: Compatible with models like
Qwen3,Qwen3-VL,Qwen2.5, andLLaMA3.2. It supports both text-only and multi-modal (text + image) agents. - Efficient Training: Supports LoRA (Low-Rank Adaptation) to reduce computational costs (e.g., training 7B models on 2 H100 GPUs).