How to use from the
Use from the
ml-agents library
mlagents-load-from-hf --repo-id="elliemci/ppo-Pyramids" --local-dir="./downloads"

PPO agent playing Pyramids

Pyramids: course illustration, not my agent

Course illustration, not my agent (image from the Hugging Face Deep RL Course).

A PPO agent with Random Network Distillation (RND) curiosity, trained with the Unity ML-Agents toolkit on Pyramids, where the agent has to press a button, knock over the pyramid that appears and reach the gold brick, as a Unit 5 project of the Hugging Face Deep RL Course.

Results

Steps trained 3,000,006 (max_steps 3M)
Mean reward at the final checkpoint 1.90

Source: run_logs/training_status.json; max_steps from configuration.yaml. This is a training-time mean reward from the stochastic policy, not a separate evaluation. Evaluation of the final model: not recorded.

Training

  • Trainer ppo, behaviour Pyramids, run id Pyramids Training, 1 environment. ML-Agents 1.2.0.dev0, PyTorch 2.8.0 (run_logs/training_status.json metadata).
  • Hyperparameters: batch 128, buffer 2048, learning rate 3e-4 (linear), beta 0.01, epsilon 0.2, lambda 0.95, 3 epochs, network 2 x 512, time horizon 128.
  • Rewards: extrinsic (gamma 0.99, strength 1.0) and RND (gamma 0.99, strength 0.01, learning rate 1e-4).
  • Full config: configuration.yaml in this repo. Notebook and notes: GitHub.

Watch the agent play

The Hugging Face browser demo for this environment currently hangs on model search, so no replay is available.

Download

mlagents-load-from-hf --repo-id="elliemci/ppo-Pyramids" --local-dir="./downloads"

Resume training

mlagents-learn <your_configuration_file_path.yaml> --run-id="Pyramids Training" --resume
Downloads last month
13
Video Preview
loading

Papers for elliemci/ppo-Pyramids

Evaluation results

  • training mean reward at 3,000,006 steps on Pyramids
    self-reported
    1.900