AGENT SKILL

plotting-benchmarking

Plot RL Baselines3 Zoo training/evaluation results and build safe benchmark result commands.

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

01 前言 Front Matter

name
plotting-benchmarking
license
MIT
metadata
{ "disco-role": "operating" }
description
Plot RL Baselines3 Zoo training/evaluation results and build safe benchmark result commands.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

plotting-benchmarking

Use this sub-skill when a future Researcher needs RL Baselines3 Zoo plotting or benchmark-result workflows from an installed rl_zoo3 package: training monitor curves, evaluation curves, postprocessed result pickles, rliable comparison plots, or bounded benchmark-table commands.

Route here for

  • Plotting training reward, episode length, or success curves from Monitor CSV files with rl_zoo3 plot_train or python -m rl_zoo3.plots.plot_train.
  • Aggregating evaluation callback files named evaluations.npz with rl_zoo3 all_plots or python -m rl_zoo3.plots.all_plots.
  • Rendering postprocessed .pkl result files with rl_zoo3 plot_from_file or python -m rl_zoo3.plots.plot_from_file, including --rliable, --versus, and --iqm options.
  • Building a safe benchmark command using python -m rl_zoo3.benchmark --test-mode --no-hub.
  • Diagnosing missing plotting dependencies, headless display failures, missing evaluation files, rolling-window issues, normalization caveats, or benchmark Hub surprises.

Route elsewhere

Default operating stance

  1. Identify the available result format first: Monitor CSV files imply plot_train; evaluations.npz files imply all_plots; an exported result .pkl implies plot_from_file; benchmark tables imply python -m rl_zoo3.benchmark.
  2. Prefer installed-package entry points. Use python -m rl_zoo3.plots.<module> if the rl_zoo3 console router is unavailable; use rl_zoo3 <plot_subcommand> when plotting extras import successfully.
  3. For headless sessions, add MPLBACKEND=Agg; also pass --no-display to all_plots. plot_train and plot_from_file call plt.show(), so the backend guard is the no-display safety mechanism.
  4. Treat rliable output as optional and comparatively slow because it bootstraps confidence intervals. Check normalization coverage before interpreting “normalized score” plots.
  5. Keep benchmark commands offline and bounded by default: include both --test-mode and --no-hub, and use a caller-controlled benchmark directory.

Bundled references and helper

Minimal safe command-building examples

python scripts/plotting_command_builder.py \
  all-plots --algos sac td3 tqc --envs Half Ant --exp-folders ./logs \
  --labels local --output ./plots/offpolicy --print-n-trials

python scripts/plotting_command_builder.py \
  plot-from-file --input ./plots/offpolicy.pkl --skip-timesteps --rliable --versus \
  --labels SAC TD3 TQC --output ./plots/offpolicy.svg

python scripts/plotting_command_builder.py \
  benchmark --log-dir ./rl-trained-agents --benchmark-dir ./benchmark-output \
  --n-timesteps 100 --num-threads 1

The helper prints commands only; it does not train, evaluate, open figures, contact the Hub, or write benchmark/plot output files.

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