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

PPO on Pyramids

This Unity ML-Agents 1.1.0 policy was trained from scratch on CPU for the Hugging Face Deep Reinforcement Learning Course with a 524,288-step budget. The first 65,841 steps used seed 42 and the resumed run used seed 43. Four checkpoints were compared by sampled-policy mean return at validation seed 2025. The top-level ONNX file is the selected 130,976-step checkpoint.

Evaluation

The exported ONNX policy sampled actions in four fresh Unity sessions with seeds 2026โ€“2029 (32 completed episodes each). Across the 128 completed episodes, the mean return was -0.867 and the population standard deviation was 0.555. Training used the random network distillation curiosity bonus. Evaluation measures the original environment rewards. The sampled policy collected gold in 7 of 128 episodes. The deterministic policy collected gold in 0 of 128 episodes and scored -1.000 ยฑ 0.000. Individual returns are in evaluation.json.

Reproduce

Use Python 3.10.12, Unity ML-Agents 1.1.0, CPU PyTorch 2.2.2, ONNX 1.15.0 and ONNX Runtime 1.18.1. Download the Linux simulator linked in course unit 5.

mlagents-learn Pyramids-initial.yaml --env=/path/to/Pyramids --run-id=Pyramids --no-graphics --seed=42 --time-scale=64 --torch-device=cpu
mlagents-learn Pyramids.yaml --env=/path/to/Pyramids --run-id=Pyramids --no-graphics --resume --seed=43 --time-scale=64 --torch-device=cpu
python evaluate.py Pyramids /path/to/Pyramids 6360 --seed=2026 --episodes=32
Downloads last month
87
Video Preview
loading

Evaluation results