post-training-experiments
Plan and validate AReaL GRPO/PPO/SFT/DPO/RW experiments, Hydra-style overrides, trainer invocation, checkpoint/logging/recovery settings, and safe launch commands.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- post-training-experiments
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Plan and validate AReaL GRPO/PPO/SFT/DPO/RW experiments, Hydra-style overrides, trainer invocation, checkpoint/logging/recovery settings, and safe launch commands.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/config-api.md14.8 KB
- 参考文档references/experiment-workflows.md13.2 KB
- 参考文档references/troubleshooting.md9.8 KB
- 脚本scripts/validate_experiment_config.py32.0 KB
03 SKILL.md 正文
Post-Training Experiments
Use this sub-skill when the task is to set up or sanity-check AReaL post-training runs: GRPO, PPO, SFT, DPO, and reward-model training.
This sub-skill helps you:
- pick the right trainer/config pair
- validate YAML + Hydra-style overrides before launch
- plan safe launch commands for local, Ray, or Slurm execution
- choose logging, checkpointing, and recovery settings
- confirm backend/GPU budget compatibility at a planning level
When to use
- "run GRPO on GSM8K"
- "convert this PPO config"
- "validate a DPO YAML"
- "plan checkpoint/recovery settings"
- "figure out the right override syntax"
Do not use for
- custom datasets, reward functions, or rollout/workflow authoring →
../custom-data-rewards-workflows/SKILL.md - engine/backend internals, parallelism design, or NCCL/OOM debugging →
../distributed-engines-backends/SKILL.md - v2 service lifecycle, online RL sessions, or gateway operations →
../services-cli-operations/SKILL.md
Workflow
- Identify the experiment family and trainer.
- Validate the config with
scripts/validate_experiment_config.py. - Check the launcher choice and backend/GPU plan.
- Apply the command template from
references/experiment-workflows.md. - Verify logging, saver, and recover settings before launch.
- If the request moves into custom data, backend, or service work, hand off to the matching sibling skill.
Trainer map
- GRPO / PPO →
PPOTrainer - SFT →
SFTTrainer - DPO →
DPOTrainer - RW →
RWTrainer
GRPOConfig is the backward-compatible alias of PPOConfig.
Bundled references
references/config-api.md: config classes, override syntax, trainer/config mapping, migration notes, and validator output.references/experiment-workflows.md: experiment-family recipes, launch skeletons, logging/checkpoint/recovery, and safe preflights.references/troubleshooting.md: config, dataset/trainer, algorithm, runtime launch, and metric/checkpoint failure modes.scripts/validate_experiment_config.py: safe YAML/override parser and summary helper.
Practical rule
Do not launch training until the config validator passes and the family-specific constraints in the bundled references are satisfied.
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).