pietroorlandi commited on
Commit
7ecc260
1 Parent(s): 87b602f

First push

Browse files
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: ml-agents
3
+ tags:
4
+ - SnowballTarget
5
+ - deep-reinforcement-learning
6
+ - reinforcement-learning
7
+ - ML-Agents-SnowballTarget
8
+ ---
9
+
10
+ # **ppo** Agent playing **SnowballTarget**
11
+ This is a trained model of a **ppo** agent playing **SnowballTarget**
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
+ We wrote a complete tutorial to learn to train your first agent using ML-Agents and publish it to the Hub:
18
+ - A *short tutorial* where you teach Huggy the Dog 🐶 to fetch the stick and then play with him directly in your
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
+ ### Resume the training
24
+ ```bash
25
+ mlagents-learn <your_configuration_file_path.yaml> --run-id=<run_id> --resume
26
+ ```
27
+
28
+ ### Watch your Agent play
29
+ You can watch your agent **playing directly in your browser**
30
+
31
+ 1. If the environment is part of ML-Agents official environments, go to https://huggingface.co/unity
32
+ 2. Step 1: Find your model_id: pietroorlandi/ppo-SnowballTarget
33
+ 3. Step 2: Select your *.nn /*.onnx file
34
+ 4. Click on Watch the agent play 👀
35
+
SnowballTarget.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2214677cf2bbd05465b4493cfa4c5bf2de33b9f1d563d722dc69f32465bebba3
3
+ size 650646
SnowballTarget/SnowballTarget-149984.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0cb496f619db52fa19dbda881a0d9a8c7451eec779ae6e1bdc3dbe9e459d32c
3
+ size 650646
SnowballTarget/SnowballTarget-149984.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84af66cb3e2e83f833ff071440a63de8665ae5e3a0a512fd1ef0d4792cc96d57
3
+ size 3850075
SnowballTarget/SnowballTarget-199984.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2214677cf2bbd05465b4493cfa4c5bf2de33b9f1d563d722dc69f32465bebba3
3
+ size 650646
SnowballTarget/SnowballTarget-199984.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9da0fe2f959653475d9acbbea5a4bc59a9e3aab4a6b1fbfa77144560cdd3b34c
3
+ size 3850075
SnowballTarget/SnowballTarget-200112.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2214677cf2bbd05465b4493cfa4c5bf2de33b9f1d563d722dc69f32465bebba3
3
+ size 650646
SnowballTarget/SnowballTarget-200112.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3ffff963b0b1dd82cc4cfb993536b95f146794e70d0c60777e22dcad0af2841
3
+ size 3850075
SnowballTarget/SnowballTarget-49936.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2824ada21d87209c556f840185572c84c8177d74c5dc39b15c8595384569c37
3
+ size 650646
SnowballTarget/SnowballTarget-49936.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ee17a0b2af59a4fa731283f08320dfb71e3ab01f03feb6bb543229652b82488
3
+ size 3850000
SnowballTarget/SnowballTarget-99960.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6aa1d6f8ad9eb52c612173753ef56bd16a17dbaa0b624b3fac5dfa78ec99e7a
3
+ size 650646
SnowballTarget/SnowballTarget-99960.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d397089c3aaeefe08e2b39c39f94573991bbd14ff01e3e8f9a4209ab1852d56
3
+ size 3850000
SnowballTarget/checkpoint.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fcf337e3c494b5386075d89e1fce8d8c911c87f736d3b77d5669c6de9206525
3
+ size 3849250
SnowballTarget/events.out.tfevents.1714645053.NBPIETROO.55964.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a12c99fb021369ad22e77428cb3e10eafadb12e1a4df71132a0cffbf2a88e49
3
+ size 23572
config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"default_settings": null, "behaviors": {"SnowballTarget": {"trainer_type": "ppo", "hyperparameters": {"batch_size": 128, "buffer_size": 2048, "learning_rate": 0.0003, "beta": 0.005, "epsilon": 0.2, "lambd": 0.95, "num_epoch": 3, "shared_critic": false, "learning_rate_schedule": "linear", "beta_schedule": "linear", "epsilon_schedule": "linear"}, "checkpoint_interval": 50000, "network_settings": {"normalize": false, "hidden_units": 256, "num_layers": 2, "vis_encode_type": "simple", "memory": null, "goal_conditioning_type": "hyper", "deterministic": false}, "reward_signals": {"extrinsic": {"gamma": 0.99, "strength": 1.0, "network_settings": {"normalize": false, "hidden_units": 128, "num_layers": 2, "vis_encode_type": "simple", "memory": null, "goal_conditioning_type": "hyper", "deterministic": false}}}, "init_path": null, "keep_checkpoints": 10, "even_checkpoints": false, "max_steps": 200000, "time_horizon": 64, "summary_freq": 10000, "threaded": true, "self_play": null, "behavioral_cloning": null}}, "env_settings": {"env_path": "./training-envs-executables/linux/SnowballTarget/SnowballTarget", "env_args": null, "base_port": 5005, "num_envs": 1, "num_areas": 1, "timeout_wait": 60, "seed": -1, "max_lifetime_restarts": 10, "restarts_rate_limit_n": 1, "restarts_rate_limit_period_s": 60}, "engine_settings": {"width": 84, "height": 84, "quality_level": 5, "time_scale": 20, "target_frame_rate": -1, "capture_frame_rate": 60, "no_graphics": true, "no_graphics_monitor": false}, "environment_parameters": null, "checkpoint_settings": {"run_id": "SnowballTargetdsd1", "initialize_from": null, "load_model": false, "resume": false, "force": false, "train_model": false, "inference": false, "results_dir": "results"}, "torch_settings": {"device": null}, "debug": false}
configuration.yaml ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ default_settings: null
2
+ behaviors:
3
+ SnowballTarget:
4
+ trainer_type: ppo
5
+ hyperparameters:
6
+ batch_size: 128
7
+ buffer_size: 2048
8
+ learning_rate: 0.0003
9
+ beta: 0.005
10
+ epsilon: 0.2
11
+ lambd: 0.95
12
+ num_epoch: 3
13
+ shared_critic: false
14
+ learning_rate_schedule: linear
15
+ beta_schedule: linear
16
+ epsilon_schedule: linear
17
+ checkpoint_interval: 50000
18
+ network_settings:
19
+ normalize: false
20
+ hidden_units: 256
21
+ num_layers: 2
22
+ vis_encode_type: simple
23
+ memory: null
24
+ goal_conditioning_type: hyper
25
+ deterministic: false
26
+ reward_signals:
27
+ extrinsic:
28
+ gamma: 0.99
29
+ strength: 1.0
30
+ network_settings:
31
+ normalize: false
32
+ hidden_units: 128
33
+ num_layers: 2
34
+ vis_encode_type: simple
35
+ memory: null
36
+ goal_conditioning_type: hyper
37
+ deterministic: false
38
+ init_path: null
39
+ keep_checkpoints: 10
40
+ even_checkpoints: false
41
+ max_steps: 200000
42
+ time_horizon: 64
43
+ summary_freq: 10000
44
+ threaded: true
45
+ self_play: null
46
+ behavioral_cloning: null
47
+ env_settings:
48
+ env_path: ./training-envs-executables/linux/SnowballTarget/SnowballTarget
49
+ env_args: null
50
+ base_port: 5005
51
+ num_envs: 1
52
+ num_areas: 1
53
+ timeout_wait: 60
54
+ seed: -1
55
+ max_lifetime_restarts: 10
56
+ restarts_rate_limit_n: 1
57
+ restarts_rate_limit_period_s: 60
58
+ engine_settings:
59
+ width: 84
60
+ height: 84
61
+ quality_level: 5
62
+ time_scale: 20
63
+ target_frame_rate: -1
64
+ capture_frame_rate: 60
65
+ no_graphics: true
66
+ no_graphics_monitor: false
67
+ environment_parameters: null
68
+ checkpoint_settings:
69
+ run_id: SnowballTargetdsd1
70
+ initialize_from: null
71
+ load_model: false
72
+ resume: false
73
+ force: false
74
+ train_model: false
75
+ inference: false
76
+ results_dir: results
77
+ torch_settings:
78
+ device: null
79
+ debug: false
run_logs/Player-0.log ADDED
@@ -0,0 +1,312 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Mono path[0] = '/home/pietro/Progetti/AI/005-MlAgents-Unit5-HF/training-envs-executables/linux/SnowballTarget/SnowballTarget_Data/Managed'
2
+ Mono config path = '/home/pietro/Progetti/AI/005-MlAgents-Unit5-HF/training-envs-executables/linux/SnowballTarget/SnowballTarget_Data/MonoBleedingEdge/etc'
3
+ Preloaded 'lib_burst_generated.so'
4
+ Preloaded 'libgrpc_csharp_ext.x64.so'
5
+ PlayerPrefs - Creating folder: /home/pietro/.config/unity3d/Hugging Face
6
+ PlayerPrefs - Creating folder: /home/pietro/.config/unity3d/Hugging Face/SnowballTarget
7
+ Unable to load player prefs
8
+ Initialize engine version: 2021.3.14f1 (eee1884e7226)
9
+ [Subsystems] Discovering subsystems at path /home/pietro/Progetti/AI/005-MlAgents-Unit5-HF/training-envs-executables/linux/SnowballTarget/SnowballTarget_Data/UnitySubsystems
10
+ Forcing GfxDevice: Null
11
+ GfxDevice: creating device client; threaded=0; jobified=0
12
+ NullGfxDevice:
13
+ Version: NULL 1.0 [1.0]
14
+ Renderer: Null Device
15
+ Vendor: Unity Technologies
16
+ Begin MonoManager ReloadAssembly
17
+ - Completed reload, in 0.070 seconds
18
+ ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
19
+ ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
20
+ ERROR: Shader Legacy Shaders/VertexLit shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
21
+ WARNING: Shader Unsupported: 'Standard' - All subshaders removed
22
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
23
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
24
+ ERROR: Shader Standard shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
25
+ WARNING: Shader Unsupported: 'Standard' - All subshaders removed
26
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
27
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
28
+ UnloadTime: 1.162921 ms
29
+ ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
30
+ requesting resize 84 x 84
31
+ Setting up 8 worker threads for Enlighten.
32
+ Memory Statistics:
33
+ [ALLOC_TEMP_TLS] TLS Allocator
34
+ StackAllocators :
35
+ [ALLOC_TEMP_MAIN]
36
+ Peak usage frame count: [8.0 KB-16.0 KB]: 5369 frames, [16.0 KB-32.0 KB]: 91 frames, [2.0 MB-4.0 MB]: 1 frames
37
+ Initial Block Size 4.0 MB
38
+ Current Block Size 4.0 MB
39
+ Peak Allocated Bytes 2.0 MB
40
+ Overflow Count 0
41
+ [ALLOC_TEMP_Loading.AsyncRead]
42
+ Initial Block Size 64.0 KB
43
+ Current Block Size 64.0 KB
44
+ Peak Allocated Bytes 254 B
45
+ Overflow Count 0
46
+ [ALLOC_TEMP_Loading.PreloadManager]
47
+ Initial Block Size 256.0 KB
48
+ Current Block Size 304.0 KB
49
+ Peak Allocated Bytes 228.9 KB
50
+ Overflow Count 4
51
+ [ALLOC_TEMP_Background Job.Worker 8]
52
+ Initial Block Size 32.0 KB
53
+ Current Block Size 32.0 KB
54
+ Peak Allocated Bytes 0 B
55
+ Overflow Count 0
56
+ [ALLOC_TEMP_Job.Worker 6]
57
+ Initial Block Size 256.0 KB
58
+ Current Block Size 256.0 KB
59
+ Peak Allocated Bytes 3.6 KB
60
+ Overflow Count 0
61
+ [ALLOC_TEMP_Job.Worker 0]
62
+ Initial Block Size 256.0 KB
63
+ Current Block Size 256.0 KB
64
+ Peak Allocated Bytes 3.6 KB
65
+ Overflow Count 0
66
+ [ALLOC_TEMP_Background Job.Worker 10]
67
+ Initial Block Size 32.0 KB
68
+ Current Block Size 32.0 KB
69
+ Peak Allocated Bytes 0 B
70
+ Overflow Count 0
71
+ [ALLOC_TEMP_Background Job.Worker 9]
72
+ Initial Block Size 32.0 KB
73
+ Current Block Size 32.0 KB
74
+ Peak Allocated Bytes 0 B
75
+ Overflow Count 0
76
+ [ALLOC_TEMP_Job.Worker 5]
77
+ Initial Block Size 256.0 KB
78
+ Current Block Size 256.0 KB
79
+ Peak Allocated Bytes 3.6 KB
80
+ Overflow Count 0
81
+ [ALLOC_TEMP_Background Job.Worker 14]
82
+ Initial Block Size 32.0 KB
83
+ Current Block Size 32.0 KB
84
+ Peak Allocated Bytes 0 B
85
+ Overflow Count 0
86
+ [ALLOC_TEMP_Background Job.Worker 6]
87
+ Initial Block Size 32.0 KB
88
+ Current Block Size 32.0 KB
89
+ Peak Allocated Bytes 0 B
90
+ Overflow Count 0
91
+ [ALLOC_TEMP_Job.Worker 4]
92
+ Initial Block Size 256.0 KB
93
+ Current Block Size 256.0 KB
94
+ Peak Allocated Bytes 3.6 KB
95
+ Overflow Count 0
96
+ [ALLOC_TEMP_Job.Worker 14]
97
+ Initial Block Size 256.0 KB
98
+ Current Block Size 256.0 KB
99
+ Peak Allocated Bytes 3.6 KB
100
+ Overflow Count 0
101
+ [ALLOC_TEMP_Job.Worker 3]
102
+ Initial Block Size 256.0 KB
103
+ Current Block Size 256.0 KB
104
+ Peak Allocated Bytes 3.6 KB
105
+ Overflow Count 0
106
+ [ALLOC_TEMP_Job.Worker 13]
107
+ Initial Block Size 256.0 KB
108
+ Current Block Size 256.0 KB
109
+ Peak Allocated Bytes 3.6 KB
110
+ Overflow Count 0
111
+ [ALLOC_TEMP_Background Job.Worker 12]
112
+ Initial Block Size 32.0 KB
113
+ Current Block Size 32.0 KB
114
+ Peak Allocated Bytes 0 B
115
+ Overflow Count 0
116
+ [ALLOC_TEMP_EnlightenWorker] x 8
117
+ Initial Block Size 64.0 KB
118
+ Current Block Size 64.0 KB
119
+ Peak Allocated Bytes 0 B
120
+ Overflow Count 0
121
+ [ALLOC_TEMP_Background Job.Worker 15]
122
+ Initial Block Size 32.0 KB
123
+ Current Block Size 32.0 KB
124
+ Peak Allocated Bytes 0 B
125
+ Overflow Count 0
126
+ [ALLOC_TEMP_Background Job.Worker 1]
127
+ Initial Block Size 32.0 KB
128
+ Current Block Size 32.0 KB
129
+ Peak Allocated Bytes 0 B
130
+ Overflow Count 0
131
+ [ALLOC_TEMP_Background Job.Worker 2]
132
+ Initial Block Size 32.0 KB
133
+ Current Block Size 32.0 KB
134
+ Peak Allocated Bytes 0 B
135
+ Overflow Count 0
136
+ [ALLOC_TEMP_Background Job.Worker 7]
137
+ Initial Block Size 32.0 KB
138
+ Current Block Size 32.0 KB
139
+ Peak Allocated Bytes 0 B
140
+ Overflow Count 0
141
+ [ALLOC_TEMP_AssetGarbageCollectorHelper] x 15
142
+ Initial Block Size 64.0 KB
143
+ Current Block Size 64.0 KB
144
+ Peak Allocated Bytes 0 B
145
+ Overflow Count 0
146
+ [ALLOC_TEMP_Background Job.Worker 5]
147
+ Initial Block Size 32.0 KB
148
+ Current Block Size 32.0 KB
149
+ Peak Allocated Bytes 0 B
150
+ Overflow Count 0
151
+ [ALLOC_TEMP_Job.Worker 9]
152
+ Initial Block Size 256.0 KB
153
+ Current Block Size 256.0 KB
154
+ Peak Allocated Bytes 3.6 KB
155
+ Overflow Count 0
156
+ [ALLOC_TEMP_Background Job.Worker 13]
157
+ Initial Block Size 32.0 KB
158
+ Current Block Size 32.0 KB
159
+ Peak Allocated Bytes 0 B
160
+ Overflow Count 0
161
+ [ALLOC_TEMP_Job.Worker 8]
162
+ Initial Block Size 256.0 KB
163
+ Current Block Size 256.0 KB
164
+ Peak Allocated Bytes 3.6 KB
165
+ Overflow Count 0
166
+ [ALLOC_TEMP_Job.Worker 7]
167
+ Initial Block Size 256.0 KB
168
+ Current Block Size 256.0 KB
169
+ Peak Allocated Bytes 3.6 KB
170
+ Overflow Count 0
171
+ [ALLOC_TEMP_Job.Worker 1]
172
+ Initial Block Size 256.0 KB
173
+ Current Block Size 256.0 KB
174
+ Peak Allocated Bytes 3.6 KB
175
+ Overflow Count 0
176
+ [ALLOC_TEMP_Job.Worker 2]
177
+ Initial Block Size 256.0 KB
178
+ Current Block Size 256.0 KB
179
+ Peak Allocated Bytes 3.6 KB
180
+ Overflow Count 0
181
+ [ALLOC_TEMP_Background Job.Worker 3]
182
+ Initial Block Size 32.0 KB
183
+ Current Block Size 32.0 KB
184
+ Peak Allocated Bytes 0 B
185
+ Overflow Count 0
186
+ [ALLOC_TEMP_Background Job.Worker 11]
187
+ Initial Block Size 32.0 KB
188
+ Current Block Size 32.0 KB
189
+ Peak Allocated Bytes 0 B
190
+ Overflow Count 0
191
+ [ALLOC_TEMP_Job.Worker 10]
192
+ Initial Block Size 256.0 KB
193
+ Current Block Size 256.0 KB
194
+ Peak Allocated Bytes 3.6 KB
195
+ Overflow Count 0
196
+ [ALLOC_TEMP_Background Job.Worker 0]
197
+ Initial Block Size 32.0 KB
198
+ Current Block Size 32.0 KB
199
+ Peak Allocated Bytes 0 B
200
+ Overflow Count 0
201
+ [ALLOC_TEMP_Job.Worker 11]
202
+ Initial Block Size 256.0 KB
203
+ Current Block Size 256.0 KB
204
+ Peak Allocated Bytes 3.6 KB
205
+ Overflow Count 0
206
+ [ALLOC_TEMP_Job.Worker 12]
207
+ Initial Block Size 256.0 KB
208
+ Current Block Size 256.0 KB
209
+ Peak Allocated Bytes 3.6 KB
210
+ Overflow Count 0
211
+ [ALLOC_TEMP_Background Job.Worker 4]
212
+ Initial Block Size 32.0 KB
213
+ Current Block Size 32.0 KB
214
+ Peak Allocated Bytes 0 B
215
+ Overflow Count 0
216
+ [ALLOC_TEMP_BatchDeleteObjects]
217
+ Initial Block Size 64.0 KB
218
+ Current Block Size 64.0 KB
219
+ Peak Allocated Bytes 0 B
220
+ Overflow Count 0
221
+ [ALLOC_DEFAULT] Dual Thread Allocator
222
+ Peak main deferred allocation count 40
223
+ [ALLOC_BUCKET]
224
+ Large Block size 4.0 MB
225
+ Used Block count 1
226
+ Peak Allocated bytes 1.0 MB
227
+ [ALLOC_DEFAULT_MAIN]
228
+ Peak usage frame count: [4.0 MB-8.0 MB]: 5461 frames
229
+ Requested Block Size 16.0 MB
230
+ Peak Block count 1
231
+ Peak Allocated memory 6.8 MB
232
+ Peak Large allocation bytes 0 B
233
+ [ALLOC_DEFAULT_THREAD]
234
+ Peak usage frame count: [16.0 MB-32.0 MB]: 5461 frames
235
+ Requested Block Size 16.0 MB
236
+ Peak Block count 1
237
+ Peak Allocated memory 17.5 MB
238
+ Peak Large allocation bytes 16.0 MB
239
+ [ALLOC_TEMP_JOB_1_FRAME]
240
+ Initial Block Size 2.0 MB
241
+ Used Block Count 1
242
+ Overflow Count (too large) 0
243
+ Overflow Count (full) 0
244
+ [ALLOC_TEMP_JOB_2_FRAMES]
245
+ Initial Block Size 2.0 MB
246
+ Used Block Count 1
247
+ Overflow Count (too large) 0
248
+ Overflow Count (full) 0
249
+ [ALLOC_TEMP_JOB_4_FRAMES (JobTemp)]
250
+ Initial Block Size 2.0 MB
251
+ Used Block Count 2
252
+ Overflow Count (too large) 0
253
+ Overflow Count (full) 0
254
+ [ALLOC_TEMP_JOB_ASYNC (Background)]
255
+ Initial Block Size 1.0 MB
256
+ Used Block Count 3
257
+ Overflow Count (too large) 0
258
+ Overflow Count (full) 0
259
+ [ALLOC_GFX] Dual Thread Allocator
260
+ Peak main deferred allocation count 0
261
+ [ALLOC_BUCKET]
262
+ Large Block size 4.0 MB
263
+ Used Block count 1
264
+ Peak Allocated bytes 1.0 MB
265
+ [ALLOC_GFX_MAIN]
266
+ Peak usage frame count: [32.0 KB-64.0 KB]: 4643 frames, [64.0 KB-128.0 KB]: 818 frames
267
+ Requested Block Size 16.0 MB
268
+ Peak Block count 1
269
+ Peak Allocated memory 66.8 KB
270
+ Peak Large allocation bytes 0 B
271
+ [ALLOC_GFX_THREAD]
272
+ Peak usage frame count: [32.0 KB-64.0 KB]: 5461 frames
273
+ Requested Block Size 16.0 MB
274
+ Peak Block count 1
275
+ Peak Allocated memory 39.6 KB
276
+ Peak Large allocation bytes 0 B
277
+ [ALLOC_CACHEOBJECTS] Dual Thread Allocator
278
+ Peak main deferred allocation count 0
279
+ [ALLOC_BUCKET]
280
+ Large Block size 4.0 MB
281
+ Used Block count 1
282
+ Peak Allocated bytes 1.0 MB
283
+ [ALLOC_CACHEOBJECTS_MAIN]
284
+ Peak usage frame count: [0.5 MB-1.0 MB]: 5461 frames
285
+ Requested Block Size 4.0 MB
286
+ Peak Block count 1
287
+ Peak Allocated memory 0.6 MB
288
+ Peak Large allocation bytes 0 B
289
+ [ALLOC_CACHEOBJECTS_THREAD]
290
+ Peak usage frame count: [0.5 MB-1.0 MB]: 5460 frames, [2.0 MB-4.0 MB]: 1 frames
291
+ Requested Block Size 4.0 MB
292
+ Peak Block count 1
293
+ Peak Allocated memory 2.2 MB
294
+ Peak Large allocation bytes 0 B
295
+ [ALLOC_TYPETREE] Dual Thread Allocator
296
+ Peak main deferred allocation count 0
297
+ [ALLOC_BUCKET]
298
+ Large Block size 4.0 MB
299
+ Used Block count 1
300
+ Peak Allocated bytes 1.0 MB
301
+ [ALLOC_TYPETREE_MAIN]
302
+ Peak usage frame count: [0-1.0 KB]: 5461 frames
303
+ Requested Block Size 2.0 MB
304
+ Peak Block count 1
305
+ Peak Allocated memory 1.0 KB
306
+ Peak Large allocation bytes 0 B
307
+ [ALLOC_TYPETREE_THREAD]
308
+ Peak usage frame count: [1.0 KB-2.0 KB]: 5461 frames
309
+ Requested Block Size 2.0 MB
310
+ Peak Block count 1
311
+ Peak Allocated memory 1.7 KB
312
+ Peak Large allocation bytes 0 B
run_logs/timers.json ADDED
@@ -0,0 +1,377 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "root",
3
+ "gauges": {
4
+ "SnowballTarget.Policy.Entropy.mean": {
5
+ "value": 0.921726644039154,
6
+ "min": 0.921726644039154,
7
+ "max": 2.869048595428467,
8
+ "count": 20
9
+ },
10
+ "SnowballTarget.Policy.Entropy.sum": {
11
+ "value": 8820.923828125,
12
+ "min": 8820.923828125,
13
+ "max": 29445.044921875,
14
+ "count": 20
15
+ },
16
+ "SnowballTarget.Step.mean": {
17
+ "value": 199984.0,
18
+ "min": 9952.0,
19
+ "max": 199984.0,
20
+ "count": 20
21
+ },
22
+ "SnowballTarget.Step.sum": {
23
+ "value": 199984.0,
24
+ "min": 9952.0,
25
+ "max": 199984.0,
26
+ "count": 20
27
+ },
28
+ "SnowballTarget.Policy.ExtrinsicValueEstimate.mean": {
29
+ "value": 12.656290054321289,
30
+ "min": 0.3638283610343933,
31
+ "max": 12.693205833435059,
32
+ "count": 20
33
+ },
34
+ "SnowballTarget.Policy.ExtrinsicValueEstimate.sum": {
35
+ "value": 2467.9765625,
36
+ "min": 70.58270263671875,
37
+ "max": 2589.4140625,
38
+ "count": 20
39
+ },
40
+ "SnowballTarget.Environment.EpisodeLength.mean": {
41
+ "value": 199.0,
42
+ "min": 199.0,
43
+ "max": 199.0,
44
+ "count": 20
45
+ },
46
+ "SnowballTarget.Environment.EpisodeLength.sum": {
47
+ "value": 8756.0,
48
+ "min": 8756.0,
49
+ "max": 10945.0,
50
+ "count": 20
51
+ },
52
+ "SnowballTarget.Losses.PolicyLoss.mean": {
53
+ "value": 0.06395731891012367,
54
+ "min": 0.06187180142339511,
55
+ "max": 0.07897685625507353,
56
+ "count": 20
57
+ },
58
+ "SnowballTarget.Losses.PolicyLoss.sum": {
59
+ "value": 0.2558292756404947,
60
+ "min": 0.24748720569358043,
61
+ "max": 0.36626040106456653,
62
+ "count": 20
63
+ },
64
+ "SnowballTarget.Losses.ValueLoss.mean": {
65
+ "value": 0.21776851193577637,
66
+ "min": 0.12869044419437392,
67
+ "max": 0.31128797063640523,
68
+ "count": 20
69
+ },
70
+ "SnowballTarget.Losses.ValueLoss.sum": {
71
+ "value": 0.8710740477431055,
72
+ "min": 0.5147617767774957,
73
+ "max": 1.556439853182026,
74
+ "count": 20
75
+ },
76
+ "SnowballTarget.Policy.LearningRate.mean": {
77
+ "value": 8.082097306000005e-06,
78
+ "min": 8.082097306000005e-06,
79
+ "max": 0.000291882002706,
80
+ "count": 20
81
+ },
82
+ "SnowballTarget.Policy.LearningRate.sum": {
83
+ "value": 3.232838922400002e-05,
84
+ "min": 3.232838922400002e-05,
85
+ "max": 0.00138516003828,
86
+ "count": 20
87
+ },
88
+ "SnowballTarget.Policy.Epsilon.mean": {
89
+ "value": 0.10269400000000001,
90
+ "min": 0.10269400000000001,
91
+ "max": 0.19729400000000002,
92
+ "count": 20
93
+ },
94
+ "SnowballTarget.Policy.Epsilon.sum": {
95
+ "value": 0.41077600000000003,
96
+ "min": 0.41077600000000003,
97
+ "max": 0.96172,
98
+ "count": 20
99
+ },
100
+ "SnowballTarget.Policy.Beta.mean": {
101
+ "value": 0.0001444306000000001,
102
+ "min": 0.0001444306000000001,
103
+ "max": 0.0048649706,
104
+ "count": 20
105
+ },
106
+ "SnowballTarget.Policy.Beta.sum": {
107
+ "value": 0.0005777224000000004,
108
+ "min": 0.0005777224000000004,
109
+ "max": 0.023089828,
110
+ "count": 20
111
+ },
112
+ "SnowballTarget.Environment.CumulativeReward.mean": {
113
+ "value": 24.318181818181817,
114
+ "min": 3.25,
115
+ "max": 25.4,
116
+ "count": 20
117
+ },
118
+ "SnowballTarget.Environment.CumulativeReward.sum": {
119
+ "value": 1070.0,
120
+ "min": 143.0,
121
+ "max": 1397.0,
122
+ "count": 20
123
+ },
124
+ "SnowballTarget.Policy.ExtrinsicReward.mean": {
125
+ "value": 24.318181818181817,
126
+ "min": 3.25,
127
+ "max": 25.4,
128
+ "count": 20
129
+ },
130
+ "SnowballTarget.Policy.ExtrinsicReward.sum": {
131
+ "value": 1070.0,
132
+ "min": 143.0,
133
+ "max": 1397.0,
134
+ "count": 20
135
+ },
136
+ "SnowballTarget.IsTraining.mean": {
137
+ "value": 1.0,
138
+ "min": 1.0,
139
+ "max": 1.0,
140
+ "count": 20
141
+ },
142
+ "SnowballTarget.IsTraining.sum": {
143
+ "value": 1.0,
144
+ "min": 1.0,
145
+ "max": 1.0,
146
+ "count": 20
147
+ }
148
+ },
149
+ "metadata": {
150
+ "timer_format_version": "0.1.0",
151
+ "start_time_seconds": "1714645052",
152
+ "python_version": "3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]",
153
+ "command_line_arguments": "/home/pietro/Progetti/AI/005-MlAgents-Unit5-HF/.venv3-10/bin/mlagents-learn ./ml-agents/config/ppo/SnowballTarget.yaml --env=./training-envs-executables/linux/SnowballTarget/SnowballTarget --run-id=SnowballTargetdsd1 --no-graphics",
154
+ "mlagents_version": "1.1.0.dev0",
155
+ "mlagents_envs_version": "1.1.0.dev0",
156
+ "communication_protocol_version": "1.5.0",
157
+ "pytorch_version": "2.3.0+cu121",
158
+ "numpy_version": "1.23.5",
159
+ "end_time_seconds": "1714645620"
160
+ },
161
+ "total": 567.7222288930006,
162
+ "count": 1,
163
+ "self": 0.6218467190010415,
164
+ "children": {
165
+ "run_training.setup": {
166
+ "total": 0.020414257000084035,
167
+ "count": 1,
168
+ "self": 0.020414257000084035
169
+ },
170
+ "TrainerController.start_learning": {
171
+ "total": 567.0799679169995,
172
+ "count": 1,
173
+ "self": 0.5103640379747958,
174
+ "children": {
175
+ "TrainerController._reset_env": {
176
+ "total": 3.4553032380008517,
177
+ "count": 1,
178
+ "self": 3.4553032380008517
179
+ },
180
+ "TrainerController.advance": {
181
+ "total": 562.9980535400236,
182
+ "count": 18202,
183
+ "self": 0.23809769406580017,
184
+ "children": {
185
+ "env_step": {
186
+ "total": 562.7599558459578,
187
+ "count": 18202,
188
+ "self": 332.5064660880489,
189
+ "children": {
190
+ "SubprocessEnvManager._take_step": {
191
+ "total": 229.994347996927,
192
+ "count": 18202,
193
+ "self": 1.556801870918207,
194
+ "children": {
195
+ "TorchPolicy.evaluate": {
196
+ "total": 228.43754612600878,
197
+ "count": 18202,
198
+ "self": 228.43754612600878
199
+ }
200
+ }
201
+ },
202
+ "workers": {
203
+ "total": 0.2591417609819473,
204
+ "count": 18202,
205
+ "self": 0.0,
206
+ "children": {
207
+ "worker_root": {
208
+ "total": 566.1542695759154,
209
+ "count": 18202,
210
+ "is_parallel": true,
211
+ "self": 312.4356956409347,
212
+ "children": {
213
+ "run_training.setup": {
214
+ "total": 0.0,
215
+ "count": 0,
216
+ "is_parallel": true,
217
+ "self": 0.0,
218
+ "children": {
219
+ "steps_from_proto": {
220
+ "total": 0.00369845300065208,
221
+ "count": 1,
222
+ "is_parallel": true,
223
+ "self": 0.0020947770008206135,
224
+ "children": {
225
+ "_process_rank_one_or_two_observation": {
226
+ "total": 0.0016036759998314665,
227
+ "count": 10,
228
+ "is_parallel": true,
229
+ "self": 0.0016036759998314665
230
+ }
231
+ }
232
+ },
233
+ "UnityEnvironment.step": {
234
+ "total": 0.03076288200009003,
235
+ "count": 1,
236
+ "is_parallel": true,
237
+ "self": 0.0003279980001025251,
238
+ "children": {
239
+ "UnityEnvironment._generate_step_input": {
240
+ "total": 0.00021757700051239226,
241
+ "count": 1,
242
+ "is_parallel": true,
243
+ "self": 0.00021757700051239226
244
+ },
245
+ "communicator.exchange": {
246
+ "total": 0.029086523999467317,
247
+ "count": 1,
248
+ "is_parallel": true,
249
+ "self": 0.029086523999467317
250
+ },
251
+ "steps_from_proto": {
252
+ "total": 0.0011307830000077956,
253
+ "count": 1,
254
+ "is_parallel": true,
255
+ "self": 0.0002498620024198317,
256
+ "children": {
257
+ "_process_rank_one_or_two_observation": {
258
+ "total": 0.0008809209975879639,
259
+ "count": 10,
260
+ "is_parallel": true,
261
+ "self": 0.0008809209975879639
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ },
269
+ "UnityEnvironment.step": {
270
+ "total": 253.71857393498067,
271
+ "count": 18201,
272
+ "is_parallel": true,
273
+ "self": 5.217724076805098,
274
+ "children": {
275
+ "UnityEnvironment._generate_step_input": {
276
+ "total": 2.9209072420308075,
277
+ "count": 18201,
278
+ "is_parallel": true,
279
+ "self": 2.9209072420308075
280
+ },
281
+ "communicator.exchange": {
282
+ "total": 229.78817997805254,
283
+ "count": 18201,
284
+ "is_parallel": true,
285
+ "self": 229.78817997805254
286
+ },
287
+ "steps_from_proto": {
288
+ "total": 15.791762638092223,
289
+ "count": 18201,
290
+ "is_parallel": true,
291
+ "self": 3.62281502715814,
292
+ "children": {
293
+ "_process_rank_one_or_two_observation": {
294
+ "total": 12.168947610934083,
295
+ "count": 182010,
296
+ "is_parallel": true,
297
+ "self": 12.168947610934083
298
+ }
299
+ }
300
+ }
301
+ }
302
+ }
303
+ }
304
+ }
305
+ }
306
+ }
307
+ }
308
+ }
309
+ }
310
+ },
311
+ "trainer_threads": {
312
+ "total": 0.00014706399997521657,
313
+ "count": 1,
314
+ "self": 0.00014706399997521657,
315
+ "children": {
316
+ "thread_root": {
317
+ "total": 0.0,
318
+ "count": 0,
319
+ "is_parallel": true,
320
+ "self": 0.0,
321
+ "children": {
322
+ "trainer_advance": {
323
+ "total": 558.7350275819699,
324
+ "count": 573531,
325
+ "is_parallel": true,
326
+ "self": 11.7732297948196,
327
+ "children": {
328
+ "process_trajectory": {
329
+ "total": 323.8911240311472,
330
+ "count": 573531,
331
+ "is_parallel": true,
332
+ "self": 323.1746811501471,
333
+ "children": {
334
+ "RLTrainer._checkpoint": {
335
+ "total": 0.7164428810001482,
336
+ "count": 4,
337
+ "is_parallel": true,
338
+ "self": 0.7164428810001482
339
+ }
340
+ }
341
+ },
342
+ "_update_policy": {
343
+ "total": 223.0706737560031,
344
+ "count": 90,
345
+ "is_parallel": true,
346
+ "self": 26.754162068983533,
347
+ "children": {
348
+ "TorchPPOOptimizer.update": {
349
+ "total": 196.31651168701956,
350
+ "count": 4584,
351
+ "is_parallel": true,
352
+ "self": 196.31651168701956
353
+ }
354
+ }
355
+ }
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+ },
362
+ "TrainerController._save_models": {
363
+ "total": 0.11610003700025118,
364
+ "count": 1,
365
+ "self": 0.0012262300006113946,
366
+ "children": {
367
+ "RLTrainer._checkpoint": {
368
+ "total": 0.11487380699963978,
369
+ "count": 1,
370
+ "self": 0.11487380699963978
371
+ }
372
+ }
373
+ }
374
+ }
375
+ }
376
+ }
377
+ }
run_logs/training_status.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "SnowballTarget": {
3
+ "checkpoints": [
4
+ {
5
+ "steps": 49936,
6
+ "file_path": "results/SnowballTargetdsd1/SnowballTarget/SnowballTarget-49936.onnx",
7
+ "reward": 13.636363636363637,
8
+ "creation_time": 1714645197.516361,
9
+ "auxillary_file_paths": [
10
+ "results/SnowballTargetdsd1/SnowballTarget/SnowballTarget-49936.pt"
11
+ ]
12
+ },
13
+ {
14
+ "steps": 99960,
15
+ "file_path": "results/SnowballTargetdsd1/SnowballTarget/SnowballTarget-99960.onnx",
16
+ "reward": 20.272727272727273,
17
+ "creation_time": 1714645336.8296673,
18
+ "auxillary_file_paths": [
19
+ "results/SnowballTargetdsd1/SnowballTarget/SnowballTarget-99960.pt"
20
+ ]
21
+ },
22
+ {
23
+ "steps": 149984,
24
+ "file_path": "results/SnowballTargetdsd1/SnowballTarget/SnowballTarget-149984.onnx",
25
+ "reward": 24.818181818181817,
26
+ "creation_time": 1714645475.8539684,
27
+ "auxillary_file_paths": [
28
+ "results/SnowballTargetdsd1/SnowballTarget/SnowballTarget-149984.pt"
29
+ ]
30
+ },
31
+ {
32
+ "steps": 199984,
33
+ "file_path": "results/SnowballTargetdsd1/SnowballTarget/SnowballTarget-199984.onnx",
34
+ "reward": 24.90909090909091,
35
+ "creation_time": 1714645619.4950905,
36
+ "auxillary_file_paths": [
37
+ "results/SnowballTargetdsd1/SnowballTarget/SnowballTarget-199984.pt"
38
+ ]
39
+ },
40
+ {
41
+ "steps": 200112,
42
+ "file_path": "results/SnowballTargetdsd1/SnowballTarget/SnowballTarget-200112.onnx",
43
+ "reward": 24.90909090909091,
44
+ "creation_time": 1714645619.6404424,
45
+ "auxillary_file_paths": [
46
+ "results/SnowballTargetdsd1/SnowballTarget/SnowballTarget-200112.pt"
47
+ ]
48
+ }
49
+ ],
50
+ "final_checkpoint": {
51
+ "steps": 200112,
52
+ "file_path": "results/SnowballTargetdsd1/SnowballTarget.onnx",
53
+ "reward": 24.90909090909091,
54
+ "creation_time": 1714645619.6404424,
55
+ "auxillary_file_paths": [
56
+ "results/SnowballTargetdsd1/SnowballTarget/SnowballTarget-200112.pt"
57
+ ]
58
+ }
59
+ },
60
+ "metadata": {
61
+ "stats_format_version": "0.3.0",
62
+ "mlagents_version": "1.1.0.dev0",
63
+ "torch_version": "2.3.0+cu121"
64
+ }
65
+ }