rl-training
Routes Hydra and RSL-RL policy training, evaluation, checkpoint loading, task configuration, observation and action contracts, WeightPolicy bridging, and TensorBoard workflows for this quadruped MPC project.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- rl-training
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes Hydra and RSL-RL policy training, evaluation, checkpoint loading, task configuration, observation and action contracts, WeightPolicy bridging, and TensorBoard workflows for this quadruped MPC project.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md6.2 KB
- 参考文档references/configuration.md8.2 KB
- 参考文档references/troubleshooting.md7.0 KB
- 参考文档references/workflows.md8.1 KB
03 SKILL.md 正文
RL training
Use this sub-skill when the task involves training or evaluating the learned MPC-weight policy, selecting A1/Aliengo/Go1, loading or resuming a checkpoint, checking observations/actions/rewards, or viewing RSL-RL TensorBoard logs.
Read first
-
Read workflows for the public package/repository installation, Hydra overrides, and the train/test/resume/checkpoint decision.
-
Read configuration before changing task, device, environment count, or learning settings.
-
Read API and bridge contracts before wiring a policy to an MPC runner or diagnosing tensor shape errors.
-
From this installed sub-skill directory, run the bundled safe command/config checker when planning a run:
python scripts/validate_rl_config.py --task Aliengo --num-envs 1 python scripts/run_training.py --helpThe installed-package launcher is a dry run unless
--runis supplied. -
Read troubleshooting when an import, Hydra resolution, checkpoint, device, or logging step fails.
Hard backend gate
RL environment construction, training, evaluation, and WeightPolicy import
require NVIDIA Isaac Gym Preview 4 in addition to the documented Python,
PyTorch/CUDA, and RSL-RL stack. The current inspection handoff proved
PyTorch 1.10/CUDA 11.3 on an A100, package imports, and mpc_osqp, but did not
prove Isaac Gym; isaacgym is unavailable. Treat all RL/simulation execution
as blocked until the official SDK is installed and imported. Do not
substitute a CPU import or a CUDA tensor smoke test for this gate. Use
isaac-gym-simulation for SDK/API and
hardware diagnosis, and mpc-control for the
controller side of the bridge.
Scope and routing
- Training/evaluation: Hydra overrides select
task,headless,num_envs,checkpoint,test, devices,seed, andmax_iterations. Use the bundled launcher only after the backend gate passes; public commands and fallback behavior are in workflows. - Task/config contract: valid task names, defaults, observation/reward layout, and PPO settings are in configuration.
- Policy API and bridge: the 48-value observation and 12-value action contracts, policy architecture, checkpoint keys, and MPC weight mapping are in api-reference.
- Low-level controller math/FSM: do not duplicate it here; route to mpc-control.
- Isaac Gym lifecycle, assets, viewer, PhysX, and GPU pipeline: route to isaac-gym-simulation.
Safe operating rules
- Install the current project package through its public interface, then use
the bundled
scripts/run_training.pylauncher. It resolves the installed training entry point and does not require opening a checkout-local script. Hydra useskey=valueoverrides, not an argparse option catalog. - Choose a user-owned working directory and explicit run root for every experiment. Keep checkpoints under user-supplied paths; do not rely on a default run directory from a source checkout.
- Prefer an explicit absolute checkpoint file. A missing explicit file causes the source loader to try its configured latest-run fallback, which can select an unintended run or fail if no model exists. The bundled checker validates paths without importing or deserializing a checkpoint.
- Keep
num_obs=48andnum_actions=12. A checkpoint with incompatible actor/critic dimensions is not made safe by changingnum_envs. - Training uses the MPC bridge by default in the public training entry point: policy actions are transformed into 12 MPC parameters and the controller produces torques. This is not the same as direct joint-position control.
- Do not change observation ordering, action scaling, robot task, or policy hidden dimensions for an existing checkpoint without treating it as a new model and validating it from scratch.
- Training is long-running and evaluation loops for ten episode horizons; do not use either as a smoke test. Use the bundled checker and the setup/backend route first.
Completion checklist
Before handing off a requested run, confirm:
- the task is exactly
A1,Aliengo, orGo1; - Isaac Gym is importable on the requested GPU, or the request is explicitly reported as blocked;
num_envsis positive and fits GPU memory;- an explicit user-supplied checkpoint exists and is structurally compatible when loading;
test=Trueis used only for evaluation andtest=Falsefor training/resume;- the user-owned run directory and TensorBoard log directory are unambiguous; and
- any MPC deployment request is cross-linked to the controller bridge route.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.