Skip to content
cccskills
FreePublished on GitHub

drl-pytorch

Route DRL-Pytorch reinforcement-learning workflows for standalone PyTorch Q-learning, DQN-family, PPO, DDPG, TD3, SAC, Atari DQN, and Actor-Sharer-Learner scripts.

The English summary is being prepared. Showing the original description.

See how to install

Files included (23)

  • SKILL.md4.9 KB
  • references/algorithm-index.md4.3 KB
  • references/quickstart-and-environment.md4.6 KB
  • references/repo-provenance.md3.0 KB
  • references/repo-routing-metadata.json438 B
  • references/troubleshooting.md4.5 KB
  • scripts/drl_pytorch_algorithm_matrix.py9.8 KB
  • scripts/drl_pytorch_safe_smoke.py4.3 KB
  • sub-skills/atari-and-asl-workflows/references/asl-framework.md8.9 KB
  • sub-skills/atari-and-asl-workflows/references/atari-runtime-and-wrappers.md9.0 KB
  • sub-skills/atari-and-asl-workflows/references/troubleshooting.md7.8 KB
  • sub-skills/atari-and-asl-workflows/scripts/smoke_atari_asl.py10.2 KB
  • sub-skills/atari-and-asl-workflows/SKILL.md4.5 KB
  • sub-skills/policy-and-actor-critic-control/references/algorithm-workflows.md8.5 KB
  • sub-skills/policy-and-actor-critic-control/references/api-and-cli-reference.md11.6 KB
  • sub-skills/policy-and-actor-critic-control/references/troubleshooting.md8.5 KB
  • sub-skills/policy-and-actor-critic-control/scripts/smoke_policy_control.py9.9 KB
  • sub-skills/policy-and-actor-critic-control/SKILL.md2.8 KB
  • sub-skills/value-based-discrete-control/references/algorithm-workflows.md7.8 KB
  • sub-skills/value-based-discrete-control/references/api-and-cli-reference.md10.0 KB
  • sub-skills/value-based-discrete-control/references/troubleshooting.md6.3 KB
  • sub-skills/value-based-discrete-control/scripts/smoke_value_based.py11.4 KB
  • sub-skills/value-based-discrete-control/SKILL.md2.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

DRL-Pytorch Repo Skill

Use this skill when a task involves the XinJingHao DRL-Pytorch repository or its standalone PyTorch reinforcement-learning scripts: Q-learning, DQN/DDQN/Dueling DQN, prioritized replay, C51, NoisyNet, PPO, DDPG, TD3, SAC, Atari NoFrameskip DQN, or Actor-Sharer-Learner.

Do not use this skill for Stable-Baselines3, CleanRL, Tianshou, PettingZoo, RLHF packages, or generic RL theory unless the task explicitly needs DRL-Pytorch command/API details.

First checks

  1. Read repository provenance if you need to decide whether this skill matches a current checkout or should be refreshed.
  2. Read quickstart and environment before installing extras, running smoke checks, or starting training.
  3. Use algorithm index to route by algorithm name, action space, EnvIdex, and checkpoint pattern.
  4. Use cross-cutting troubleshooting for CUDA defaults, optional Gymnasium extras, colliding module imports, checkpoints, TensorBoard, or stochastic training failures.

Choose the sub-skill

Request signalRead
Q-learning, CliffWalking, DQN, DDQN, Dueling, PER, prioritized replay, C51, NoisyNet, CartPole, LunarLander discretevalue-based-discrete-control
PPO, DDPG, TD3, SAC, actor-critic, policy gradient, Pendulum, LunarLanderContinuous, Humanoid, HalfCheetah, BipedalWalker, continuous controlpolicy-and-actor-critic-control
Atari, Pong, Enduro, NoFrameskip, AtariNames, ALE ROMs, OpenCV wrappers, EnvPool, Actor-Sharer-Learner, ASL multiprocessingatari-and-asl-workflows

If a task spans multiple algorithms, start with the root algorithm index, then read each owning sub-skill. Keep value-based non-Atari DQN separate from Atari DQN: both use DQN terminology but have different environments, wrappers, dependencies, and checkpoints.

Repository operating model

DRL-Pytorch is not an installable Python distribution. It is a script collection where each algorithm directory has its own main.py, local implementation module, and often a colliding utils.py. Commands that run original launchers must be executed from the selected algorithm directory in the user's DRL-Pytorch checkout. Bundled scripts in this skill accept --repo-root so diagnostics do not depend on the checkout used to create this skill.

Baseline CPU-safe dependencies for modern workflows are Python 3.11, Gymnasium 0.29.x, NumPy 1.26.x, PyTorch 2.1.x, TensorBoard for --write True, and Matplotlib for C51 render helpers. Optional extras include Box2D, MuJoCo, Atari ALE/ROMs/OpenCV, EnvPool, and CUDA acceleration.

Safe diagnostics

Use the bundled algorithm matrix without a checkout:

python scripts/drl_pytorch_algorithm_matrix.py --format table

Use no-training diagnostics when a DRL-Pytorch checkout is available:

python scripts/drl_pytorch_safe_smoke.py --repo-root <DRL-Pytorch-checkout> --suite all

For narrower checks:

python scripts/drl_pytorch_safe_smoke.py --repo-root <DRL-Pytorch-checkout> --suite value
python scripts/drl_pytorch_safe_smoke.py --repo-root <DRL-Pytorch-checkout> --suite policy
python scripts/drl_pytorch_safe_smoke.py --repo-root <DRL-Pytorch-checkout> --suite atari

The smoke helpers import modules and run tiny CPU object/network checks. They do not train, render, download Atari ROMs, create optional Box2D/MuJoCo/Atari environments, write checkpoints, launch TensorBoard, or start EnvPool workers.

Training guardrails

  • Set --dvc cpu or --device cpu for CPU-only checks; several launchers default to CUDA.
  • Prefer --Max_train_steps 0 --write False --render False before any real training when the launcher supports it.
  • Install Box2D only for LunarLander/BipedalWalker, MuJoCo only for Humanoid/HalfCheetah, Atari extras/ROMs/OpenCV only for Atari NoFrameskip, and EnvPool only for ASL.
  • Treat full training, rendering, checkpoint playback, Atari environment creation, and ASL multiprocessing as user-approved side-effectful work.
  • Check checkpoint filename conventions before --Loadmodel True; binaries are not bundled in this skill.

If editing or refreshing

When repository code changes, refresh from source evidence rather than patching this skill by memory. Pay special attention to launcher flags, EnvIdex maps, class names, checkpoint naming, optional dependency gates, and repeated local module names.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

3ddfa

Free

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

acme

Free

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

See all skills by VectorSpaceLab

Report a problem with this skill