rl-post-training
Run and troubleshoot RD-Agent RL post-training and AutoRL-Bench experiments with explicit model, benchmark, workspace, grading, and backend evidence.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- rl-post-training
- license
- MIT
- metadata
- { "disco-role": "operating", "parent-skill": "rd-agent" }
- description
- Run and troubleshoot RD-Agent RL post-training and AutoRL-Bench experiments with explicit model, benchmark, workspace, grading, and backend evidence.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档references/benchmark-contract.md1.2 KB
- 脚本scripts/check_rl_paths.py1006 B
03 SKILL.md 正文
RD-Agent RL post-training
Use this sub-skill for rdagent RL post-training, autorl_bench, agent-driven GRPO/RL experiments, benchmark grading servers, and result collection.
Pick the surface
RL post-training loop
The application entry point accepts a base model, benchmark, step/loop counts, and an overall timeout. The implementation can evaluate a baseline during scenario initialization and then run iterative training. Make the model/data directories and backend explicit before launching:
python rdagent/app/rl/loop.py \
--base-model <model-name> \
--benchmark <benchmark> \
--loop-n 1 \
--timeout <bounded-duration>
Use the active CLI help or module source to confirm optional flags. The scenario may need GPU, Docker/conda environments, model weights, and benchmark data.
AutoRL-Bench
Probe without running a benchmark:
python -m rdagent.scenarios.rl.autorl_bench.run --help
A real run requires an agent id, task, base model, and timeout. It may download model/data assets and starts a local grading server:
python -m rdagent.scenarios.rl.autorl_bench.run \
--agent example_agent \
--task gsm8k \
--model <huggingface-model-id> \
--timeout <seconds> \
--port <free-local-port>
Use example_agent and a tiny supported task only as a pipeline smoke test when the required assets are already available; do not call a long run a smoke test if it downloads gigabytes or trains a model.
Workspace and result contract
Each AutoRL-Bench run gets an isolated workspace under the scenario workspace root. The runner prepares model/data links, starts a grading server, records baseline and submissions, writes run logs and scores, and appends a summary row to results.csv. Preserve the workspace path, run.log, agent.log, scores.json, baseline, best score, submission count, timeout, and success flag.
Important environment/configuration signals include AUTORL_FILE_PATH, AUTORL_RDAGENT_ROOT, SMITH_BENCH_DIR, and provider variables for the driver agent. The default resource root is a git-ignored git_ignore_folder/rl_files relative to the checkout; override it rather than storing weights in source control.
Backend and data boundaries
- Model execution and realistic training normally require CUDA, compatible PyTorch/TRL/vLLM/OpenCompass-style dependencies, and enough disk.
- Some benchmarks require extra packages or Java; install only the benchmark-specific requirements for the selected task.
- Missing
SMITH_BENCH_DIRcan produce an empty Smith registry warning. Confirm registry discovery before interpreting it as “no benchmark.” - Interrupts should terminate the whole child process group and preserve the workspace; inspect logs before restarting on a new port.
Read benchmark-contract.md and the parent troubleshooting guide before a run.
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).