rlinf
Routes RLinf repository tasks for distributed reinforcement learning setup, embodied and agentic workflows, extension development, evaluation operations, and debugging.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- rlinf
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes RLinf repository tasks for distributed reinforcement learning setup, embodied and agentic workflows, extension development, evaluation operations, and debugging.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/package-overview.md4.9 KB
- 参考文档references/repo-provenance.md2.0 KB
- 参考文档references/repo-routing-metadata.json521 B
- 参考文档references/troubleshooting.md4.9 KB
- 脚本scripts/rlinf_public_api_snapshot.py4.6 KB
03 SKILL.md 正文
RLinf repo skill
Use this skill when a task asks about RLinf, a distributed reinforcement-learning stack for embodied agents, reasoning/agentic LLM workflows, SFT/offline RL, reward models, Ray/Hydra cluster execution, or RLinf-specific source extensions.
This skill is operational guidance. It is not permission to run long training, evaluation, Ray cluster lifecycle commands, Docker builds, model/data downloads, robot motion, checkpoint conversion, or dataset mutation. Start with read-only inspection and ask for explicit approval before side-effecting or expensive work.
Fast start
- Read
references/package-overview.mdfor the architecture map and verified task/model/env routing constants. - Run
scripts/rlinf_public_api_snapshot.pyin the target environment when you need to verify the installed package version, imports, task types, model types, or env types. - Pick one sub-skill from the route table below. Most real tasks need exactly one primary sub-skill plus a setup or operations cross-link.
- Read
references/troubleshooting.mdwhen symptoms span install, Ray, config, optional backends, runtime logs, or ambiguous ownership. - Check
references/repo-provenance.mdbefore trusting this skill for a newer checkout; refresh when the commit, dirty state, package metadata, examples, docs, or public APIs changed.
Sub-skill route table
| User task signals | Read this sub-skill | What it covers |
|---|---|---|
install target, Docker vs UV, Ray start/status, RLINF_NODE_RANK, multi-node, cluster.num_nodes, component_placement, heterogeneous node groups, worker/channel/placement APIs |
setup-and-cluster |
Installation planning, non-mutating environment probes, Ray cluster setup, Hydra cluster config, execution modes, scheduler mental model, and placement troubleshooting. |
ManiSkill, LIBERO, RoboTwin, RoboCasa, Behavior, IsaacLab, Franka/real-world, OpenVLA/OFT/OpenPI/GR00T/DreamZero/StarVLA/Evo1, embodied PPO/GRPO/SAC/DAgger/RLT, reward data, offline RL, ROBOT_PLATFORM, MuJoCo/EGL |
embodied-workflows |
Embodied recipes, config preflight, simulator/model/asset requirements, real robot safety, reward data/offline/SFT intersections, and embodied troubleshooting. |
| math/VQA reasoning RL, Qwen/DeepSeek, GRPO/PPO with LLMs, SGLang/vLLM rollout, coding online RL, Continue integration, AgentLightning, SearchR1, rStar2, WideSeek-R1, SFT/VLM SFT, reward services | reasoning-agent-workflows |
Reasoning/agentic recipes, rollout backend and data prerequisites, config inspection, service/judge requirements, SFT/reward intersections, and agentic troubleshooting. |
add model/env/algorithm/reward/worker/runner, register_model, RLINF_EXT_MODULE, SupportedEnvType, policy loss/advantage registry, install/Docker/CI/docs/e2e updates, contributor policy |
extension-development |
Extension touchpoints, registries, source-edit recipes, distributed registration pitfalls, install/Docker/CI/docs checklists, style/tests, and contribution rules. |
| metrics, TensorBoard/W&B/SwanLab, checkpoints, resume, evaluations, profiling, auto-placement, parity/log analysis, replay buffers, checkpoint tools, CI test selection, NCCL/Gloo/CUDA/SGLang/EGL failures | operations-evaluation-debugging |
Evaluation planning, run artifact inspection, metric/checkpoint layout, resume, profiling, data/checkpoint utilities, CI/test choice, and runtime failure triage. |
Installation and readiness quick check
- First choose the smallest public install target: embodied workflows need an embodied model/env pair, reasoning/agentic workflows need the agentic stack plus a rollout engine/version choice, docs-only work needs only docs dependencies, and reproducible deployments may prefer the documented Docker image family.
- If the user is working in a live RLinf checkout, the
setup-and-clustersub-skill explains how to map that target to the repo-maintained installer selectors without running them by default. - After activating the chosen public environment, verify with
python -c "import rlinf; print(rlinf.__file__)",ray --version, and the bundledscripts/rlinf_public_api_snapshot.py. - Do not run install commands unless the user has approved environment mutation; use
setup-and-clusterto plan the minimum target first.
Repository-wide facts to verify first
- Public package/distribution:
rlinf, version0.4.0in the snapshot used to build this skill. - Core runtime: Ray for distributed processes; Hydra/OmegaConf for YAML composition; PyTorch for model/algorithm code.
- Confirmed task types:
embodied,embodied_eval,reasoning,reasoning_eval,coding_online_rl,sft, andoffline. - Confirmed training backends:
fsdpandmegatron. - Confirmed rollout backends:
sglangandvllm. - Full training/evaluation often needs GPUs or vendor accelerators, model checkpoints, simulator assets, datasets, services, or real hardware; read-only imports and static config checks are not full workflow validation.
Safe operating defaults
- Prefer static YAML inspection, environment probes, artifact audits, and narrow unit/static tests before native e2e or GPU jobs.
- Do not treat missing optional packages as a bug until the selected workflow and install target are known.
- Do not launch original repository examples or scripts as a skill-default action. Use bundled scripts for safe checks and ask before running user-provided launchers.
- When a workflow spans sub-skills, keep one owner: setup handles Ray/placement, task sub-skills handle configs/recipes, operations handles logs/checkpoints/evals, and extension handles source changes.
- For real robots, require explicit operator approval, calibrated hardware, workspace safety, and e-stop readiness before any motion or controller script.
Bundled root references and script
references/package-overview.md— architecture map, verified routing constants, run assembly flow, and sub-skill ownership.references/troubleshooting.md— cross-cutting symptom map and safe triage ladder.references/repo-provenance.md— source snapshot and refresh baseline.references/repo-routing-metadata.json— structured managed router metadata.scripts/rlinf_public_api_snapshot.py— read-only package/API snapshot helper.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).