Training workflows

From VectorSpaceLab/AREX-Skill · View interactive version

Training workflows is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Use AgileRL classical single-agent training workflows for Gymnasium PPO, DQN, RainbowDQN, DDPG, TD3, replay/rollout buffers, and distributed training setup.

How to use this skill

Skill file

AgileRL Training Workflows

Use this sub-skill for AgileRL classical single-agent RL training with Gymnasium environments: PPO on-policy, DQN/RainbowDQN/DDPG/TD3 off-policy, recurrent variants, population setup, replay or rollout buffers, and safe pre-flight checks before long runs.

Read First

Route Within AgileRL

| Need | Route |

| --- | --- |

| Evolution/tournament/mutation configuration | ../hpo-and-mutation/SKILL.md |

| Custom net_config, EvolvableNetwork, CNN/LSTM/MultiInput setup | ../evolvable-modules/SKILL.md |

| Multi-agent PettingZoo training | ../multi-agent-and-wrappers/SKILL.md |

| Offline datasets or contextual bandits | ../offline-bandits-data/SKILL.md |

| LLM fine-tuning | ../llm-fine-tuning/SKILL.md |

Standard Classical Training Flow

  1. Install AgileRL and verify imports; use the root scripts/check_agilerl_install.py if unsure.
  2. Create or wrap a Gymnasium environment; prefer make_vect_envs(env_name, num_envs=...) for vectorized classical training.
  3. Define INIT_HP with algorithm-specific keys and POP_SIZE.
  4. Define net_config with encoder_config and head_config unless the default network is sufficient.
  5. Create a population with create_population(algo=..., observation_space=..., action_space=..., net_config=..., INIT_HP=..., population_size=..., num_envs=..., device=...).
  6. For off-policy algorithms, create ReplayBuffer; for on-policy PPO, use rollout collection/training helpers rather than replay memory.
  7. Configure TournamentSelection and Mutations in the HPO sub-skill.
  8. Call train_on_policy(...) or train_off_policy(...), or implement a custom loop following references/workflows.md.

Algorithm Selection

Safe Validation

Run a smoke check before training:

python scripts/agilerl_classic_smoke.py --algorithm DQN --env CartPole-v1
python scripts/agilerl_classic_smoke.py --algorithm PPO --env CartPole-v1

The helper checks imports, Gymnasium spaces, basic config shape, and algorithm family routing. It does not train or download anything.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.