McCheng commited on
Commit
c74dc6c
1 Parent(s): 0d3fbe4

First Push

Browse files
README.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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** using the [Unity ML-Agents Library](https://github.com/Unity-Technologies/ml-agents).
12
+
13
+ ## Usage (with ML-Agents)
14
+ The Documentation: https://github.com/huggingface/ml-agents#get-started
15
+ We wrote a complete tutorial to learn to train your first agent using ML-Agents and publish it to the Hub:
16
+
17
+
18
+ ### Resume the training
19
+ ```
20
+ mlagents-learn <your_configuration_file_path.yaml> --run-id=<run_id> --resume
21
+ ```
22
+ ### Watch your Agent play
23
+ You can watch your agent **playing directly in your browser:**.
24
+
25
+ 1. Go to https://huggingface.co/spaces/unity/ML-Agents-SnowballTarget
26
+ 2. Step 1: Find your model_id: McCheng/ppo-SnowballTarget
27
+ 3. Step 2: Select your *.nn /*.onnx file
28
+ 4. Click on Watch the agent play 👀
29
+
SnowballTarget.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2a14f7ded437d8201d3ec3d605f628bed0d20ee269c80117e5853a75669f9a4
3
+ size 1811844
SnowballTarget/SnowballTarget-499976.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2a14f7ded437d8201d3ec3d605f628bed0d20ee269c80117e5853a75669f9a4
3
+ size 1811844
SnowballTarget/SnowballTarget-499976.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c022d3b8e182ac36c3398e5793d5185fed8df1dcb9fe03e9356a333407f0d62d
3
+ size 10814336
SnowballTarget/SnowballTarget-500104.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2a14f7ded437d8201d3ec3d605f628bed0d20ee269c80117e5853a75669f9a4
3
+ size 1811844
SnowballTarget/SnowballTarget-500104.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d604b56da32759e77ebb25f903bca456dec20ee390d577671de575bc9b34dd82
3
+ size 10814336
SnowballTarget/checkpoint.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d604b56da32759e77ebb25f903bca456dec20ee390d577671de575bc9b34dd82
3
+ size 10814336
SnowballTarget/events.out.tfevents.1679294412.384bcee71759.1012.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41ae0eaa4fe7aa60f7f3efcfabdcd53cd3ffc5c6e15cde6dcfe72bc8abfdd2a5
3
+ size 14771
config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"default_settings": null, "behaviors": {"SnowballTarget": {"trainer_type": "ppo", "hyperparameters": {"batch_size": 5120, "buffer_size": 10240, "learning_rate": 0.002, "beta": 0.001, "epsilon": 0.5, "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": 512, "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": "./training-envs-executables/linux/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": "SnowballTarget1", "initialize_from": null, "load_model": false, "resume": false, "force": true, "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: 5120
7
+ buffer_size: 10240
8
+ learning_rate: 0.002
9
+ beta: 0.001
10
+ epsilon: 0.5
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: 512
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: ./training-envs-executables/linux/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: SnowballTarget1
68
+ initialize_from: null
69
+ load_model: false
70
+ resume: false
71
+ force: true
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,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Mono path[0] = '/ml-agents/training-envs-executables/linux/SnowballTarget/SnowballTarget_Data/Managed'
2
+ Mono config path = '/ml-agents/training-envs-executables/linux/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 /ml-agents/training-envs-executables/linux/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.062 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.970369 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 10 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.9 KB
48
+ Overflow Count 4
49
+ [ALLOC_TEMP_Loading.AsyncRead]
50
+ Initial Block Size 64.0 KB
51
+ Current Block Size 64.0 KB
52
+ Peak Allocated Bytes 182 B
53
+ Overflow Count 0
54
+ [ALLOC_TEMP_Background Job.Worker 8]
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 6]
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_Job.Worker 0]
65
+ Initial Block Size 256.0 KB
66
+ Current Block Size 256.0 KB
67
+ Peak Allocated Bytes 3.6 KB
68
+ Overflow Count 0
69
+ [ALLOC_TEMP_Background Job.Worker 10]
70
+ Initial Block Size 32.0 KB
71
+ Current Block Size 32.0 KB
72
+ Peak Allocated Bytes 0 B
73
+ Overflow Count 0
74
+ [ALLOC_TEMP_Background Job.Worker 9]
75
+ Initial Block Size 32.0 KB
76
+ Current Block Size 32.0 KB
77
+ Peak Allocated Bytes 0 B
78
+ Overflow Count 0
79
+ [ALLOC_TEMP_Job.Worker 5]
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_Background Job.Worker 14]
85
+ Initial Block Size 32.0 KB
86
+ Current Block Size 32.0 KB
87
+ Peak Allocated Bytes 0 B
88
+ Overflow Count 0
89
+ [ALLOC_TEMP_Job.Worker 16]
90
+ Initial Block Size 256.0 KB
91
+ Current Block Size 256.0 KB
92
+ Peak Allocated Bytes 3.6 KB
93
+ Overflow Count 0
94
+ [ALLOC_TEMP_Background Job.Worker 6]
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_Job.Worker 4]
100
+ Initial Block Size 256.0 KB
101
+ Current Block Size 256.0 KB
102
+ Peak Allocated Bytes 3.6 KB
103
+ Overflow Count 0
104
+ [ALLOC_TEMP_Job.Worker 17]
105
+ Initial Block Size 256.0 KB
106
+ Current Block Size 256.0 KB
107
+ Peak Allocated Bytes 3.6 KB
108
+ Overflow Count 0
109
+ [ALLOC_TEMP_Job.Worker 14]
110
+ Initial Block Size 256.0 KB
111
+ Current Block Size 256.0 KB
112
+ Peak Allocated Bytes 3.6 KB
113
+ Overflow Count 0
114
+ [ALLOC_TEMP_Job.Worker 3]
115
+ Initial Block Size 256.0 KB
116
+ Current Block Size 256.0 KB
117
+ Peak Allocated Bytes 3.6 KB
118
+ Overflow Count 0
119
+ [ALLOC_TEMP_Job.Worker 13]
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 12]
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_EnlightenWorker] x 10
130
+ Initial Block Size 64.0 KB
131
+ Current Block Size 64.0 KB
132
+ Peak Allocated Bytes 0 B
133
+ Overflow Count 0
134
+ [ALLOC_TEMP_Background Job.Worker 15]
135
+ Initial Block Size 32.0 KB
136
+ Current Block Size 32.0 KB
137
+ Peak Allocated Bytes 0 B
138
+ Overflow Count 0
139
+ [ALLOC_TEMP_Background Job.Worker 1]
140
+ Initial Block Size 32.0 KB
141
+ Current Block Size 32.0 KB
142
+ Peak Allocated Bytes 0 B
143
+ Overflow Count 0
144
+ [ALLOC_TEMP_Background Job.Worker 2]
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_Background Job.Worker 7]
150
+ Initial Block Size 32.0 KB
151
+ Current Block Size 32.0 KB
152
+ Peak Allocated Bytes 0 B
153
+ Overflow Count 0
154
+ [ALLOC_TEMP_AssetGarbageCollectorHelper] x 19
155
+ Initial Block Size 64.0 KB
156
+ Current Block Size 64.0 KB
157
+ Peak Allocated Bytes 0 B
158
+ Overflow Count 0
159
+ [ALLOC_TEMP_Background Job.Worker 5]
160
+ Initial Block Size 32.0 KB
161
+ Current Block Size 32.0 KB
162
+ Peak Allocated Bytes 0 B
163
+ Overflow Count 0
164
+ [ALLOC_TEMP_Job.Worker 9]
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_Background Job.Worker 13]
170
+ Initial Block Size 32.0 KB
171
+ Current Block Size 32.0 KB
172
+ Peak Allocated Bytes 0 B
173
+ Overflow Count 0
174
+ [ALLOC_TEMP_Job.Worker 8]
175
+ Initial Block Size 256.0 KB
176
+ Current Block Size 256.0 KB
177
+ Peak Allocated Bytes 3.6 KB
178
+ Overflow Count 0
179
+ [ALLOC_TEMP_Job.Worker 7]
180
+ Initial Block Size 256.0 KB
181
+ Current Block Size 256.0 KB
182
+ Peak Allocated Bytes 3.6 KB
183
+ Overflow Count 0
184
+ [ALLOC_TEMP_Job.Worker 1]
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_Job.Worker 2]
190
+ Initial Block Size 256.0 KB
191
+ Current Block Size 256.0 KB
192
+ Peak Allocated Bytes 3.6 KB
193
+ Overflow Count 0
194
+ [ALLOC_TEMP_Background Job.Worker 3]
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 11]
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_Job.Worker 10]
205
+ Initial Block Size 256.0 KB
206
+ Current Block Size 256.0 KB
207
+ Peak Allocated Bytes 3.6 KB
208
+ Overflow Count 0
209
+ [ALLOC_TEMP_Background Job.Worker 0]
210
+ Initial Block Size 32.0 KB
211
+ Current Block Size 32.0 KB
212
+ Peak Allocated Bytes 0 B
213
+ Overflow Count 0
214
+ [ALLOC_TEMP_Job.Worker 15]
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 11]
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 12]
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_Background Job.Worker 4]
230
+ Initial Block Size 32.0 KB
231
+ Current Block Size 32.0 KB
232
+ Peak Allocated Bytes 0 B
233
+ Overflow Count 0
234
+ [ALLOC_TEMP_BatchDeleteObjects]
235
+ Initial Block Size 64.0 KB
236
+ Current Block Size 64.0 KB
237
+ Peak Allocated Bytes 0 B
238
+ Overflow Count 0
239
+ [ALLOC_DEFAULT] Dual Thread Allocator
240
+ Peak main deferred allocation count 37
241
+ [ALLOC_BUCKET]
242
+ Large Block size 4.0 MB
243
+ Used Block count 1
244
+ Peak Allocated bytes 1.0 MB
245
+ [ALLOC_DEFAULT_MAIN]
246
+ Peak usage frame count: [4.0 MB-8.0 MB]: 11094 frames, [8.0 MB-16.0 MB]: 2546 frames
247
+ Requested Block Size 16.0 MB
248
+ Peak Block count 1
249
+ Peak Allocated memory 9.9 MB
250
+ Peak Large allocation bytes 0 B
251
+ [ALLOC_DEFAULT_THREAD]
252
+ Peak usage frame count: [16.0 MB-32.0 MB]: 13640 frames
253
+ Requested Block Size 16.0 MB
254
+ Peak Block count 1
255
+ Peak Allocated memory 17.6 MB
256
+ Peak Large allocation bytes 16.0 MB
257
+ [ALLOC_TEMP_JOB_1_FRAME]
258
+ Initial Block Size 2.0 MB
259
+ Used Block Count 1
260
+ Overflow Count (too large) 0
261
+ Overflow Count (full) 0
262
+ [ALLOC_TEMP_JOB_2_FRAMES]
263
+ Initial Block Size 2.0 MB
264
+ Used Block Count 1
265
+ Overflow Count (too large) 0
266
+ Overflow Count (full) 0
267
+ [ALLOC_TEMP_JOB_4_FRAMES (JobTemp)]
268
+ Initial Block Size 2.0 MB
269
+ Used Block Count 2
270
+ Overflow Count (too large) 0
271
+ Overflow Count (full) 0
272
+ [ALLOC_TEMP_JOB_ASYNC (Background)]
273
+ Initial Block Size 1.0 MB
274
+ Used Block Count 3
275
+ Overflow Count (too large) 0
276
+ Overflow Count (full) 0
277
+ [ALLOC_GFX] 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_GFX_MAIN]
284
+ Peak usage frame count: [32.0 KB-64.0 KB]: 12644 frames, [64.0 KB-128.0 KB]: 996 frames
285
+ Requested Block Size 16.0 MB
286
+ Peak Block count 1
287
+ Peak Allocated memory 66.8 KB
288
+ Peak Large allocation bytes 0 B
289
+ [ALLOC_GFX_THREAD]
290
+ Peak usage frame count: [32.0 KB-64.0 KB]: 13640 frames
291
+ Requested Block Size 16.0 MB
292
+ Peak Block count 1
293
+ Peak Allocated memory 39.6 KB
294
+ Peak Large allocation bytes 0 B
295
+ [ALLOC_CACHEOBJECTS] 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_CACHEOBJECTS_MAIN]
302
+ Peak usage frame count: [0.5 MB-1.0 MB]: 13640 frames
303
+ Requested Block Size 4.0 MB
304
+ Peak Block count 1
305
+ Peak Allocated memory 0.6 MB
306
+ Peak Large allocation bytes 0 B
307
+ [ALLOC_CACHEOBJECTS_THREAD]
308
+ Peak usage frame count: [0.5 MB-1.0 MB]: 13639 frames, [2.0 MB-4.0 MB]: 1 frames
309
+ Requested Block Size 4.0 MB
310
+ Peak Block count 1
311
+ Peak Allocated memory 2.2 MB
312
+ Peak Large allocation bytes 0 B
313
+ [ALLOC_TYPETREE] Dual Thread Allocator
314
+ Peak main deferred allocation count 0
315
+ [ALLOC_BUCKET]
316
+ Large Block size 4.0 MB
317
+ Used Block count 1
318
+ Peak Allocated bytes 1.0 MB
319
+ [ALLOC_TYPETREE_MAIN]
320
+ Peak usage frame count: [0-1.0 KB]: 13640 frames
321
+ Requested Block Size 2.0 MB
322
+ Peak Block count 1
323
+ Peak Allocated memory 1.0 KB
324
+ Peak Large allocation bytes 0 B
325
+ [ALLOC_TYPETREE_THREAD]
326
+ Peak usage frame count: [1.0 KB-2.0 KB]: 13640 frames
327
+ Requested Block Size 2.0 MB
328
+ Peak Block count 1
329
+ Peak Allocated memory 1.7 KB
330
+ 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": 0.30172663927078247,
6
+ "min": 0.30172663927078247,
7
+ "max": 2.5828857421875,
8
+ "count": 10
9
+ },
10
+ "SnowballTarget.Policy.Entropy.sum": {
11
+ "value": 15054.9521484375,
12
+ "min": 15054.9521484375,
13
+ "max": 130466.71875,
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": 13.4858980178833,
30
+ "min": 0.4753887355327606,
31
+ "max": 13.4858980178833,
32
+ "count": 10
33
+ },
34
+ "SnowballTarget.Policy.ExtrinsicValueEstimate.sum": {
35
+ "value": 13526.35546875,
36
+ "min": 471.58563232421875,
37
+ "max": 13526.35546875,
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": 26.703557312252965,
54
+ "min": 6.198347107438017,
55
+ "max": 26.703557312252965,
56
+ "count": 10
57
+ },
58
+ "SnowballTarget.Environment.CumulativeReward.sum": {
59
+ "value": 6756.0,
60
+ "min": 1500.0,
61
+ "max": 6756.0,
62
+ "count": 10
63
+ },
64
+ "SnowballTarget.Policy.ExtrinsicReward.mean": {
65
+ "value": 26.703557312252965,
66
+ "min": 6.198347107438017,
67
+ "max": 26.703557312252965,
68
+ "count": 10
69
+ },
70
+ "SnowballTarget.Policy.ExtrinsicReward.sum": {
71
+ "value": 6756.0,
72
+ "min": 1500.0,
73
+ "max": 6756.0,
74
+ "count": 10
75
+ },
76
+ "SnowballTarget.Losses.PolicyLoss.mean": {
77
+ "value": 0.009090584838607658,
78
+ "min": 0.005687295296229422,
79
+ "max": 0.01049920906856035,
80
+ "count": 10
81
+ },
82
+ "SnowballTarget.Losses.PolicyLoss.sum": {
83
+ "value": 0.03636233935443063,
84
+ "min": 0.02843647648114711,
85
+ "max": 0.045652506688687325,
86
+ "count": 10
87
+ },
88
+ "SnowballTarget.Losses.ValueLoss.mean": {
89
+ "value": 0.22817654473086196,
90
+ "min": 0.22436410536368684,
91
+ "max": 0.5847262879212698,
92
+ "count": 10
93
+ },
94
+ "SnowballTarget.Losses.ValueLoss.sum": {
95
+ "value": 0.9127061789234479,
96
+ "min": 0.9127061789234479,
97
+ "max": 2.923631439606349,
98
+ "count": 10
99
+ },
100
+ "SnowballTarget.Policy.LearningRate.mean": {
101
+ "value": 9.717609514119998e-05,
102
+ "min": 9.717609514119998e-05,
103
+ "max": 0.0018945760052712002,
104
+ "count": 10
105
+ },
106
+ "SnowballTarget.Policy.LearningRate.sum": {
107
+ "value": 0.0003887043805647999,
108
+ "min": 0.0003887043805647999,
109
+ "max": 0.0085314560734272,
110
+ "count": 10
111
+ },
112
+ "SnowballTarget.Policy.Epsilon.mean": {
113
+ "value": 0.11943519999999999,
114
+ "min": 0.11943519999999999,
115
+ "max": 0.4789152,
116
+ "count": 10
117
+ },
118
+ "SnowballTarget.Policy.Epsilon.sum": {
119
+ "value": 0.47774079999999997,
120
+ "min": 0.47774079999999997,
121
+ "max": 2.2062912000000003,
122
+ "count": 10
123
+ },
124
+ "SnowballTarget.Policy.Beta.mean": {
125
+ "value": 5.810212e-05,
126
+ "min": 5.810212e-05,
127
+ "max": 0.00094781512,
128
+ "count": 10
129
+ },
130
+ "SnowballTarget.Policy.Beta.sum": {
131
+ "value": 0.00023240848,
132
+ "min": 0.00023240848,
133
+ "max": 0.00427307072,
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": "1679294412",
152
+ "python_version": "3.9.16 (main, Mar 8 2023, 14:00:05) \n[GCC 11.2.0]",
153
+ "command_line_arguments": "/opt/conda/envs/ml2/bin/mlagents-learn ./config/ppo/SnowballTarget.yaml --env=./training-envs-executables/linux/SnowballTarget/SnowballTarget --run-id=SnowballTarget1 --no-graphics --force",
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+cu115",
158
+ "numpy_version": "1.21.2",
159
+ "end_time_seconds": "1679295443"
160
+ },
161
+ "total": 1030.7806049309947,
162
+ "count": 1,
163
+ "self": 0.4357619519942091,
164
+ "children": {
165
+ "run_training.setup": {
166
+ "total": 0.017948744003660977,
167
+ "count": 1,
168
+ "self": 0.017948744003660977
169
+ },
170
+ "TrainerController.start_learning": {
171
+ "total": 1030.3268942349969,
172
+ "count": 1,
173
+ "self": 1.1514493724534987,
174
+ "children": {
175
+ "TrainerController._reset_env": {
176
+ "total": 4.673536212001636,
177
+ "count": 1,
178
+ "self": 4.673536212001636
179
+ },
180
+ "TrainerController.advance": {
181
+ "total": 1024.3582615765408,
182
+ "count": 45464,
183
+ "self": 1.329777489299886,
184
+ "children": {
185
+ "env_step": {
186
+ "total": 850.2061516425965,
187
+ "count": 45464,
188
+ "self": 583.3694386825518,
189
+ "children": {
190
+ "SubprocessEnvManager._take_step": {
191
+ "total": 266.1118606540185,
192
+ "count": 45464,
193
+ "self": 5.375045314474846,
194
+ "children": {
195
+ "TorchPolicy.evaluate": {
196
+ "total": 260.7368153395437,
197
+ "count": 45464,
198
+ "self": 260.7368153395437
199
+ }
200
+ }
201
+ },
202
+ "workers": {
203
+ "total": 0.7248523060261505,
204
+ "count": 45464,
205
+ "self": 0.0,
206
+ "children": {
207
+ "worker_root": {
208
+ "total": 1027.3872145959904,
209
+ "count": 45464,
210
+ "is_parallel": true,
211
+ "self": 509.1380840027632,
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.0017432580061722547,
221
+ "count": 1,
222
+ "is_parallel": true,
223
+ "self": 0.0007082269949023612,
224
+ "children": {
225
+ "_process_rank_one_or_two_observation": {
226
+ "total": 0.0010350310112698935,
227
+ "count": 10,
228
+ "is_parallel": true,
229
+ "self": 0.0010350310112698935
230
+ }
231
+ }
232
+ },
233
+ "UnityEnvironment.step": {
234
+ "total": 0.021732952998718247,
235
+ "count": 1,
236
+ "is_parallel": true,
237
+ "self": 0.00029198699485277757,
238
+ "children": {
239
+ "UnityEnvironment._generate_step_input": {
240
+ "total": 0.000252685000305064,
241
+ "count": 1,
242
+ "is_parallel": true,
243
+ "self": 0.000252685000305064
244
+ },
245
+ "communicator.exchange": {
246
+ "total": 0.020313016000727657,
247
+ "count": 1,
248
+ "is_parallel": true,
249
+ "self": 0.020313016000727657
250
+ },
251
+ "steps_from_proto": {
252
+ "total": 0.000875265002832748,
253
+ "count": 1,
254
+ "is_parallel": true,
255
+ "self": 0.00020566099556162953,
256
+ "children": {
257
+ "_process_rank_one_or_two_observation": {
258
+ "total": 0.0006696040072711185,
259
+ "count": 10,
260
+ "is_parallel": true,
261
+ "self": 0.0006696040072711185
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ },
269
+ "UnityEnvironment.step": {
270
+ "total": 518.2491305932272,
271
+ "count": 45463,
272
+ "is_parallel": true,
273
+ "self": 12.405924925646104,
274
+ "children": {
275
+ "UnityEnvironment._generate_step_input": {
276
+ "total": 7.284209254932648,
277
+ "count": 45463,
278
+ "is_parallel": true,
279
+ "self": 7.284209254932648
280
+ },
281
+ "communicator.exchange": {
282
+ "total": 464.8894674130206,
283
+ "count": 45463,
284
+ "is_parallel": true,
285
+ "self": 464.8894674130206
286
+ },
287
+ "steps_from_proto": {
288
+ "total": 33.6695289996278,
289
+ "count": 45463,
290
+ "is_parallel": true,
291
+ "self": 8.057895610989362,
292
+ "children": {
293
+ "_process_rank_one_or_two_observation": {
294
+ "total": 25.611633388638438,
295
+ "count": 454630,
296
+ "is_parallel": true,
297
+ "self": 25.611633388638438
298
+ }
299
+ }
300
+ }
301
+ }
302
+ }
303
+ }
304
+ }
305
+ }
306
+ }
307
+ }
308
+ },
309
+ "trainer_advance": {
310
+ "total": 172.82233244464442,
311
+ "count": 45464,
312
+ "self": 1.4902701629107469,
313
+ "children": {
314
+ "process_trajectory": {
315
+ "total": 77.16832207974221,
316
+ "count": 45464,
317
+ "self": 76.94293895274313,
318
+ "children": {
319
+ "RLTrainer._checkpoint": {
320
+ "total": 0.22538312699907692,
321
+ "count": 1,
322
+ "self": 0.22538312699907692
323
+ }
324
+ }
325
+ },
326
+ "_update_policy": {
327
+ "total": 94.16374020199146,
328
+ "count": 47,
329
+ "self": 76.68532940502337,
330
+ "children": {
331
+ "TorchPPOOptimizer.update": {
332
+ "total": 17.47841079696809,
333
+ "count": 282,
334
+ "self": 17.47841079696809
335
+ }
336
+ }
337
+ }
338
+ }
339
+ }
340
+ }
341
+ },
342
+ "trainer_threads": {
343
+ "total": 5.879992386326194e-07,
344
+ "count": 1,
345
+ "self": 5.879992386326194e-07
346
+ },
347
+ "TrainerController._save_models": {
348
+ "total": 0.1436464860016713,
349
+ "count": 1,
350
+ "self": 0.0069262640026863664,
351
+ "children": {
352
+ "RLTrainer._checkpoint": {
353
+ "total": 0.13672022199898493,
354
+ "count": 1,
355
+ "self": 0.13672022199898493
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/SnowballTarget1/SnowballTarget/SnowballTarget-499976.onnx",
7
+ "reward": 26.863636363636363,
8
+ "creation_time": 1679295442.6275988,
9
+ "auxillary_file_paths": [
10
+ "results/SnowballTarget1/SnowballTarget/SnowballTarget-499976.pt"
11
+ ]
12
+ },
13
+ {
14
+ "steps": 500104,
15
+ "file_path": "results/SnowballTarget1/SnowballTarget/SnowballTarget-500104.onnx",
16
+ "reward": 26.863636363636363,
17
+ "creation_time": 1679295442.7763605,
18
+ "auxillary_file_paths": [
19
+ "results/SnowballTarget1/SnowballTarget/SnowballTarget-500104.pt"
20
+ ]
21
+ }
22
+ ],
23
+ "final_checkpoint": {
24
+ "steps": 500104,
25
+ "file_path": "results/SnowballTarget1/SnowballTarget.onnx",
26
+ "reward": 26.863636363636363,
27
+ "creation_time": 1679295442.7763605,
28
+ "auxillary_file_paths": [
29
+ "results/SnowballTarget1/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+cu115"
37
+ }
38
+ }