elliemci commited on
Commit
1e79f7f
·
verified ·
1 Parent(s): eb94ae1

Model card: results with sources, training config, links

Browse files
Files changed (1) hide show
  1. README.md +56 -16
README.md CHANGED
@@ -5,25 +5,65 @@ tags:
5
  - deep-reinforcement-learning
6
  - reinforcement-learning
7
  - ML-Agents-Pyramids
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  ---
9
 
10
- # **ppo** Agent playing **Pyramids**
11
- This is a trained model of a **ppo** agent playing **Pyramids**
12
- using the [Unity ML-Agents Library](https://github.com/Unity-Technologies/ml-agents).
13
 
14
- ## Usage (with ML-Agents)
15
- The Documentation: https://unity-technologies.github.io/ml-agents/ML-Agents-Toolkit-Documentation/
16
 
17
- ### Resume the training
18
- ```bash
19
- mlagents-learn <your_configuration_file_path.yaml> --run-id=<run_id> --resume
20
- ```
21
 
22
- ### Watch your Agent play
23
- You can watch the agent **playing directly in browser**
 
 
24
 
25
- 1. If the environment is part of ML-Agents official environments, go to https://huggingface.co/unity
26
- 2. Step 1: Find model_id: elliemci/ppo-Pyramids
27
- 3. Step 2: Select *.nn /*.onnx file
28
- 4. Click on Watch the agent play 👀
29
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  - deep-reinforcement-learning
6
  - reinforcement-learning
7
  - ML-Agents-Pyramids
8
+ - rnd
9
+ model-index:
10
+ - name: PPO
11
+ results:
12
+ - task:
13
+ type: reinforcement-learning
14
+ name: reinforcement-learning
15
+ dataset:
16
+ name: Pyramids
17
+ type: Pyramids
18
+ metrics:
19
+ - type: mean_reward
20
+ value: 1.9
21
+ name: training mean reward at 3,000,006 steps
22
+ verified: false
23
  ---
24
 
25
+ # **PPO** agent playing **Pyramids**
 
 
26
 
27
+ ![Pyramids: course illustration, not my agent](https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/unit7/pyramids.gif)
 
28
 
29
+ *Course illustration, not my agent (image from the Hugging Face Deep RL Course).*
 
 
 
30
 
31
+ A [PPO](https://arxiv.org/abs/1707.06347) agent with [Random Network Distillation](https://arxiv.org/abs/1810.12894) (RND)
32
+ curiosity, trained with the [Unity ML-Agents](https://github.com/Unity-Technologies/ml-agents) toolkit on **Pyramids**, where the agent
33
+ has to press a button, knock over the pyramid that appears and reach the gold brick, as a
34
+ [Unit 5](https://huggingface.co/learn/deep-rl-course/unit5/introduction) project of the Hugging Face Deep RL Course.
35
 
36
+ ## Results
37
+
38
+ | | |
39
+ |---|---|
40
+ | Steps trained | 3,000,006 (`max_steps` 3M) |
41
+ | Mean reward at the final checkpoint | **1.90** |
42
+
43
+ Source: `run_logs/training_status.json`; `max_steps` from `configuration.yaml`. This is a training-time mean reward from the
44
+ stochastic policy, **not** a separate evaluation. Evaluation of the final model: not recorded.
45
+
46
+ ## Training
47
+
48
+ * Trainer `ppo`, behaviour `Pyramids`, run id `Pyramids Training`, 1 environment. ML-Agents 1.2.0.dev0, PyTorch 2.8.0 (`run_logs/training_status.json` metadata).
49
+ * Hyperparameters: batch 128, buffer 2048, learning rate 3e-4 (linear), beta 0.01, epsilon 0.2, lambda 0.95, 3 epochs,
50
+ network 2 x 512, time horizon 128.
51
+ * Rewards: extrinsic (gamma 0.99, strength 1.0) and RND (gamma 0.99, strength 0.01, learning rate 1e-4).
52
+ * Full config: `configuration.yaml` in this repo. Notebook and notes:
53
+ [GitHub](https://github.com/elliemci/deep-rl/tree/main/units/unit5-ml-agents).
54
+
55
+ ## Watch the agent play
56
+
57
+ The Hugging Face browser demo for this environment currently hangs on model search, so no replay is available.
58
+
59
+ ## Download
60
+
61
+ ```bash
62
+ mlagents-load-from-hf --repo-id="elliemci/ppo-Pyramids" --local-dir="./downloads"
63
+ ```
64
+
65
+ ## Resume training
66
+
67
+ ```bash
68
+ mlagents-learn <your_configuration_file_path.yaml> --run-id="Pyramids Training" --resume
69
+ ```