AGENT SKILL

training-cli

Operate RL Baselines3 Zoo training, resume, checkpoint, evaluation-callback, and log-folder command workflows safely.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
training-cli
license
MIT
metadata
{ "disco-role": "operating" }
description
Operate RL Baselines3 Zoo training, resume, checkpoint, evaluation-callback, and log-folder command workflows safely.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

training-cli

Use this sub-skill when the task is to build, run, resume, or debug RL Baselines3 Zoo training commands for an installed rl_zoo3 package. It covers rl_zoo3 train and python -m rl_zoo3.train, algorithm/environment selection, bounded training runs, continuation from a saved zip, replay-buffer continuation, evaluation/checkpoint callbacks, vectorized environment choice, seeds/UUID/progress/device options, and the training output layout.

Start here

  1. Prefer the module command unless the caller specifically needs the console entry point:
    • python -m rl_zoo3.train ... avoids importing the rl_zoo3 console router and its plotting modules.
    • rl_zoo3 train ... is valid when the console entry point imports successfully; if it fails on plotting extras, switch to the module command or use the root install guidance at ../../references/install-and-environment.md.
  2. For command recipes and training lifecycle details, read references/training-workflows.md.
  3. For the complete train flag surface, read references/cli-reference.md.
  4. For known failures and recovery actions, read references/troubleshooting.md.
  5. To build a command without launching training, run scripts/train_command_builder.py. The helper validates common unsafe combinations and only prints a shell command.

Operating checklist

  • Identify --algo, --env, intended run length, backend/device, and whether this is a smoke test, full run, resume run, or off-policy replay-buffer continuation.
  • Use a caller-controlled --log-folder; do not rely on a shared logs/ directory unless that is intentional.
  • For any potentially long run, pass --n-timesteps, --eval-freq, --save-freq, --seed, and optionally --uuid and --progress.
  • Validate that the Gymnasium environment id is registered before training. For custom packages, pass --gym-packages so registration happens before RL Zoo checks the registry.
  • For --trained-agent, provide an existing .zip path. For off-policy continuation, place replay_buffer.pkl next to that zip and use --save-replay-buffer if the replay buffer should be saved again.
  • Remember that RL Zoo divides positive --eval-freq and --save-freq by the configured number of training envs (n_envs) before creating callbacks.
  • Treat --device cuda and service integrations as optional. Use --device cpu for portable CPU smoke tests.

Boundaries and routes

  • Deep YAML/Python config grammar, --conf-file, and complex --hyperparams values: route to ../config-hyperparams/SKILL.md.
  • Optuna tuning via -optimize / --optimize-hyperparameters: route to ../tuning-optimization/SKILL.md.
  • Loading/enjoying models, best/checkpoint/latest selection, video, and artifact inspection after training: route to ../evaluation-and-artifacts/SKILL.md and ../integrations-hub-tracking/SKILL.md as appropriate.
  • Wrappers, callbacks, custom Gymnasium registration modules, and custom algorithm/component imports: route to ../custom-components/SKILL.md.
  • Plotting or benchmark interpretation: route to ../plotting-benchmarking/SKILL.md.

Minimal safe command pattern

python -m rl_zoo3.train --algo ppo --env CartPole-v1 --n-timesteps 1000 \
  --log-folder ./runs/rl-zoo --eval-freq 500 --save-freq 500 \
  --seed 123 --device cpu --progress

Use the command builder to produce this pattern safely:

python scripts/train_command_builder.py \
  --algo ppo --env CartPole-v1 --n-timesteps 1000 --log-folder ./runs/rl-zoo \
  --eval-freq 500 --save-freq 500 --seed 123 --device cpu --progress

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351