Framework for training tool-using LLM agents
Top 82.7% on SourcePulse
Verl-Tool is a framework for training tool-using agents, built upon the verl
RL library. It enables large language models to interact with external tools through a unified API, facilitating complex task execution and providing a flexible "tool-as-environment" paradigm for reinforcement learning.
How It Works
Verl-Tool decouples RL training from tool interaction by integrating a tool server. The core modification is in verl
's ActorRolloutRefWorker
, which is extended to delegate agent rollout to an AgentActorManager
. This manager orchestrates multi-turn interactions between the LLM and the tool server, allowing the LLM to call tools and receive observations. This design simplifies adding new tools and supports asynchronous rollout generation for improved efficiency.
Quick Start & Requirements
uv
.
git submodule update --init --recursive
uv sync
source .venv/bin/activate
uv pip install -e verl
uv pip install -e ".[vllm,acecoder,torl,search_tool]"
uv pip install "flash-attn<2.8.0" --no-build-isolation
uv
, git
, vLLM
, flash-attn
. GPU acceleration is highly recommended for training and inference.Highlighted Details
Maintenance & Community
Licensing & Compatibility
verl
library is Apache 2.0 licensed. Compatibility for commercial use or closed-source linking would require clarification on the specific license of verl-tool
.Limitations & Caveats
verl
submodule.verl-tool
itself is not clearly stated, which could impact commercial adoption.1 day ago
1 week