Reinforcement Learning
ml-agents
TensorBoard
ONNX
deep-reinforcement-learning
deep-rl-course
Pyramids
ML-Agents-Pyramids
Eval Results (legacy)
Instructions to use rabitrabi/ppo-Pyramids with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ml-agents
How to use rabitrabi/ppo-Pyramids with ml-agents:
mlagents-load-from-hf --repo-id="rabitrabi/ppo-Pyramids" --local-dir="./downloads"
- Notebooks
- Google Colab
- Kaggle
|
Download README.md from rabitrabi/ppo-Pyramids: direct link, hf CLI and curl.
- Browser
- Download file 1.99 kB
-
https://huggingface.co/rabitrabi/ppo-Pyramids/resolve/main/README.md
- Command line
-
hf download hf://rabitrabi/ppo-Pyramids/README.md
-
curl -L -o README.md https://huggingface.co/rabitrabi/ppo-Pyramids/resolve/main/README.md
1.99 kB
| library_name: ml-agents | |
| tags: | |
| - reinforcement-learning | |
| - deep-reinforcement-learning | |
| - deep-rl-course | |
| - ml-agents | |
| - Pyramids | |
| - ML-Agents-Pyramids | |
| - onnx | |
| model-index: | |
| - name: PPO Pyramids | |
| results: | |
| - task: | |
| type: reinforcement-learning | |
| name: Reinforcement Learning | |
| dataset: | |
| type: Pyramids | |
| name: Pyramids | |
| metrics: | |
| - type: mean_reward | |
| name: Mean reward | |
| value: -0.867337 +/- 0.555230 | |
| # 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](https://huggingface.co/learn/deep-rl-course/en/unit5/hands-on). | |
| ```bash | |
| 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 | |
| ``` | |