verl-agent is an extension of veRL, specifically for training LLM/VLM agents via reinforcement learning, and is also the official code for the paper "Group-in-Group Policy Optimization for LLM Agent Training" (NeurIPS 2025).
Main uses:
- Agent reinforcement learning training for long-horizon, multi-turn interactions.
- Supports text and vision-language agents, covering a variety of interactive environments.
Main capabilities:
- Step-independent multi-turn rollout mechanism: the per-step input structure, history management, and memory modules can all be customized, avoiding context bloat caused by concatenating the full history and keeping the context length nearly constant, making it suitable for long-horizon tasks of 30–50 steps.
- Customizable memory modules: SimpleMemory is provided by default, and developers can extend strategies such as dynamic summarization, selective retention, or external knowledge integration.
- Parallelized Gym-style environments and grouped environments: supports high-throughput rollouts; grouped environments share the same initial state on reset(), which facilitates algorithms such as GRPO and DAPO that require multiple samples from the same state, and the number of rollouts per group can be configured via env.rollout.n in ppo_trainer.yaml.
- Supports multiple models: Qwen3, Qwen3-VL, Qwen2.5, LLaMA3.2, Qwen2.5-VL, etc.
- LoRA fine-tuning: reduces computational cost and supports training 7B models on 2 H100 GPUs.
- Vision-language agent support: can be trained in multimodal environments that require visual perception and language understanding.
- Rich environment suite: Search-R1 experiments, ALFWorld, Sokoban, Gym Cards, WebShop, AppWorld (experimental), etc.
- Multiple RL algorithms: GRPO, PPO, DAPO, GSPO, RLOO, and GiGPO, with support for variants such as dynamic sampling and clip-higher.
Usage:
- veRL must be installed first, then dependencies installed separately per environment; using a separate conda environment for each environment is recommended to avoid package version conflicts.
- Provides out-of-the-box training scripts in the examples/ directory, covering different environments.
- Supports prompt-based GPT-4o agent examples.
- Custom environments require creating a gym-style interface and multiprocessing execution package under agent_system/environments/env_package/, defining prompt files under agent_system/environments/prompts, and registering them.
Applicable scenarios:
- Long-horizon multi-turn agent RL training and research.
- Text reasoning agents, vision game agents, embodied AI tasks, digital interface control tasks, etc.
- Long-horizon training that requires fine-grained credit assignment (GiGPO achieves this through two-level grouping at the episode level and the step level).
Limitations:
- Each environment must be installed and configured manually, and some environments have Python version requirements (e.g., WebShop requires Python <=3.10).
- AppWorld is experimentally supported.
- The local retrieval server (e.g., the Search environment) occupies about 6GB of GPU memory per GPU, which must be taken into account in the training configuration.
- GiGPO's performance improved slightly after the major update on 2025.06.03; reproducing the original paper's results requires using the version before that update.
- Specific pricing, cost, and similar information are not yet provided.