/train — Launch a PPO Training Run

SkillDev tools

Launch a training run for a robot environment using PPO

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the /train — Launch a PPO Training Run skill

What this skill tells your AI

The instructions your AI receives, as published by rohanpsingh/learninghumanoidwalking in .claude/skills/train/SKILL.md and read by ahel’s review.

Parse the user's request from $ARGUMENTS and construct a training command.

Command Template

RAY_ADDRESS= uv run python run_experiment.py train --env <ENV> --logdir <LOGDIR> [OPTIONS...]

Available Environments

NameDescription
cartpoleCartpole swing-up (simplest, good for testing)
h1Unitree H1 standing task
jvrc_walkJVRC humanoid basic walking
jvrc_stepJVRC humanoid stepping with planned footsteps

Hyperparameters (defaults)

FlagDefaultDescription
--n-itr20000Training iterations
--lr1e-4Learning rate
--gamma0.99Discount factor
--std-dev0.223Action noise
--learn-stdoffLearn action noise (flag)
--entropy-coeff0.0Entropy regularization
--clip0.2PPO clipping
--minibatch-size64Minibatch size
--epochs3Optimization epochs per update
--num-procs12Parallel workers
--num-envs-per-worker1Vectorized envs per worker
--max-grad-norm0.05Gradient clipping
--max-traj-len400Episode horizon
--eval-freq100Eval every N iterations
--seedNoneRandom seed
--deviceautoTraining device (auto/cpu/cuda)
--no-mirroroffDisable symmetry wrapper (flag)
--recurrentoffUse LSTM policy (flag)
--continuedNonePath to pretrained weights

Instructions

  1. Determine the environment name from the user's request. If ambiguous, ask.
  2. Use --logdir /tmp/training_runs unless the user specifies a different path.
  3. Only include flags that differ from defaults — keep the command clean.
  4. Show the user the full command you're about to run.
  5. Run the command in the background using run_in_background: true on the Bash tool. Set a generous timeout (600000ms).
  6. After launching, tell the user the logdir path and how to check progress (you can tail the output using the task ID).
  7. If the user asks to check on training, use TaskOutput with block: false to check the latest output.

Cartpole-Specific Defaults

For cartpole, these settings are known to work well with the current defaults (--lr 3e-4 --max-grad-norm 0.5 --lam 0.95 --gamma 0.99):

  • --minibatch-size 256
  • --std-dev 0.15 --learn-std --entropy-coeff 0.01
  • --max-traj-len 500 --n-itr 500 --num-procs 12
  • --no-mirror (cartpole has no body symmetry)

Suggest these defaults when the user trains cartpole, but let them override.

Signals

GitHub stars
1k
Forks
137
Last commit
May 2026
Advanced
Catalog kind
skill
Gateway key
train-rohanpsingh
Source
github.com/rohanpsingh/learninghumanoidwalking