AGENT SKILL

deep-reinforcement-learning-with-pytorch

Route and use the repository's PyTorch reinforcement-learning examples across tabular control, DQN, on-policy actor-critic, and off-policy continuous control.

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

01 前言 Front Matter

name
deep-reinforcement-learning-with-pytorch
license
MIT
metadata
{ "disco-role": "operating" }
description
Route and use the repository's PyTorch reinforcement-learning examples across tabular control, DQN, on-policy actor-critic, and off-policy continuous control.
disable-model-invocation
true

02 资源文件 7

03 SKILL.md 正文

Deep Reinforcement Learning with PyTorch

This repo is a collection of single-file reinforcement-learning examples, not an installable Python package. Use this root skill as the router for the algorithm family that matches the user's request.

Read first

  • references/dependency-and-compatibility.md for Gym, Torch, env-ID, and optional-extra notes.
  • references/troubleshooting.md for repo-wide failure patterns.
  • references/plotting.md for the .npy curve format used by the plotting helper.
  • scripts/rl_env_compat_report.py for a quick non-training env / backend probe.
  • scripts/plot_training_curves.py for the bundled result-plotting helper.

Route map

User intent Go here Why
Q-learning, Sarsa, toy GridWorld, terminal-state bookkeeping sub-skills/tabular-control/SKILL.md Small tabular examples with deterministic update rules.
DQN, replay buffers, target networks, MountainCar reward shaping, TensorBoard logs sub-skills/value-based-discrete-control/SKILL.md Char01 DQN family on discrete Gym control.
REINFORCE, policy gradients, actor-critic, A2C, PPO, saved on-policy pickles sub-skills/on-policy-actor-critic/SKILL.md Char02 / Char03 / Char04 / Char07 on-policy workflows.
DDPG, SAC, TD3, continuous actions, checkpoint playback, BipedalWalker compatibility sub-skills/off-policy-continuous-control/SKILL.md Char05 / Char09 / Char10 continuous-control workflows.
Plot .npy learning curves or compare runs scripts/plot_training_curves.py Shared support workflow, not a training family.
Check Gym, CUDA, Box2D, and legacy env IDs before choosing a route scripts/rl_env_compat_report.py Fast inspection helper for classic-control and continuous-control support.

How to use this skill

  1. Identify the algorithm family first.
  2. Read the matching sub-skill before touching the original training scripts.
  3. Use the root compatibility helper when the question is about env IDs, optional extras, or device availability.
  4. Use the root plotting helper when the question is about .npy curves rather than algorithm behavior.
  5. Do not launch the repository's full default training loops unless the user explicitly asks for training and provides a budget.

Compatibility snapshot

  • The repository uses legacy Gym-style APIs and legacy env names in its source scripts.
  • Modern substitutes verified in the inspection environment are Pendulum-v1 and BipedalWalker-v3.
  • CUDA is optional, not required. If Torch sees a GPU, the continuous-control scripts may use it automatically.
  • TensorFlow appears in the historical requirements file but no discovered source file imports it.
  • Char08 ACER is docs-only in this checkout; there is no runnable ACER sub-skill.

When in doubt

  • If the task mentions CartPole, MountainCar, or reward shaping, start with DQN or on-policy classic-control troubleshooting rather than the continuous-control route.
  • If the task mentions Pendulum or BipedalWalker, use the continuous-control route and check the compatibility helper for the modern env ID.
  • If the task is only about plotting run curves or sanity-checking the environment, stay at the root support layer.
  • Keep runtime links inside this generated skill tree; do not depend on the original checkout remaining present.

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