跳到正文
cccskills
免费在 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.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(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(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa

免费

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

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa-v2

免费

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

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

ab3dmot

免费

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

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

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.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

acme

免费

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

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题