← Back to Leaderboard
RKMnO4-zx

KMnO4-zx/Rondo-RL

A PyTRIO-backed GRPO loop for training models through real coding-agent harnesses

View on GitHub ↗
Engineering Health (Methodology)
B+ · 67/100
Maintenance Activity
● Updated today
Latest Release
Rolling commits (main)
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption1/25
Release Cadence11/20
License Clarity20/20
DockerCLIGPU
Total Stars
★ 20
24h Growth
+1
7d Growth
+1
Forks
0

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

KMnO4-zx/Rondo-RL Star History (2026-11-30 - 2026-12-04) DAILY STAR HISTORY (5-DAY D1 TELEMETRY) +19 in 4d · avg +5/day 24 12 0 2026-11-30: ★ 12026-12-01: ★ 152026-12-02: ★ 192026-12-03: ★ 192026-12-04: ★ 20 ★ 20 11-30 12-02 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Rondo-RL is a Python orchestration layer for training policies through real coding-agent harnesses. The rondo.train entrypoint starts a gateway; the harness interacts with the task environment, PyTRIO supplies model responses, and patch-test results become reward signals. PyTRIO performs both sampling and policy updates. Rondo coordinates the loop and turns generated tokens and their sampling log probabilities into GRPO samples rather than implementing its own training backend.

The importable code lives under src/ in rondo and pytrio_shim. The manifest requires Python 3.11+ and pytrio>=0.2.10, and lists FastAPI, Uvicorn, HTTPX, PyYAML, and SwanLab. Extension is via code: harness.py has five launch functions to use as integration examples, while eval.py is the starting point for changing patch scoring without replacing the training loop.

Key Capabilities & Differentiators

The shared loop integrates Codex, Claude Code, pi, OpenCode, and DeepSeek Harness. The concrete demonstration is narrower than the adapter list: Qwen3.5-4B uses Codex to propose patches on SWE-Gym, tests score the patches, and GRPO updates the policy. For each model response, a single PyTRIO sampling call returns the generated tokens with their log probabilities, so constructing training samples does not require a separate pass to recover those sampling values.

The rollout-only entrypoint separates baseline collection from weight updates: the documented --sessions 4 invocation samples four tasks with four independent attempts per task. The default training configuration instead takes four new tasks per step, runs 16 attempts per task, and covers 240 tasks in 60 steps. Per-step output preserves patches and test results for inspection; checkpoints.jsonl records weight locations when checkpoints are saved. These are workload and artifact details, not evidence of training gains.

Trade-offs & Limitations

The reported core is 1,577 Python lines, including comments and blank lines but excluding external harness implementations. That makes the orchestration code relatively small to inspect, but the count does not capture the system operated end to end: PyTRIO owns the sampling and training path, while local harness runtimes and Docker images still need provisioning. Choose this scope if you want to modify harness behavior or rewards, not if you need the repository itself to provide a self-hosted trainer.

Reusing sampling log probabilities is not a differentiator on its own: verl's Bypass mode and AReaL's synchronous PPO can also reuse them. In a decoupled setup that recomputes proximal-policy log probabilities, the extra work is a no-gradient forward pass over the same tokens, not another harness run. The practical decision is where you want control: Rondo-RL keeps harness integration and scoring in a small codebase while delegating the backend. Apache-2.0 covers Rondo-RL; external services and artifacts require their own terms review.

Hardware & Deployment Guide

The example requires x86_64 Linux with glibc, uv, Docker with access for the current user, and Node.js 22 with npm. The project is run as scripts rather than installed as a package: use uv sync --frozen, authenticate with uv run trio login, and run the modules with PYTHONPATH=src. rondo.harness downloads the harnesses and runtimes; examples/swegym_grpo/prepare.py prepares the task list and pulls task images. The preparation step supports --limit 8 for a smaller trial.

Local capacity goes to harness containers, task images, and patch testing; remote PyTRIO compute handles model sampling and training. Size local CPU, RAM, and storage against task concurrency and image footprint rather than treating the model size as a local VRAM requirement. SwanLab logs online by default and can be switched to offline mode, which does not remove the PyTRIO dependency. The manifest is at version 0.1.0, with no published GitHub release listed.

Harness coverage: One training loop integrates Codex, Claude Code, pi, OpenCode, and DeepSeek Harness.
Sampling contract: A PyTRIO sampling call returns generated tokens and their log probabilities together for GRPO.
Baseline collection: rondo.rollout --sessions 4 collects and scores four attempts on each of four SWE-Gym tasks without updating the model.
Training schedule: The SWE-Gym example uses four new tasks per step, 16 attempts per task, and 60 steps across 240 tasks.
Run inspection: Per-step artifacts include patches and test output, while checkpoints.jsonl records saved weight locations.
Compute split: Harness execution and patch tests run locally with Docker, while PyTRIO handles remote sampling and training.
Best For

Agentic RL research that needs test-scored coding rollouts, inspectable patches and traces, and a shared loop for several harnesses, with PyTRIO handling sampling and training.

Skip If

You need fully offline or self-hosted training, a standalone inference server, or an evaluation tool that avoids provisioning Docker task images and harness runtimes.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerCLIGPU
git clone https://github.com/KMnO4-zx/Rondo-RL.git
cd Rondo-RL
uv sync --frozen
uv run trio login
uv run swanlab login  # 默认在线记录训练曲线,swanlab.mode 设为 offline 时可跳过
PYTHONPATH=src uv run python -m rondo.harness  # 下载 Codex 等 harness 和运行时

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
Rondo-RL ★20+1PythonApache-2.0A PyTRIO-backed GRPO loop for training models through real coding-agent harnesse
minimind75.4k+3.1kPythonApache-2.0Native PyTorch dense and MoE models for end-to-end LLM training on local GPUs
autoresearch101k+342Python—Single-GPU nanochat harness for agent-led, five-minute training experiments
LlamaFactory76.4k+86PythonApache-2.0A 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/KMnO4-zx/Rondo-RL.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

KMnO4-zx/Rondo-RL Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about Rondo-RL

Where do I integrate a new harness or change the reward?

Use one of the five launch functions in harness.py as a reference and reuse the training loop. Keep the sampling interface intact: PyTRIO returns generated tokens and their log probabilities together, and Rondo uses both in GRPO samples. If only patch scoring needs to change, start with eval.py instead.

Do I need a local GPU, and what should I size the host for?

The demonstrated workflow runs sampling and training remotely through PyTRIO, so local GPU capacity is not a stated requirement. Size the local x86_64 Linux host for concurrent harness sessions and test jobs, and budget disk space for Docker images and run artifacts. No exact CPU, RAM, disk, or VRAM figures are provided.

Can I use it commercially or run the whole stack on my own infrastructure?

Rondo-RL uses Apache-2.0, which permits commercial use subject to its license conditions. That license does not determine the terms of external harnesses, models, datasets, container images, or PyTRIO. The example keeps harness execution and patch testing local but relies on remote PyTRIO compute; offline SwanLab logging does not make it an offline or fully self-hosted training stack.

When should I pick Rondo-RL over verl or AReaL?

Choose Rondo-RL if the experiment needs one loop for real coding-agent harnesses and you are comfortable delegating the training backend to PyTRIO. Do not choose it solely to reuse rollout log probabilities: verl's Bypass mode and AReaL's synchronous PPO can reuse them too. If recomputing proximal-policy log probabilities in a decoupled setup, the extra work is a no-gradient forward pass on the same tokens, not another harness run.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining KMnO4-zx/Rondo-RL? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature KMnO4-zx/Rondo-RL on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare