Reinforcement Learning
ml-agents
TensorBoard
ONNX
Pyramids
deep-reinforcement-learning
ML-Agents-Pyramids
Eval Results (legacy)
Instructions to use foleymon/ppo-Pyramids with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ml-agents
How to use foleymon/ppo-Pyramids with ml-agents:
mlagents-load-from-hf --repo-id="foleymon/ppo-Pyramids" --local-dir="./downloads"
- Notebooks
- Google Colab
- Kaggle
Add model-index with mean_reward for progress checker
Browse files
README.md
CHANGED
|
@@ -5,31 +5,45 @@ tags:
|
|
| 5 |
- deep-reinforcement-learning
|
| 6 |
- reinforcement-learning
|
| 7 |
- ML-Agents-Pyramids
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
browser: https://huggingface.co/learn/deep-rl-course/unitbonus1/introduction
|
| 20 |
-
- A *longer tutorial* to understand how works ML-Agents:
|
| 21 |
-
https://huggingface.co/learn/deep-rl-course/unit5/introduction
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
```
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
| 5 |
- deep-reinforcement-learning
|
| 6 |
- reinforcement-learning
|
| 7 |
- ML-Agents-Pyramids
|
| 8 |
+
model-index:
|
| 9 |
+
- name: ppo-Pyramids
|
| 10 |
+
results:
|
| 11 |
+
- task:
|
| 12 |
+
type: reinforcement-learning
|
| 13 |
+
name: Reinforcement Learning
|
| 14 |
+
dataset:
|
| 15 |
+
type: ML-Agents-Pyramids
|
| 16 |
+
name: ML-Agents-Pyramids
|
| 17 |
+
metrics:
|
| 18 |
+
- type: mean_reward
|
| 19 |
+
value: 1.53 +/- 0.48
|
| 20 |
+
name: mean_reward
|
| 21 |
+
verified: false
|
| 22 |
---
|
| 23 |
|
| 24 |
+
# **ppo** Agent playing **Pyramids**
|
| 25 |
+
This is a trained model of a **ppo** agent playing **Pyramids**
|
| 26 |
+
using the [Unity ML-Agents Library](https://github.com/Unity-Technologies/ml-agents).
|
| 27 |
|
| 28 |
+
Trained for the Hugging Face Deep Reinforcement Learning Course, Unit 5.
|
| 29 |
+
Training: PPO with curiosity (RND), 1,000,000 steps on a Tesla T4 GPU. Final mean reward 1.53 +/- 0.48 (result 1.05).
|
| 30 |
|
| 31 |
+
## Usage (with ML-Agents)
|
| 32 |
+
The Documentation: https://unity-technologies.github.io/ml-agents/ML-Agents-Toolkit-Documentation/
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
+
We wrote a complete tutorial to learn to train your first agent using ML-Agents and publish it to the Hub:
|
| 35 |
+
- A *short tutorial* where you teach Huggy the Dog to fetch the stick and then play with him directly in your browser: https://huggingface.co/learn/deep-rl-course/unitbonus1/introduction
|
| 36 |
+
- A *longer tutorial* to understand how works ML-Agents: https://huggingface.co/learn/deep-rl-course/unit5/introduction
|
|
|
|
| 37 |
|
| 38 |
+
### Resume the training
|
| 39 |
+
```bash
|
| 40 |
+
mlagents-learn <your_configuration_file_path.yaml> --run-id=<run_id> --resume
|
| 41 |
+
```
|
| 42 |
|
| 43 |
+
### Watch your Agent play
|
| 44 |
+
You can watch your agent **playing directly in your browser**
|
| 45 |
+
|
| 46 |
+
1. If the environment is part of ML-Agents official environments, go to https://huggingface.co/unity
|
| 47 |
+
2. Step 1: Find your model_id: foleymon/ppo-Pyramids
|
| 48 |
+
3. Step 2: Select your *.nn /*.onnx file
|
| 49 |
+
4. Click on Watch the agent play
|