ART README

The project's README from github.com/OpenPipe/ART. As one markdown file: README.md.

ART logo

Agent Reinforcement Trainer

Train multi-step agents for real-world tasks using GRPO.

PRs-Welcome PyPI version Train Agent

Join Discord Documentation

🚀 W&B Training: Serverless RL

W&B Training (Serverless RL) is the first publicly available service for flexibly training models with reinforcement learning. It manages your training and inference infrastructure automatically, letting you focus on defining your data, environment and reward function—leading to faster feedback cycles, lower costs, and far less DevOps.

✨ Key Benefits:

# Before: Hours of GPU setup and infra management
# RuntimeError: CUDA error: out of memory 😢

# After: Serverless RL with instant feedback
from art.serverless.backend import ServerlessBackend

model = art.TrainableModel(
  project="voice-agent",
  name="agent-001",
  run_name="agent-001",
  base_model="Qwen/Qwen3.6-27B"
)

backend = ServerlessBackend(
    api_key="your_wandb_api_key"
)
model.register(backend)
# Edit and iterate in minutes, not hours!

📖 Learn more about W&B Training →

ART Overview

ART is an open-source RL framework that improves agent reliability by allowing LLMs to learn from experience. ART provides an ergonomic harness for integrating GRPO into any python application. For a quick hands-on introduction, run one of the notebooks below. When you're ready to learn more, check out the docs.

📒 Notebooks

Agent Task Example Notebook Description Comparative Performance
ART•E [Serverless] 🏋️ Train agent Qwen 3.6 27B learns to search emails using RULER benchmarks
2048 [Serverless] 🏋️ Train agent Qwen 3.6 27B learns to play 2048 benchmarks
ART•E LangGraph 🏋️ Train agent Qwen 2.5 7B learns to search emails using LangGraph [Link coming soon]
MCP•RL 🏋️ Train agent Qwen 2.5 3B masters the NWS MCP server [Link coming soon]
Temporal Clue 🏋️ Train agent Qwen 2.5 7B learns to solve Temporal Clue [Link coming soon]
Tic Tac Toe 🏋️ Train agent Qwen 2.5 3B learns to play Tic Tac Toe benchmarks
Codenames 🏋️ Train agent Qwen 2.5 3B learns to play Codenames benchmarks
AutoRL [RULER] 🏋️ Train agent Train Qwen 2.5 7B to master any task [Link coming soon]
Distillation (SFT) 🏋️ Train model Distill text-to-SQL from Qwen 3 235B to Qwen 3.6 27B [Link coming soon]
Summarizer (SFT + RL) 🏋️ Train model Train a document summarizer with SFT warmup then RL [Link coming soon]
SFT from a dataset 🏋️ Train model Fine-tune Qwen 3.6 27B on text-to-SQL from a dataset [Link coming soon]

📰 ART News

Explore our latest research and updates on building SOTA agents.

📖 See all blog posts →

Why ART?

Installation

ART agents can be trained from any client machine that runs python. To add to an existing project, run this command:

pip install openpipe-art

🤖 ART•E Agent

Curious about how to use ART for a real-world task? Check out the ART•E Agent blog post, where we detail how we trained Qwen 2.5 14B to beat o3 at email retrieval!

🔁 Training Loop Overview

ART's functionality is divided into a client and a server. The OpenAI-compatible client is responsible for interfacing between ART and your codebase. Using the client, you can pass messages and get completions from your LLM as it improves. The server runs independently on any machine with a GPU. It abstracts away the complexity of the inference and training portions of the RL loop while allowing for some custom configuration. An outline of the training loop is shown below:

  1. Inference

    1. Your code uses the ART client to perform an agentic workflow (usually executing several rollouts in parallel to gather data faster).
    2. Completion requests are routed to the ART server, which runs the model's latest LoRA in vLLM.
    3. As the agent executes, each system, user, and assistant message is stored in a Trajectory.
    4. When a rollout finishes, your code assigns a reward to its Trajectory, indicating the performance of the LLM.
  2. Training

    1. When each rollout has finished, Trajectories are grouped and sent to the server. Inference is blocked while training executes.
    2. The server trains your model using GRPO, initializing from the latest checkpoint (or an empty LoRA on the first iteration).
    3. The server saves the newly trained LoRA to a local directory and loads it into vLLM.
    4. Inference is unblocked and the loop resumes at step 1.

This training loop runs until a specified number of inference and training iterations have completed.

🧩 Supported Models

ART should work with most vLLM/HuggingFace-transformers compatible causal language models, or at least the ones supported by Unsloth. Gemma 3 does not appear to be supported for the time being. If any other model isn't working for you, please let us know on Discord or open an issue on GitHub!

🤝 Contributing

ART is in active development, and contributions are most welcome! Please see the CONTRIBUTING.md file for more information.

📖 Citation

@misc{hilton2025art,
  author = {Brad Hilton and Kyle Corbitt and David Corbitt and Saumya Gandhi and Angky William and Bohdan Kovalevskyi and Andie Jones},
  title = {ART: Agent Reinforcement Trainer},
  year = {2025},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/openpipe/art}}
}

⚖️ License

This repository's source code is available under the Apache-2.0 License.

🙏 Credits

ART stands on the shoulders of giants. While we owe many of the ideas and early experiments that led to ART's development to the open source RL community at large, we're especially grateful to the authors of the following projects:

Finally, thank you to our partners who've helped us test ART in the wild! We're excited to see what you all build with it.

ART (OpenPipe/ART)

langgraph
Searching Database…

10.8K ·GitHub
What is this?ART (Agent Reinforcement Trainer) is an open-source RL framework from OpenPipe that lets LLM agents learn from experience: you train multi-step agents for real-world tasks with GRPO.
Is ART a library I code against, or a service that trains models for me?Both halves: a Python client you embed in your app plus a separate training server. The client is OpenAI-compatible, so your code just exchanges messages while the server handles vLLM inference and GRPO training behind the scenes.
How do I get started with it?Add the pip package to any Python project, then run one of the example training notebooks — email search, 2048, Tic Tac Toe — before wiring up your own agent and reward function.
Which models can I train, and are there any it won't take?Most vLLM/HuggingFace-transformers-compatible causal models should work, including everything Unsloth supports — but Gemma 3 is not supported for now. Uncooperative models can be reported on GitHub or Discord.
Do I need my own GPU to train an agent?No. Run the client on your laptop and let the server kick off an ephemeral GPU-enabled environment (or use a local GPU); the managed W&B serverless option removes the infra entirely.
What is W&B Training (Serverless RL)?A managed service layered on ART — the first public service for training models with RL. It runs the training and inference infrastructure for you, with claimed 40% lower cost, 28% faster training, scale to 2000+ concurrent requests, and every checkpoint instantly available via W&B Inference.
What can I actually train an agent to do with it?The example notebooks cover email research (ART•E), games like 2048, Tic Tac Toe, Codenames and Temporal Clue, tool use on MCP servers (MCP•RL), and LangGraph agents. There are also SFT-only jobs, like distilling text-to-SQL from Qwen 3 235B down to Qwen 3.6 27B.
Does it work with LangGraph or MCP servers?Yes. ART integrates with LangGraph so you can train existing LangGraph agents with RL, and MCP•RL automatically trains models to use the tools of any MCP server.
Can I use it for plain supervised fine-tuning, not just RL?Yes — alongside RL it supports SFT: distillation from a larger model, fine-tuning from a dataset, and an SFT warmup stage before switching to RL, as shown in the dedicated notebooks.
What are similar projects?unsloth, halo, verl, ms-swift, verl, OpenClaw-RL, DeepAnalyze, NeoHorse
Creator
OpenPipe
Size
96 MB
Stars
10.8K
Age
1y
Commits · 90 Days