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
- 参考文档references/benchmarking.md5.9 KB
- 参考文档references/plotting-workflows.md8.3 KB
- 参考文档references/troubleshooting.md7.6 KB
- 脚本scripts/plotting_command_builder.py21.7 KB
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_trainorpython -m rl_zoo3.plots.plot_train. - Aggregating evaluation callback files named
evaluations.npzwithrl_zoo3 all_plotsorpython -m rl_zoo3.plots.all_plots. - Rendering postprocessed
.pklresult files withrl_zoo3 plot_from_fileorpython -m rl_zoo3.plots.plot_from_file, including--rliable,--versus, and--iqmoptions. - 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
- Model/artifact folder selection,
best_model.zip, checkpoint/latest model loading, and no-renderenjoyevaluation:../evaluation-and-artifacts/SKILL.md. - Optuna HPO study/report generation before plotting its outputs:
../tuning-optimization/SKILL.md. - Live Hugging Face Hub downloads/uploads or service credentials during benchmarking:
../integrations-hub-tracking/SKILL.md. - Producing training logs or adding evaluation callbacks to a run:
../training-cli/SKILL.md. - Optional dependency and console-entry import caveats shared across the repo skill:
../../references/install-and-environment.md.
Default operating stance
- Identify the available result format first: Monitor CSV files imply
plot_train;evaluations.npzfiles implyall_plots; an exported result.pklimpliesplot_from_file; benchmark tables implypython -m rl_zoo3.benchmark. - Prefer installed-package entry points. Use
python -m rl_zoo3.plots.<module>if therl_zoo3console router is unavailable; userl_zoo3 <plot_subcommand>when plotting extras import successfully. - For headless sessions, add
MPLBACKEND=Agg; also pass--no-displaytoall_plots.plot_trainandplot_from_filecallplt.show(), so the backend guard is the no-display safety mechanism. - Treat rliable output as optional and comparatively slow because it bootstraps confidence intervals. Check normalization coverage before interpreting “normalized score” plots.
- Keep benchmark commands offline and bounded by default: include both
--test-modeand--no-hub, and use a caller-controlled benchmark directory.
Bundled references and helper
references/plotting-workflows.mdexplains data formats, command recipes, and rliable interpretation boundaries.references/benchmarking.mdexplains benchmark inputs, outputs, and side-effect controls.references/troubleshooting.mdmaps common plotting/benchmark failures to fixes.scripts/plotting_command_builder.pybuilds non-executing plotting/benchmarking commands and can statically validate input files.
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
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).