PPO agent playing Huggy

Huggy: 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 Huggy, where a dog learns to fetch a stick, as the Bonus Unit 1 project of the Hugging Face Deep RL Course.

Results

Steps trained 2,000,007 (max_steps 2M)
Mean reward at the final checkpoint 3.79
Range over the 11 recorded checkpoints 3.55 to 4.14

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

Training

  • Trainer ppo, behaviour Huggy, run id Huggy, 1 environment. ML-Agents 1.2.0.dev0, PyTorch 2.8.0 (run_logs/training_status.json metadata).
  • Hyperparameters: batch 2048, buffer 20480, learning rate 3e-4 (linear), beta 5e-3, epsilon 0.2, lambda 0.95, 3 epochs, network 3 x 512 with observation normalization, gamma 0.995, time horizon 1000.
  • 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-Huggy" --local-dir="./downloads"

Resume training

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

Paper for elliemci/ppo-Huggy

Evaluation results

  • training mean reward at 2,000,007 steps on Huggy
    self-reported
    3.790