rllm-org/rllm
Agent RL orchestration with shared evaluation and interchangeable training backends
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
rLLM puts an agent rollout and evaluation layer in front of the training backend. The workflow engine runs agent instances in parallel, and a model gateway routes calls by session URL and records token IDs and logprobs. Its data model separates the task (Episode), individual agent run (Trajectory), and model call (Step). An evaluator scores the outcome, then a transform pipeline groups trajectories for advantage computation before the backend updates the policy.
The Python package depends directly on rllm-model-gateway, which also has its own root-level directory. The public integration seam is @rllm.rollout for execution and @rllm.evaluator for rewards, both passed to AgentTrainer. An OpenAI client can use config.base_url to reach the training gateway, allowing evaluation and training to reuse the same agent logic. The manifest includes Click and Rich for the CLI, Pydantic and Hydra Core for data and configuration, and datasets and PyArrow for data handling.
Key Capabilities & Differentiators
The framework supports more than ten CLI harnesses, including Claude Code, Codex, and mini-swe-agent, as well as Harbor-compatible task directories. Python integrations include LangGraph and the OpenAI Agents SDK. Task execution can use Docker, Daytona, Modal, or a local environment, with snapshots and warm pools to reduce repeated environment setup. The CLI integrates more than 60 benchmarks across math, code, QA, and vision-language tasks, including GSM8K, Terminal-Bench 2.0, and SWE-bench.
verl provides the distributed multi-GPU path with vLLM or SGLang for generation. Tinker offers a single-machine client path to the Tinker API, and Fireworks provides a hosted training path. The listed methods include GRPO, REINFORCE, RLOO, SFT, and on-policy distillation. The common trainer interface simplifies switching backends, but it does not establish that every method and model works on all three; validate the exact combination before committing a training budget.
Trade-offs & Limitations
Compared with using verl directly, rLLM adds reusable agent execution, trace capture, and reward evaluation. Those layers pay off when the agent has multiple model calls or must run across task environments. If the training loop already has clean rollouts and rewards, direct verl removes integration points. For serving-only workloads, vLLM or SGLang is a better fit: rLLM coordinates generation for training rather than replacing an inference server.
Sandbox warm pools can reduce startup overhead, but parallel agent runs still consume environment capacity, model tokens, and evaluator time. Self-hosting gives you control over GPU scheduling; hosted APIs reduce cluster operations but introduce provider credentials, usage costs, and data-handling decisions. Benchmark auto-fetch and the Docker build both require network access as written, so an offline setup needs pre-staged assets and a local training path. Before commercial redistribution, resolve the mismatch between Apache-2.0 repository metadata and the MIT classifier in pyproject.toml against the actual LICENSE file.
Hardware & Deployment Guide
Use Python 3.11 or newer for the documented installation path, especially if using Tinker. The package metadata allows Python 3.10, but the Tinker dependency is gated on 3.11+. The CLI path starts with rllm model setup and rllm eval gsm8k; move to rllm train gsm8k once the provider and evaluation path are verified. Use the verl extra for self-hosted GPU training or the Tinker and Fireworks API paths if you do not want to operate the training cluster.
The Dockerfile starts from verlai/verl:vllm011.latest, checks out verl v0.6.1, installs both projects in editable mode, and adds Playwright with Chromium. It clones rLLM without pinning a revision, so pin that checkout and the base image before relying on repeatable builds. Review the example's host networking and SYS_ADMIN grant before using it on shared infrastructure. Release v0.2.1 introduced the Tinker backend, VLM training, and a preview SDK; v0.3.0-pre added on-policy distillation and explicit finalization of the trainer's tracking logger.
@rllm.rollout.AgentTrainer exposes one interface for verl, Tinker, and Fireworks, while verl supports distributed multi-GPU training.rllm eval can fetch and run integrated benchmarks; @rllm.evaluator returns rewards and named signals.v0.3.0-pre.Teams with an existing agent and a measurable task reward that want to reuse evaluation code for RL, run rollouts across sandboxed tasks, and choose between self-hosted and API-backed training.
You only need an inference endpoint, already own a complete model-level RL pipeline, or cannot justify the cost of running and scoring agent rollouts.
Quick Start & Installation
uv pip install "rllm @ git+https://github.com/rllm-org/rllm.git"
Comparison vs. Top LLMs & Inference Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| rllm ★ | 5.9k | +2 | Python | Apache-2.0 | Agent RL orchestration with shared evaluation and interchangeable training backe |
| minimind | 75.5k | +3.2k | Python | Apache-2.0 | Native PyTorch dense and MoE models for end-to-end LLM training on local GPUs |
| autoresearch | 101k | +342 | Python | — | Single-GPU nanochat harness for agent-led, five-minute training experiments |
| LlamaFactory | 76.4k | +86 | Python | Apache-2.0 | A unified Python framework for LLM and VLM fine-tuning with pluggable inference |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/rllm-org/rllm.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about rllm
How do I connect an existing agent to the trainer?
@rllm.rollout, route model calls to config.base_url, and return an Episode with the artifacts your evaluator needs. Implement scoring with @rllm.evaluator, then pass both functions to AgentTrainer. The gateway captures token IDs and logprobs on the training path; validate that routing and reward calculation on a small batch before scaling.How much GPU memory and local compute should I budget?
verl, size GPUs around the chosen model and the concurrency of rollout generation and policy updates. Budget CPU, RAM, and shared memory separately when running many containerized or browser-backed tasks. A Tinker or Fireworks API path shifts training infrastructure off the local machine, but agent execution and evaluation still need resources wherever they run.Can I self-host rLLM for commercial use?
pyproject.toml declares an MIT classifier and points to LICENSE. Inspect LICENSE at the exact revision you intend to ship and resolve the discrepancy before commercial redistribution. Review model, dataset, harness, and hosted-provider terms separately; self-hosting the trainer does not settle those obligations.When should I choose rLLM over using verl or an inference server directly?
verl directly when your work is mainly model-level RL and you already own the rollout and reward pipeline. Add rLLM when you need to run existing agents across task environments, capture multi-step traces, and reuse evaluators across training and evaluation. If the requirement is only to serve a model, use an inference server such as vLLM or SGLang rather than this training framework.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy