algorithm-recipes
Select and adapt PARL built-in reinforcement-learning algorithms and safe recipe skeletons.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- algorithm-recipes
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Select and adapt PARL built-in reinforcement-learning algorithms and safe recipe skeletons.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/algorithm-catalog.md10.4 KB
- 参考文档references/challenge-examples.md5.0 KB
- 参考文档references/tipc-reference.md4.7 KB
- 参考文档references/training-workflows.md9.3 KB
- 参考文档references/troubleshooting.md6.5 KB
- 脚本scripts/inspect_algorithm_catalog.py13.8 KB
03 SKILL.md 正文
PARL Algorithm Recipes
Use this sub-skill when a task asks which PARL algorithm to use, which parl.Model methods an algorithm expects, how to adapt a PARL example into a safe training/evaluation loop, or how to interpret PARL's TIPC and challenge examples without running unsafe launchers.
Route first
- Need
parl.Model,parl.Agent, backend selection, save/restore, or weight-sync basics? Read../core-framework/SKILL.mdfirst. - Need wrappers, replay buffers, schedulers, vector environments, logging, or Gym API compatibility? Read
../environment-utils/SKILL.mdwith this sub-skill. - Need
xparl start/connect, remote actors, distributed file shipping, ports, or cluster security? Read../xparl-distributed/SKILL.mdbefore adapting distributed examples. - Need Waymax all-GPU autonomous-driving PPO or EvoKit C++ evolution-strategy workflows? Route to
../waymax-rl/SKILL.mdor../evo-kit/SKILL.md; this sub-skill only names them as optional specialized workflows.
Choose the reference
- Read
references/algorithm-catalog.mdto select an algorithm family and confirm required model methods. - Read
references/training-workflows.mdfor safe training/evaluation skeletons and QuickStart-style adaptation patterns. - Read
references/troubleshooting.mdbefore debugging import errors, backend gaps, tensor shape mismatches, unsupported model methods, target sync bugs, or convergence expectations. - Read
references/tipc-reference.mdonly to classify PARL TIPC configurations; do not run the original TIPC shell launchers unless a human explicitly accepts the side effects. - Read
references/challenge-examples.mdwhen the task involves PARL competition examples, curriculum learning, OpenSim/L2RPN, or large distributed challenge runs.
Safe inspection helper
Run the bundled helper from this sub-skill directory or pass a source root explicitly:
python scripts/inspect_algorithm_catalog.py --backend torch
python scripts/inspect_algorithm_catalog.py --backend paddle --no-import --source-root <repo-or-package-root>
python scripts/inspect_algorithm_catalog.py --backend torch --algorithm SAC --json
The helper is read-only. It imports PARL when available, otherwise falls back to static source inspection and reports missing backends without installing packages or launching training.
Operating rules
- Set
PARL_BACKEND=torch,PARL_BACKEND=paddle, orPARL_BACKEND=fluidbefore importingparlwhen the target backend matters. - Treat Torch algorithm signatures as runtime-verified for the major built-in classes covered by the production inspection. Paddle and Fluid entries are source-backed in this skill unless the current task separately verifies those runtimes.
- Prefer tiny smoke checks and synthetic shape checks over long RL training. Do not claim benchmark reproduction from a one-episode or help-only run.
- Do not copy PARL example launchers into a user workspace unless you have replaced network downloads, long training defaults, system package changes, xparl process control, and environment-specific paths with explicit, user-approved steps.
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).