PPO agent playing SnowballTarget

SnowballTarget: course illustration, not my agent

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

A PPO agent trained with the Unity ML-Agents toolkit on SnowballTarget, where the agent throws snowballs at targets, as a Unit 5 project of the Hugging Face Deep RL Course.

Results

Steps trained 4,059,440 (the run stopped at 4.06M of max_steps 5M)
Mean reward at the final checkpoint not recorded (reward: null)
Last recorded mean reward, at 3,999,976 steps 28.82

Source: run_logs/training_status.json; max_steps from configuration.yaml. The reward is a training-time mean from the stochastic policy, not a separate evaluation, and it belongs to an earlier checkpoint than the final model. The run was resumed several times (7 TensorBoard event files in SnowballTarget/).

Training

  • Trainer ppo, behaviour SnowballTarget, run id SnowballTarget1, 1 environment. ML-Agents 1.2.0.dev0, PyTorch 2.2.2 (run_logs/training_status.json metadata).
  • Hyperparameters: batch 128, buffer 2048, learning rate 1e-3 (linear), beta 5e-3, epsilon 0.2, lambda 0.95, 3 epochs, network 2 x 256, gamma 0.99, time horizon 64.
  • 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-Snowball-Target" --local-dir="./downloads"

Resume training

mlagents-learn <your_configuration_file_path.yaml> --run-id=SnowballTarget1 --resume
Downloads last month
39
Video Preview
loading

Paper for elliemci/ppo-Snowball-Target

Evaluation results

  • training mean reward at 3,999,976 steps on SnowballTarget
    self-reported
    28.820