KMnO4-zx/Rondo-RL
A PyTRIO-backed GRPO loop for training models through real coding-agent harnesses
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
rondo.rollout --sessions 4 collects and scores four attempts on each of four SWE-Gym tasks without updating the model.checkpoints.jsonl records saved weight locations.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.
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.
Quick Start & Installation
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 →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| Rondo-RL ★ | 20 | +1 | Python | Apache-2.0 | A PyTRIO-backed GRPO loop for training models through real coding-agent harnesse |
| minimind | 75.4k | +3.1k | 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/KMnO4-zx/Rondo-RL.md
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?
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?
Can I use it commercially or run the whole stack on my own infrastructure?
When should I pick Rondo-RL over verl or AReaL?
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