OpenPipe/ART

Agent Reinforcement Trainer: train multi-step agents for real-world tasks using GRPO. Give your agents on-the-job training. Reinforcement learning for Qwen3.6, GPT-OSS, Llama, and more!

What is ART?

ART (Agent Reinforcement Trainer) is an open-source framework that lets you train AI agents to get better at multi-step tasks through reinforcement learning — meaning the model learns from its own successes and failures rather than from pre-labeled examples.

It's built around GRPO, a reinforcement learning algorithm, and is designed to slot into existing Python applications with minimal disruption.

How it works

ART splits into two parts:

  • Client — a Python library you add to your own code. It speaks the same language as OpenAI's API, so you can swap it in easily. Your code sends messages to the model and receives completions through this client.
  • Server — runs separately on any machine with a GPU. It handles both the inference (generating the model's responses) and the training (improving the model). You don't have to manage the GPU infrastructure yourself.

The training loop has two phases:

  1. Inference — Your code runs an agentic workflow (a task with multiple steps). Each request goes to the server, which runs the model's latest lightweight update (called a LoRA) using the vLLM inference engine. Every message exchanged is recorded in a Trajectory — a complete log of that run. When a run finishes, your code assigns a reward (a score) reflecting how well the agent performed.

  2. Training — Once runs are done, their trajectories are bundled and sent to the server. The server trains the model using GRPO, starting from the latest checkpoint. It saves the improved LoRA, loads it back into vLLM, and unblocks inference. The cycle repeats for a set number of iterations.

What you can do with it

The README includes example notebooks showing agents learning to:

  • Play 2048, Tic Tac Toe, and Codenames
  • Search emails (an agent that reportedly outperformed OpenAI's o3 on email retrieval)
  • Use MCP servers (a standard way for models to call external tools)
  • Solve logic puzzles like Temporal Clue
  • Distill a large model's text-to-SQL skills into a smaller one
  • Summarize documents (using supervised fine-tuning first, then RL)

Serverless option

ART also offers W&B Training (Serverless RL) — a hosted service that manages all the training and inference infrastructure for you. The README claims it's 40% cheaper (by sharing a production inference cluster), 28% faster (scaling to 2000+ concurrent requests), and requires zero DevOps — every checkpoint is instantly deployable via W&B Inference.

Practical details

  • Install: pip install openpipe-art
  • Compatibility: Works with most models supported by vLLM/HuggingFace and Unsloth (Gemma 3 is noted as not currently supported)
  • Integrations: Works with W&B, Langfuse, and OpenPipe for monitoring and debugging
  • License: Apache-2.0
  • Credits: Built on top of Unsloth, vLLM, trl, and torchtune

Bottom line

ART is a tool for developers who want their LLM-based agents to improve over time on real tasks — not just follow instructions, but learn which sequences of actions lead to good outcomes. It abstracts away most of the RL complexity, letting you focus on defining the task, the environment, and the reward function.

Related

  • Project
  • Project
  • Project
  • Project
  • Project