patonw commited on
Commit
48051ae
1 Parent(s): 5bd722d
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: patonw/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:58c90572cbd52e85d41c81fc548e344060b8d4a0d1391cfa597dc63575dd62e9
3
+ size 260484
SnowballTarget/SnowballTarget-499976.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58c90572cbd52e85d41c81fc548e344060b8d4a0d1391cfa597dc63575dd62e9
3
+ size 260484
SnowballTarget/SnowballTarget-499976.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c1ffd3541764166fea7737c52acf29684f3901b871d17e80ed91196c915a8e0
3
+ size 1538304
SnowballTarget/SnowballTarget-500104.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58c90572cbd52e85d41c81fc548e344060b8d4a0d1391cfa597dc63575dd62e9
3
+ size 260484
SnowballTarget/SnowballTarget-500104.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cdbbcd7a344f2eb5c98ee14c1ec781f83d41567da2f10509084b3632f44cf5a
3
+ size 1538304
SnowballTarget/checkpoint.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cdbbcd7a344f2eb5c98ee14c1ec781f83d41567da2f10509084b3632f44cf5a
3
+ size 1538304
SnowballTarget/events.out.tfevents.1691535835.muon.496.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8138d071368fccfd22a105757173aa00f5e74e2f6db2cc79dad1197606098ae1
3
+ size 20093
config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"default_settings": null, "behaviors": {"SnowballTarget": {"trainer_type": "ppo", "hyperparameters": {"batch_size": 1024, "buffer_size": 10240, "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": 500000, "network_settings": {"normalize": false, "hidden_units": 128, "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": 5, "even_checkpoints": false, "max_steps": 500000, "time_horizon": 64, "summary_freq": 50000, "threaded": false, "self_play": null, "behavioral_cloning": null}}, "env_settings": {"env_path": "envs/SnowballTarget/SnowballTarget", "env_args": null, "base_port": 5005, "num_envs": 1, "num_areas": 1, "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}, "environment_parameters": null, "checkpoint_settings": {"run_id": "SnowballTarget-00", "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,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ default_settings: null
2
+ behaviors:
3
+ SnowballTarget:
4
+ trainer_type: ppo
5
+ hyperparameters:
6
+ batch_size: 1024
7
+ buffer_size: 10240
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: 500000
18
+ network_settings:
19
+ normalize: false
20
+ hidden_units: 128
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: 5
40
+ even_checkpoints: false
41
+ max_steps: 500000
42
+ time_horizon: 64
43
+ summary_freq: 50000
44
+ threaded: false
45
+ self_play: null
46
+ behavioral_cloning: null
47
+ env_settings:
48
+ env_path: envs/SnowballTarget/SnowballTarget
49
+ env_args: null
50
+ base_port: 5005
51
+ num_envs: 1
52
+ num_areas: 1
53
+ seed: -1
54
+ max_lifetime_restarts: 10
55
+ restarts_rate_limit_n: 1
56
+ restarts_rate_limit_period_s: 60
57
+ engine_settings:
58
+ width: 84
59
+ height: 84
60
+ quality_level: 5
61
+ time_scale: 20
62
+ target_frame_rate: -1
63
+ capture_frame_rate: 60
64
+ no_graphics: true
65
+ environment_parameters: null
66
+ checkpoint_settings:
67
+ run_id: SnowballTarget-00
68
+ initialize_from: null
69
+ load_model: false
70
+ resume: false
71
+ force: false
72
+ train_model: false
73
+ inference: false
74
+ results_dir: results
75
+ torch_settings:
76
+ device: null
77
+ debug: false
run_logs/Player-0.log ADDED
@@ -0,0 +1,350 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Mono path[0] = '/home/patonw/code/Unity/ml-agents/envs/SnowballTarget/SnowballTarget_Data/Managed'
2
+ Mono config path = '/home/patonw/code/Unity/ml-agents/envs/SnowballTarget/SnowballTarget_Data/MonoBleedingEdge/etc'
3
+ Preloaded 'lib_burst_generated.so'
4
+ Preloaded 'libgrpc_csharp_ext.x64.so'
5
+ Initialize engine version: 2021.3.14f1 (eee1884e7226)
6
+ [Subsystems] Discovering subsystems at path /home/patonw/code/Unity/ml-agents/envs/SnowballTarget/SnowballTarget_Data/UnitySubsystems
7
+ Forcing GfxDevice: Null
8
+ GfxDevice: creating device client; threaded=0; jobified=0
9
+ NullGfxDevice:
10
+ Version: NULL 1.0 [1.0]
11
+ Renderer: Null Device
12
+ Vendor: Unity Technologies
13
+ FMOD initialized on nosound output
14
+ Begin MonoManager ReloadAssembly
15
+ - Completed reload, in 0.042 seconds
16
+ ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
17
+ ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
18
+ ERROR: Shader Legacy Shaders/VertexLit shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
19
+ WARNING: Shader Unsupported: 'Standard' - All subshaders removed
20
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
21
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
22
+ ERROR: Shader Standard shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
23
+ WARNING: Shader Unsupported: 'Standard' - All subshaders removed
24
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
25
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
26
+ UnloadTime: 0.403086 ms
27
+ ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
28
+ requesting resize 84 x 84
29
+ Setting up 12 worker threads for Enlighten.
30
+ Memory Statistics:
31
+ [ALLOC_TEMP_TLS] TLS Allocator
32
+ StackAllocators :
33
+ [ALLOC_TEMP_MAIN]
34
+ Peak usage frame count: [8.0 KB-16.0 KB]: 13412 frames, [16.0 KB-32.0 KB]: 227 frames, [2.0 MB-4.0 MB]: 1 frames
35
+ Initial Block Size 4.0 MB
36
+ Current Block Size 4.0 MB
37
+ Peak Allocated Bytes 2.0 MB
38
+ Overflow Count 0
39
+ [ALLOC_TEMP_Job.Worker 18]
40
+ Initial Block Size 256.0 KB
41
+ Current Block Size 256.0 KB
42
+ Peak Allocated Bytes 3.6 KB
43
+ Overflow Count 0
44
+ [ALLOC_TEMP_Loading.PreloadManager]
45
+ Initial Block Size 256.0 KB
46
+ Current Block Size 304.0 KB
47
+ Peak Allocated Bytes 228.8 KB
48
+ Overflow Count 4
49
+ [ALLOC_TEMP_Background Job.Worker 8]
50
+ Initial Block Size 32.0 KB
51
+ Current Block Size 32.0 KB
52
+ Peak Allocated Bytes 0 B
53
+ Overflow Count 0
54
+ [ALLOC_TEMP_Background Job.Worker 10]
55
+ Initial Block Size 32.0 KB
56
+ Current Block Size 32.0 KB
57
+ Peak Allocated Bytes 0 B
58
+ Overflow Count 0
59
+ [ALLOC_TEMP_Job.Worker 16]
60
+ Initial Block Size 256.0 KB
61
+ Current Block Size 256.0 KB
62
+ Peak Allocated Bytes 3.6 KB
63
+ Overflow Count 0
64
+ [ALLOC_TEMP_Background Job.Worker 6]
65
+ Initial Block Size 32.0 KB
66
+ Current Block Size 32.0 KB
67
+ Peak Allocated Bytes 0 B
68
+ Overflow Count 0
69
+ [ALLOC_TEMP_Job.Worker 4]
70
+ Initial Block Size 256.0 KB
71
+ Current Block Size 256.0 KB
72
+ Peak Allocated Bytes 3.6 KB
73
+ Overflow Count 0
74
+ [ALLOC_TEMP_Job.Worker 14]
75
+ Initial Block Size 256.0 KB
76
+ Current Block Size 256.0 KB
77
+ Peak Allocated Bytes 3.6 KB
78
+ Overflow Count 0
79
+ [ALLOC_TEMP_Job.Worker 17]
80
+ Initial Block Size 256.0 KB
81
+ Current Block Size 256.0 KB
82
+ Peak Allocated Bytes 3.6 KB
83
+ Overflow Count 0
84
+ [ALLOC_TEMP_Job.Worker 3]
85
+ Initial Block Size 256.0 KB
86
+ Current Block Size 256.0 KB
87
+ Peak Allocated Bytes 3.6 KB
88
+ Overflow Count 0
89
+ [ALLOC_TEMP_Background Job.Worker 12]
90
+ Initial Block Size 32.0 KB
91
+ Current Block Size 32.0 KB
92
+ Peak Allocated Bytes 0 B
93
+ Overflow Count 0
94
+ [ALLOC_TEMP_Background Job.Worker 1]
95
+ Initial Block Size 32.0 KB
96
+ Current Block Size 32.0 KB
97
+ Peak Allocated Bytes 0 B
98
+ Overflow Count 0
99
+ [ALLOC_TEMP_AssetGarbageCollectorHelper] x 23
100
+ Initial Block Size 64.0 KB
101
+ Current Block Size 64.0 KB
102
+ Peak Allocated Bytes 0 B
103
+ Overflow Count 0
104
+ [ALLOC_TEMP_Background Job.Worker 5]
105
+ Initial Block Size 32.0 KB
106
+ Current Block Size 32.0 KB
107
+ Peak Allocated Bytes 0 B
108
+ Overflow Count 0
109
+ [ALLOC_TEMP_Background Job.Worker 13]
110
+ Initial Block Size 32.0 KB
111
+ Current Block Size 32.0 KB
112
+ Peak Allocated Bytes 0 B
113
+ Overflow Count 0
114
+ [ALLOC_TEMP_Background Job.Worker 11]
115
+ Initial Block Size 32.0 KB
116
+ Current Block Size 32.0 KB
117
+ Peak Allocated Bytes 0 B
118
+ Overflow Count 0
119
+ [ALLOC_TEMP_Job.Worker 2]
120
+ Initial Block Size 256.0 KB
121
+ Current Block Size 256.0 KB
122
+ Peak Allocated Bytes 3.6 KB
123
+ Overflow Count 0
124
+ [ALLOC_TEMP_Background Job.Worker 3]
125
+ Initial Block Size 32.0 KB
126
+ Current Block Size 32.0 KB
127
+ Peak Allocated Bytes 0 B
128
+ Overflow Count 0
129
+ [ALLOC_TEMP_Background Job.Worker 0]
130
+ Initial Block Size 32.0 KB
131
+ Current Block Size 32.0 KB
132
+ Peak Allocated Bytes 0 B
133
+ Overflow Count 0
134
+ [ALLOC_TEMP_Job.Worker 20]
135
+ Initial Block Size 256.0 KB
136
+ Current Block Size 256.0 KB
137
+ Peak Allocated Bytes 3.6 KB
138
+ Overflow Count 0
139
+ [ALLOC_TEMP_Job.Worker 11]
140
+ Initial Block Size 256.0 KB
141
+ Current Block Size 256.0 KB
142
+ Peak Allocated Bytes 3.6 KB
143
+ Overflow Count 0
144
+ [ALLOC_TEMP_Background Job.Worker 4]
145
+ Initial Block Size 32.0 KB
146
+ Current Block Size 32.0 KB
147
+ Peak Allocated Bytes 0 B
148
+ Overflow Count 0
149
+ [ALLOC_TEMP_BatchDeleteObjects]
150
+ Initial Block Size 64.0 KB
151
+ Current Block Size 64.0 KB
152
+ Peak Allocated Bytes 0 B
153
+ Overflow Count 0
154
+ [ALLOC_TEMP_Job.Worker 6]
155
+ Initial Block Size 256.0 KB
156
+ Current Block Size 256.0 KB
157
+ Peak Allocated Bytes 3.6 KB
158
+ Overflow Count 0
159
+ [ALLOC_TEMP_Job.Worker 0]
160
+ Initial Block Size 256.0 KB
161
+ Current Block Size 256.0 KB
162
+ Peak Allocated Bytes 3.6 KB
163
+ Overflow Count 0
164
+ [ALLOC_TEMP_Job.Worker 21]
165
+ Initial Block Size 256.0 KB
166
+ Current Block Size 256.0 KB
167
+ Peak Allocated Bytes 3.6 KB
168
+ Overflow Count 0
169
+ [ALLOC_TEMP_Job.Worker 5]
170
+ Initial Block Size 256.0 KB
171
+ Current Block Size 256.0 KB
172
+ Peak Allocated Bytes 3.6 KB
173
+ Overflow Count 0
174
+ [ALLOC_TEMP_Background Job.Worker 9]
175
+ Initial Block Size 32.0 KB
176
+ Current Block Size 32.0 KB
177
+ Peak Allocated Bytes 0 B
178
+ Overflow Count 0
179
+ [ALLOC_TEMP_Background Job.Worker 14]
180
+ Initial Block Size 32.0 KB
181
+ Current Block Size 32.0 KB
182
+ Peak Allocated Bytes 0 B
183
+ Overflow Count 0
184
+ [ALLOC_TEMP_Job.Worker 13]
185
+ Initial Block Size 256.0 KB
186
+ Current Block Size 256.0 KB
187
+ Peak Allocated Bytes 3.6 KB
188
+ Overflow Count 0
189
+ [ALLOC_TEMP_EnlightenWorker] x 12
190
+ Initial Block Size 64.0 KB
191
+ Current Block Size 64.0 KB
192
+ Peak Allocated Bytes 0 B
193
+ Overflow Count 0
194
+ [ALLOC_TEMP_Background Job.Worker 15]
195
+ Initial Block Size 32.0 KB
196
+ Current Block Size 32.0 KB
197
+ Peak Allocated Bytes 0 B
198
+ Overflow Count 0
199
+ [ALLOC_TEMP_Background Job.Worker 2]
200
+ Initial Block Size 32.0 KB
201
+ Current Block Size 32.0 KB
202
+ Peak Allocated Bytes 0 B
203
+ Overflow Count 0
204
+ [ALLOC_TEMP_Background Job.Worker 7]
205
+ Initial Block Size 32.0 KB
206
+ Current Block Size 32.0 KB
207
+ Peak Allocated Bytes 0 B
208
+ Overflow Count 0
209
+ [ALLOC_TEMP_Job.Worker 22]
210
+ Initial Block Size 256.0 KB
211
+ Current Block Size 256.0 KB
212
+ Peak Allocated Bytes 3.6 KB
213
+ Overflow Count 0
214
+ [ALLOC_TEMP_Job.Worker 9]
215
+ Initial Block Size 256.0 KB
216
+ Current Block Size 256.0 KB
217
+ Peak Allocated Bytes 3.6 KB
218
+ Overflow Count 0
219
+ [ALLOC_TEMP_Job.Worker 8]
220
+ Initial Block Size 256.0 KB
221
+ Current Block Size 256.0 KB
222
+ Peak Allocated Bytes 3.6 KB
223
+ Overflow Count 0
224
+ [ALLOC_TEMP_Job.Worker 7]
225
+ Initial Block Size 256.0 KB
226
+ Current Block Size 256.0 KB
227
+ Peak Allocated Bytes 3.6 KB
228
+ Overflow Count 0
229
+ [ALLOC_TEMP_Job.Worker 1]
230
+ Initial Block Size 256.0 KB
231
+ Current Block Size 256.0 KB
232
+ Peak Allocated Bytes 3.6 KB
233
+ Overflow Count 0
234
+ [ALLOC_TEMP_Job.Worker 10]
235
+ Initial Block Size 256.0 KB
236
+ Current Block Size 256.0 KB
237
+ Peak Allocated Bytes 3.6 KB
238
+ Overflow Count 0
239
+ [ALLOC_TEMP_Job.Worker 15]
240
+ Initial Block Size 256.0 KB
241
+ Current Block Size 256.0 KB
242
+ Peak Allocated Bytes 3.6 KB
243
+ Overflow Count 0
244
+ [ALLOC_TEMP_Job.Worker 19]
245
+ Initial Block Size 256.0 KB
246
+ Current Block Size 256.0 KB
247
+ Peak Allocated Bytes 3.6 KB
248
+ Overflow Count 0
249
+ [ALLOC_TEMP_Job.Worker 12]
250
+ Initial Block Size 256.0 KB
251
+ Current Block Size 256.0 KB
252
+ Peak Allocated Bytes 3.6 KB
253
+ Overflow Count 0
254
+ [ALLOC_TEMP_Loading.AsyncRead]
255
+ Initial Block Size 64.0 KB
256
+ Current Block Size 64.0 KB
257
+ Peak Allocated Bytes 174 B
258
+ Overflow Count 0
259
+ [ALLOC_DEFAULT] Dual Thread Allocator
260
+ Peak main deferred allocation count 37
261
+ [ALLOC_BUCKET]
262
+ Large Block size 4.0 MB
263
+ Used Block count 1
264
+ Peak Allocated bytes 1.0 MB
265
+ [ALLOC_DEFAULT_MAIN]
266
+ Peak usage frame count: [4.0 MB-8.0 MB]: 11353 frames, [8.0 MB-16.0 MB]: 2287 frames
267
+ Requested Block Size 16.0 MB
268
+ Peak Block count 1
269
+ Peak Allocated memory 9.9 MB
270
+ Peak Large allocation bytes 0 B
271
+ [ALLOC_DEFAULT_THREAD]
272
+ Peak usage frame count: [16.0 MB-32.0 MB]: 13640 frames
273
+ Requested Block Size 16.0 MB
274
+ Peak Block count 1
275
+ Peak Allocated memory 17.5 MB
276
+ Peak Large allocation bytes 16.0 MB
277
+ [ALLOC_TEMP_JOB_1_FRAME]
278
+ Initial Block Size 2.0 MB
279
+ Used Block Count 1
280
+ Overflow Count (too large) 0
281
+ Overflow Count (full) 0
282
+ [ALLOC_TEMP_JOB_2_FRAMES]
283
+ Initial Block Size 2.0 MB
284
+ Used Block Count 1
285
+ Overflow Count (too large) 0
286
+ Overflow Count (full) 0
287
+ [ALLOC_TEMP_JOB_4_FRAMES (JobTemp)]
288
+ Initial Block Size 2.0 MB
289
+ Used Block Count 2
290
+ Overflow Count (too large) 0
291
+ Overflow Count (full) 0
292
+ [ALLOC_TEMP_JOB_ASYNC (Background)]
293
+ Initial Block Size 1.0 MB
294
+ Used Block Count 3
295
+ Overflow Count (too large) 0
296
+ Overflow Count (full) 0
297
+ [ALLOC_GFX] Dual Thread Allocator
298
+ Peak main deferred allocation count 0
299
+ [ALLOC_BUCKET]
300
+ Large Block size 4.0 MB
301
+ Used Block count 1
302
+ Peak Allocated bytes 1.0 MB
303
+ [ALLOC_GFX_MAIN]
304
+ Peak usage frame count: [32.0 KB-64.0 KB]: 10453 frames, [64.0 KB-128.0 KB]: 3187 frames
305
+ Requested Block Size 16.0 MB
306
+ Peak Block count 1
307
+ Peak Allocated memory 67.3 KB
308
+ Peak Large allocation bytes 0 B
309
+ [ALLOC_GFX_THREAD]
310
+ Peak usage frame count: [32.0 KB-64.0 KB]: 13640 frames
311
+ Requested Block Size 16.0 MB
312
+ Peak Block count 1
313
+ Peak Allocated memory 39.6 KB
314
+ Peak Large allocation bytes 0 B
315
+ [ALLOC_CACHEOBJECTS] Dual Thread Allocator
316
+ Peak main deferred allocation count 0
317
+ [ALLOC_BUCKET]
318
+ Large Block size 4.0 MB
319
+ Used Block count 1
320
+ Peak Allocated bytes 1.0 MB
321
+ [ALLOC_CACHEOBJECTS_MAIN]
322
+ Peak usage frame count: [0.5 MB-1.0 MB]: 13640 frames
323
+ Requested Block Size 4.0 MB
324
+ Peak Block count 1
325
+ Peak Allocated memory 0.6 MB
326
+ Peak Large allocation bytes 0 B
327
+ [ALLOC_CACHEOBJECTS_THREAD]
328
+ Peak usage frame count: [0.5 MB-1.0 MB]: 13639 frames, [2.0 MB-4.0 MB]: 1 frames
329
+ Requested Block Size 4.0 MB
330
+ Peak Block count 1
331
+ Peak Allocated memory 2.2 MB
332
+ Peak Large allocation bytes 0 B
333
+ [ALLOC_TYPETREE] Dual Thread Allocator
334
+ Peak main deferred allocation count 0
335
+ [ALLOC_BUCKET]
336
+ Large Block size 4.0 MB
337
+ Used Block count 1
338
+ Peak Allocated bytes 1.0 MB
339
+ [ALLOC_TYPETREE_MAIN]
340
+ Peak usage frame count: [0-1.0 KB]: 13640 frames
341
+ Requested Block Size 2.0 MB
342
+ Peak Block count 1
343
+ Peak Allocated memory 1.0 KB
344
+ Peak Large allocation bytes 0 B
345
+ [ALLOC_TYPETREE_THREAD]
346
+ Peak usage frame count: [1.0 KB-2.0 KB]: 13640 frames
347
+ Requested Block Size 2.0 MB
348
+ Peak Block count 1
349
+ Peak Allocated memory 1.7 KB
350
+ Peak Large allocation bytes 0 B
run_logs/timers.json ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "root",
3
+ "gauges": {
4
+ "SnowballTarget.Policy.Entropy.mean": {
5
+ "value": 1.1804736852645874,
6
+ "min": 1.1804736852645874,
7
+ "max": 2.8626716136932373,
8
+ "count": 10
9
+ },
10
+ "SnowballTarget.Policy.Entropy.sum": {
11
+ "value": 58900.91796875,
12
+ "min": 58900.91796875,
13
+ "max": 144599.265625,
14
+ "count": 10
15
+ },
16
+ "SnowballTarget.Step.mean": {
17
+ "value": 499976.0,
18
+ "min": 49936.0,
19
+ "max": 499976.0,
20
+ "count": 10
21
+ },
22
+ "SnowballTarget.Step.sum": {
23
+ "value": 499976.0,
24
+ "min": 49936.0,
25
+ "max": 499976.0,
26
+ "count": 10
27
+ },
28
+ "SnowballTarget.Policy.ExtrinsicValueEstimate.mean": {
29
+ "value": 11.168292045593262,
30
+ "min": 0.26721879839897156,
31
+ "max": 11.168292045593262,
32
+ "count": 10
33
+ },
34
+ "SnowballTarget.Policy.ExtrinsicValueEstimate.sum": {
35
+ "value": 11201.796875,
36
+ "min": 265.0810546875,
37
+ "max": 11201.796875,
38
+ "count": 10
39
+ },
40
+ "SnowballTarget.Environment.EpisodeLength.mean": {
41
+ "value": 199.0,
42
+ "min": 199.0,
43
+ "max": 199.0,
44
+ "count": 10
45
+ },
46
+ "SnowballTarget.Environment.EpisodeLength.sum": {
47
+ "value": 50347.0,
48
+ "min": 48158.0,
49
+ "max": 50347.0,
50
+ "count": 10
51
+ },
52
+ "SnowballTarget.Environment.CumulativeReward.mean": {
53
+ "value": 23.25296442687747,
54
+ "min": 3.7892561983471076,
55
+ "max": 23.25296442687747,
56
+ "count": 10
57
+ },
58
+ "SnowballTarget.Environment.CumulativeReward.sum": {
59
+ "value": 5883.0,
60
+ "min": 917.0,
61
+ "max": 5883.0,
62
+ "count": 10
63
+ },
64
+ "SnowballTarget.Policy.ExtrinsicReward.mean": {
65
+ "value": 23.25296442687747,
66
+ "min": 3.7892561983471076,
67
+ "max": 23.25296442687747,
68
+ "count": 10
69
+ },
70
+ "SnowballTarget.Policy.ExtrinsicReward.sum": {
71
+ "value": 5883.0,
72
+ "min": 917.0,
73
+ "max": 5883.0,
74
+ "count": 10
75
+ },
76
+ "SnowballTarget.Losses.PolicyLoss.mean": {
77
+ "value": 0.02497695688798558,
78
+ "min": 0.02214559779730886,
79
+ "max": 0.025577116236672737,
80
+ "count": 10
81
+ },
82
+ "SnowballTarget.Losses.PolicyLoss.sum": {
83
+ "value": 0.09990782755194232,
84
+ "min": 0.09014036386039759,
85
+ "max": 0.12788558118336368,
86
+ "count": 10
87
+ },
88
+ "SnowballTarget.Losses.ValueLoss.mean": {
89
+ "value": 0.259774170940121,
90
+ "min": 0.12491041819254556,
91
+ "max": 0.3170946991443634,
92
+ "count": 10
93
+ },
94
+ "SnowballTarget.Losses.ValueLoss.sum": {
95
+ "value": 1.039096683760484,
96
+ "min": 0.49964167277018223,
97
+ "max": 1.585473495721817,
98
+ "count": 10
99
+ },
100
+ "SnowballTarget.Policy.LearningRate.mean": {
101
+ "value": 1.4576495141199999e-05,
102
+ "min": 1.4576495141199999e-05,
103
+ "max": 0.0002841864052712,
104
+ "count": 10
105
+ },
106
+ "SnowballTarget.Policy.LearningRate.sum": {
107
+ "value": 5.8305980564799996e-05,
108
+ "min": 5.8305980564799996e-05,
109
+ "max": 0.0012797184734271998,
110
+ "count": 10
111
+ },
112
+ "SnowballTarget.Policy.Epsilon.mean": {
113
+ "value": 0.1048588,
114
+ "min": 0.1048588,
115
+ "max": 0.19472879999999998,
116
+ "count": 10
117
+ },
118
+ "SnowballTarget.Policy.Epsilon.sum": {
119
+ "value": 0.4194352,
120
+ "min": 0.4194352,
121
+ "max": 0.9265728000000001,
122
+ "count": 10
123
+ },
124
+ "SnowballTarget.Policy.Beta.mean": {
125
+ "value": 0.00025245412000000005,
126
+ "min": 0.00025245412000000005,
127
+ "max": 0.004736967120000001,
128
+ "count": 10
129
+ },
130
+ "SnowballTarget.Policy.Beta.sum": {
131
+ "value": 0.0010098164800000002,
132
+ "min": 0.0010098164800000002,
133
+ "max": 0.02133598272,
134
+ "count": 10
135
+ },
136
+ "SnowballTarget.IsTraining.mean": {
137
+ "value": 1.0,
138
+ "min": 1.0,
139
+ "max": 1.0,
140
+ "count": 10
141
+ },
142
+ "SnowballTarget.IsTraining.sum": {
143
+ "value": 1.0,
144
+ "min": 1.0,
145
+ "max": 1.0,
146
+ "count": 10
147
+ }
148
+ },
149
+ "metadata": {
150
+ "timer_format_version": "0.1.0",
151
+ "start_time_seconds": "1691535835",
152
+ "python_version": "3.9.0 | packaged by conda-forge | (default, Nov 26 2020, 07:57:39) \n[GCC 9.3.0]",
153
+ "command_line_arguments": "/home/patonw/code/Unity/ml-agents/.mamba/envs/my-mamba-environment/bin/mlagents-learn --env envs/SnowballTarget/SnowballTarget --run-id SnowballTarget-00 --no-graphics",
154
+ "mlagents_version": "0.31.0.dev0",
155
+ "mlagents_envs_version": "0.31.0.dev0",
156
+ "communication_protocol_version": "1.5.0",
157
+ "pytorch_version": "1.11.0+cu113",
158
+ "numpy_version": "1.21.2",
159
+ "end_time_seconds": "1691536233"
160
+ },
161
+ "total": 397.5904882770001,
162
+ "count": 1,
163
+ "self": 0.16756914499910636,
164
+ "children": {
165
+ "run_training.setup": {
166
+ "total": 0.009706085000289022,
167
+ "count": 1,
168
+ "self": 0.009706085000289022
169
+ },
170
+ "TrainerController.start_learning": {
171
+ "total": 397.4132130470007,
172
+ "count": 1,
173
+ "self": 0.4216114859382287,
174
+ "children": {
175
+ "TrainerController._reset_env": {
176
+ "total": 2.8039782200003174,
177
+ "count": 1,
178
+ "self": 2.8039782200003174
179
+ },
180
+ "TrainerController.advance": {
181
+ "total": 394.12958664506186,
182
+ "count": 45464,
183
+ "self": 0.4558704629644126,
184
+ "children": {
185
+ "env_step": {
186
+ "total": 299.8565515001337,
187
+ "count": 45464,
188
+ "self": 234.38348336796116,
189
+ "children": {
190
+ "SubprocessEnvManager._take_step": {
191
+ "total": 65.17549070208679,
192
+ "count": 45464,
193
+ "self": 2.199336155135825,
194
+ "children": {
195
+ "TorchPolicy.evaluate": {
196
+ "total": 62.976154546950966,
197
+ "count": 45464,
198
+ "self": 62.976154546950966
199
+ }
200
+ }
201
+ },
202
+ "workers": {
203
+ "total": 0.29757743008576654,
204
+ "count": 45464,
205
+ "self": 0.0,
206
+ "children": {
207
+ "worker_root": {
208
+ "total": 396.46577788996547,
209
+ "count": 45464,
210
+ "is_parallel": true,
211
+ "self": 189.33736107609184,
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.0008597330006523407,
221
+ "count": 1,
222
+ "is_parallel": true,
223
+ "self": 0.00023353200140263652,
224
+ "children": {
225
+ "_process_rank_one_or_two_observation": {
226
+ "total": 0.0006262009992497042,
227
+ "count": 10,
228
+ "is_parallel": true,
229
+ "self": 0.0006262009992497042
230
+ }
231
+ }
232
+ },
233
+ "UnityEnvironment.step": {
234
+ "total": 0.01475060999928246,
235
+ "count": 1,
236
+ "is_parallel": true,
237
+ "self": 0.00021816299886268098,
238
+ "children": {
239
+ "UnityEnvironment._generate_step_input": {
240
+ "total": 0.0001838770003814716,
241
+ "count": 1,
242
+ "is_parallel": true,
243
+ "self": 0.0001838770003814716
244
+ },
245
+ "communicator.exchange": {
246
+ "total": 0.013640483000017412,
247
+ "count": 1,
248
+ "is_parallel": true,
249
+ "self": 0.013640483000017412
250
+ },
251
+ "steps_from_proto": {
252
+ "total": 0.0007080870000208961,
253
+ "count": 1,
254
+ "is_parallel": true,
255
+ "self": 0.0001470200013500289,
256
+ "children": {
257
+ "_process_rank_one_or_two_observation": {
258
+ "total": 0.0005610669986708672,
259
+ "count": 10,
260
+ "is_parallel": true,
261
+ "self": 0.0005610669986708672
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ },
269
+ "UnityEnvironment.step": {
270
+ "total": 207.12841681387363,
271
+ "count": 45463,
272
+ "is_parallel": true,
273
+ "self": 8.808891418884741,
274
+ "children": {
275
+ "UnityEnvironment._generate_step_input": {
276
+ "total": 4.620152991976283,
277
+ "count": 45463,
278
+ "is_parallel": true,
279
+ "self": 4.620152991976283
280
+ },
281
+ "communicator.exchange": {
282
+ "total": 166.25211986397517,
283
+ "count": 45463,
284
+ "is_parallel": true,
285
+ "self": 166.25211986397517
286
+ },
287
+ "steps_from_proto": {
288
+ "total": 27.447252539037436,
289
+ "count": 45463,
290
+ "is_parallel": true,
291
+ "self": 5.631530266500704,
292
+ "children": {
293
+ "_process_rank_one_or_two_observation": {
294
+ "total": 21.815722272536732,
295
+ "count": 454630,
296
+ "is_parallel": true,
297
+ "self": 21.815722272536732
298
+ }
299
+ }
300
+ }
301
+ }
302
+ }
303
+ }
304
+ }
305
+ }
306
+ }
307
+ }
308
+ },
309
+ "trainer_advance": {
310
+ "total": 93.81716468196373,
311
+ "count": 45464,
312
+ "self": 0.5347448609354615,
313
+ "children": {
314
+ "process_trajectory": {
315
+ "total": 26.373823229029767,
316
+ "count": 45464,
317
+ "self": 26.30473765602983,
318
+ "children": {
319
+ "RLTrainer._checkpoint": {
320
+ "total": 0.06908557299993845,
321
+ "count": 1,
322
+ "self": 0.06908557299993845
323
+ }
324
+ }
325
+ },
326
+ "_update_policy": {
327
+ "total": 66.9085965919985,
328
+ "count": 47,
329
+ "self": 55.835941368975,
330
+ "children": {
331
+ "TorchPPOOptimizer.update": {
332
+ "total": 11.072655223023503,
333
+ "count": 1410,
334
+ "self": 11.072655223023503
335
+ }
336
+ }
337
+ }
338
+ }
339
+ }
340
+ }
341
+ },
342
+ "trainer_threads": {
343
+ "total": 5.510000846697949e-07,
344
+ "count": 1,
345
+ "self": 5.510000846697949e-07
346
+ },
347
+ "TrainerController._save_models": {
348
+ "total": 0.05803614500018739,
349
+ "count": 1,
350
+ "self": 0.00026971900024364004,
351
+ "children": {
352
+ "RLTrainer._checkpoint": {
353
+ "total": 0.05776642599994375,
354
+ "count": 1,
355
+ "self": 0.05776642599994375
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+ }
362
+ }
run_logs/training_status.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "SnowballTarget": {
3
+ "checkpoints": [
4
+ {
5
+ "steps": 499976,
6
+ "file_path": "results/SnowballTarget-00/SnowballTarget/SnowballTarget-499976.onnx",
7
+ "reward": 24.09090909090909,
8
+ "creation_time": 1691536232.825155,
9
+ "auxillary_file_paths": [
10
+ "results/SnowballTarget-00/SnowballTarget/SnowballTarget-499976.pt"
11
+ ]
12
+ },
13
+ {
14
+ "steps": 500104,
15
+ "file_path": "results/SnowballTarget-00/SnowballTarget/SnowballTarget-500104.onnx",
16
+ "reward": 24.09090909090909,
17
+ "creation_time": 1691536232.8893638,
18
+ "auxillary_file_paths": [
19
+ "results/SnowballTarget-00/SnowballTarget/SnowballTarget-500104.pt"
20
+ ]
21
+ }
22
+ ],
23
+ "final_checkpoint": {
24
+ "steps": 500104,
25
+ "file_path": "results/SnowballTarget-00/SnowballTarget.onnx",
26
+ "reward": 24.09090909090909,
27
+ "creation_time": 1691536232.8893638,
28
+ "auxillary_file_paths": [
29
+ "results/SnowballTarget-00/SnowballTarget/SnowballTarget-500104.pt"
30
+ ]
31
+ }
32
+ },
33
+ "metadata": {
34
+ "stats_format_version": "0.3.0",
35
+ "mlagents_version": "0.31.0.dev0",
36
+ "torch_version": "1.11.0+cu113"
37
+ }
38
+ }