osanseviero HF staff commited on
Commit
b570bd2
1 Parent(s): fa74022

First MLAgents

Browse files
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - unity-ml-agents
5
+ - ml-agents
6
+ - deep-reinforcement-learning
7
+ - reinforcement-learning
8
+ - ML-Agents-Worm
9
+ library_name: ml-agents
10
+ ---
11
+
12
+ # **ppo** Agent playing **Worm**
13
+ This is a trained model of a **ppo** agent playing **Worm** using the [Unity ML-Agents Library](https://github.com/Unity-Technologies/ml-agents).
14
+
15
+ ## Usage (with ML-Agents)
16
+ The Documentation: https://github.com/huggingface/ml-agents#get-started
17
+ We wrote a complete tutorial to learn to train your first agent using ML-Agents and publish it to the Hub:
18
+
19
+
20
+ ### Resume the training
21
+ ```
22
+ mlagents-learn <your_configuration_file_path.yaml> --run-id=<run_id> --resume
23
+ ```
24
+ ### Watch your Agent play
25
+ You can watch your agent **playing directly in your browser:**.
26
+
27
+ 1. Go to https://huggingface.co/spaces/unity/ML-Agents-Worm
28
+ 2. Step 1: Write your model_id: osanseviero/worms
29
+ 3. Step 2: Select your *.nn /*.onnx file
30
+ 4. Click on Watch the agent play 👀
31
+
Worm.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b312c96fc2c6d8b64ba13efaef5fa48af3daf5da19840c28e4f71aafa42499d7
3
+ size 2255979
Worm/Worm-110000.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b312c96fc2c6d8b64ba13efaef5fa48af3daf5da19840c28e4f71aafa42499d7
3
+ size 2255979
Worm/Worm-110000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd917782bf3dca48ed31c1996948552bd1f510edd1cd3e4863c45ac98478669c
3
+ size 13493359
Worm/checkpoint.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd917782bf3dca48ed31c1996948552bd1f510edd1cd3e4863c45ac98478669c
3
+ size 13493359
Worm/events.out.tfevents.1656848219.osanseviero-Amd-Am4-Gen3.8196.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac04f0d427a9d7e70773a747fab819a3ca967c3358f0266c0f1608e6316d36fc
3
+ size 17283
config.json ADDED
@@ -0,0 +1 @@
 
1
+ {"default_settings": null, "behaviors": {"Worm": {"trainer_type": "ppo", "hyperparameters": {"batch_size": 2024, "buffer_size": 20240, "learning_rate": 0.0003, "beta": 0.005, "epsilon": 0.2, "lambd": 0.95, "num_epoch": 3, "learning_rate_schedule": "linear", "beta_schedule": "linear", "epsilon_schedule": "linear"}, "network_settings": {"normalize": true, "hidden_units": 512, "num_layers": 3, "vis_encode_type": "simple", "memory": null, "goal_conditioning_type": "hyper", "deterministic": false}, "reward_signals": {"extrinsic": {"gamma": 0.995, "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, "checkpoint_interval": 500000, "max_steps": 100000, "time_horizon": 1000, "summary_freq": 30000, "threaded": false, "self_play": null, "behavioral_cloning": null}}, "env_settings": {"env_path": "trained-envs-executables/linux/Worm/Worm", "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": "training", "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,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ default_settings: null
2
+ behaviors:
3
+ Worm:
4
+ trainer_type: ppo
5
+ hyperparameters:
6
+ batch_size: 2024
7
+ buffer_size: 20240
8
+ learning_rate: 0.0003
9
+ beta: 0.005
10
+ epsilon: 0.2
11
+ lambd: 0.95
12
+ num_epoch: 3
13
+ learning_rate_schedule: linear
14
+ beta_schedule: linear
15
+ epsilon_schedule: linear
16
+ network_settings:
17
+ normalize: true
18
+ hidden_units: 512
19
+ num_layers: 3
20
+ vis_encode_type: simple
21
+ memory: null
22
+ goal_conditioning_type: hyper
23
+ deterministic: false
24
+ reward_signals:
25
+ extrinsic:
26
+ gamma: 0.995
27
+ strength: 1.0
28
+ network_settings:
29
+ normalize: false
30
+ hidden_units: 128
31
+ num_layers: 2
32
+ vis_encode_type: simple
33
+ memory: null
34
+ goal_conditioning_type: hyper
35
+ deterministic: false
36
+ init_path: null
37
+ keep_checkpoints: 5
38
+ checkpoint_interval: 500000
39
+ max_steps: 100000
40
+ time_horizon: 1000
41
+ summary_freq: 30000
42
+ threaded: false
43
+ self_play: null
44
+ behavioral_cloning: null
45
+ env_settings:
46
+ env_path: trained-envs-executables/linux/Worm/Worm
47
+ env_args: null
48
+ base_port: 5005
49
+ num_envs: 1
50
+ num_areas: 1
51
+ seed: -1
52
+ max_lifetime_restarts: 10
53
+ restarts_rate_limit_n: 1
54
+ restarts_rate_limit_period_s: 60
55
+ engine_settings:
56
+ width: 84
57
+ height: 84
58
+ quality_level: 5
59
+ time_scale: 20
60
+ target_frame_rate: -1
61
+ capture_frame_rate: 60
62
+ no_graphics: true
63
+ environment_parameters: null
64
+ checkpoint_settings:
65
+ run_id: training
66
+ initialize_from: null
67
+ load_model: false
68
+ resume: false
69
+ force: false
70
+ train_model: false
71
+ inference: false
72
+ results_dir: results
73
+ torch_settings:
74
+ device: null
75
+ debug: false
run_logs/Player-0.log ADDED
@@ -0,0 +1,364 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Mono path[0] = '/home/osanseviero/Desktop/workspace/repos/ml-agents/trained-envs-executables/linux/Worm/Worm_Data/Managed'
2
+ Mono config path = '/home/osanseviero/Desktop/workspace/repos/ml-agents/trained-envs-executables/linux/Worm/Worm_Data/MonoBleedingEdge/etc'
3
+ Found 3 interfaces on host : 0) 192.168.178.23 1) 172.19.0.1 2) 172.17.0.1
4
+ Multi-casting "[IP] 192.168.178.23 [Port] 55263 [Flags] 2 [Guid] 4114615211 [EditorId] 588871222 [Version] 1048832 [Id] LinuxPlayer(13,192.168.178.23) [Debug] 0 [PackageName] LinuxPlayer [ProjectName] UnityEnvironment" to [225.0.0.222:54997]...
5
+ Preloaded 'lib_burst_generated.so'
6
+ Preloaded 'libgrpc_csharp_ext.x64.so'
7
+ Initialize engine version: 2021.3.5f1 (40eb3a945986)
8
+ [Subsystems] Discovering subsystems at path /home/osanseviero/Desktop/workspace/repos/ml-agents/trained-envs-executables/linux/Worm/Worm_Data/UnitySubsystems
9
+ Forcing GfxDevice: Null
10
+ GfxDevice: creating device client; threaded=0; jobified=0
11
+ NullGfxDevice:
12
+ Version: NULL 1.0 [1.0]
13
+ Renderer: Null Device
14
+ Vendor: Unity Technologies
15
+ Begin MonoManager ReloadAssembly
16
+ - Completed reload, in 0.050 seconds
17
+ ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
18
+ ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
19
+ ERROR: Shader Legacy Shaders/VertexLit shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
20
+ WARNING: Shader Unsupported: 'Legacy Shaders/Diffuse' - All subshaders removed
21
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
22
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
23
+ ERROR: Shader Legacy Shaders/Diffuse shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
24
+ WARNING: Shader Unsupported: 'Legacy Shaders/Diffuse' - All subshaders removed
25
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
26
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
27
+ WARNING: Shader Unsupported: 'ML-Agents/GridPattern' - All subshaders removed
28
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
29
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
30
+ ERROR: Shader ML-Agents/GridPattern shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
31
+ WARNING: Shader Unsupported: 'ML-Agents/GridPattern' - All subshaders removed
32
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
33
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
34
+ WARNING: Shader Unsupported: 'Standard' - All subshaders removed
35
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
36
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
37
+ ERROR: Shader Standard shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
38
+ WARNING: Shader Unsupported: 'Standard' - All subshaders removed
39
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
40
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
41
+ WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
42
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
43
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
44
+ ERROR: Shader Autodesk Interactive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
45
+ WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
46
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
47
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
48
+ UnloadTime: 0.510080 ms
49
+ ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
50
+ requesting resize 84 x 84
51
+ Setting up 8 worker threads for Enlighten.
52
+ PlayerConnection::CleanupMemory Statistics:
53
+ [ALLOC_TEMP_TLS] TLS Allocator
54
+ StackAllocators :
55
+ [ALLOC_TEMP_MAIN]
56
+ Peak usage frame count: [4.0 KB-8.0 KB]: 2199 frames, [2.0 MB-4.0 MB]: 1 frames
57
+ Initial Block Size 4.0 MB
58
+ Current Block Size 4.0 MB
59
+ Peak Allocated Bytes 2.0 MB
60
+ Overflow Count 0
61
+ [ALLOC_TEMP_Profiler.Dispatcher]
62
+ Initial Block Size 64.0 KB
63
+ Current Block Size 64.0 KB
64
+ Peak Allocated Bytes 0 B
65
+ Overflow Count 0
66
+ [ALLOC_TEMP_Background Job.Worker 8]
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 10]
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 4]
77
+ Initial Block Size 256.0 KB
78
+ Current Block Size 256.0 KB
79
+ Peak Allocated Bytes 0 B
80
+ Overflow Count 0
81
+ [ALLOC_TEMP_Background Job.Worker 6]
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 1]
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_Background Job.Worker 11]
92
+ Initial Block Size 32.0 KB
93
+ Current Block Size 32.0 KB
94
+ Peak Allocated Bytes 0 B
95
+ Overflow Count 0
96
+ [ALLOC_TEMP_Background Job.Worker 3]
97
+ Initial Block Size 32.0 KB
98
+ Current Block Size 32.0 KB
99
+ Peak Allocated Bytes 0 B
100
+ Overflow Count 0
101
+ [ALLOC_TEMP_BatchDeleteObjects]
102
+ Initial Block Size 64.0 KB
103
+ Current Block Size 64.0 KB
104
+ Peak Allocated Bytes 0 B
105
+ Overflow Count 0
106
+ [ALLOC_TEMP_AUDIO_FMOD stream thread]
107
+ Initial Block Size 64.0 KB
108
+ Current Block Size 64.0 KB
109
+ Peak Allocated Bytes 0 B
110
+ Overflow Count 0
111
+ [ALLOC_TEMP_Job.Worker 13]
112
+ Initial Block Size 256.0 KB
113
+ Current Block Size 256.0 KB
114
+ Peak Allocated Bytes 0 B
115
+ Overflow Count 0
116
+ [ALLOC_TEMP_Background Job.Worker 2]
117
+ Initial Block Size 32.0 KB
118
+ Current Block Size 32.0 KB
119
+ Peak Allocated Bytes 0 B
120
+ Overflow Count 0
121
+ [ALLOC_TEMP_Background Job.Worker 7]
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_Job.Worker 8]
127
+ Initial Block Size 256.0 KB
128
+ Current Block Size 256.0 KB
129
+ Peak Allocated Bytes 0 B
130
+ Overflow Count 0
131
+ [ALLOC_TEMP_Job.Worker 1]
132
+ Initial Block Size 256.0 KB
133
+ Current Block Size 256.0 KB
134
+ Peak Allocated Bytes 0 B
135
+ Overflow Count 0
136
+ [ALLOC_TEMP_Job.Worker 10]
137
+ Initial Block Size 256.0 KB
138
+ Current Block Size 256.0 KB
139
+ Peak Allocated Bytes 0 B
140
+ Overflow Count 0
141
+ [ALLOC_TEMP_Job.Worker 12]
142
+ Initial Block Size 256.0 KB
143
+ Current Block Size 256.0 KB
144
+ Peak Allocated Bytes 0 B
145
+ Overflow Count 0
146
+ [ALLOC_TEMP_Loading.PreloadManager]
147
+ Initial Block Size 256.0 KB
148
+ Current Block Size 284.0 KB
149
+ Peak Allocated Bytes 243.4 KB
150
+ Overflow Count 4
151
+ [ALLOC_TEMP_Background Job.Worker 15]
152
+ Initial Block Size 32.0 KB
153
+ Current Block Size 32.0 KB
154
+ Peak Allocated Bytes 0 B
155
+ Overflow Count 0
156
+ [ALLOC_TEMP_AUDIO_FMOD PulseAudio Mixer]
157
+ Initial Block Size 64.0 KB
158
+ Current Block Size 64.0 KB
159
+ Peak Allocated Bytes 0 B
160
+ Overflow Count 0
161
+ [ALLOC_TEMP_Job.Worker 14]
162
+ Initial Block Size 256.0 KB
163
+ Current Block Size 256.0 KB
164
+ Peak Allocated Bytes 0 B
165
+ Overflow Count 0
166
+ [ALLOC_TEMP_Job.Worker 3]
167
+ Initial Block Size 256.0 KB
168
+ Current Block Size 256.0 KB
169
+ Peak Allocated Bytes 0 B
170
+ Overflow Count 0
171
+ [ALLOC_TEMP_Background Job.Worker 12]
172
+ Initial Block Size 32.0 KB
173
+ Current Block Size 32.0 KB
174
+ Peak Allocated Bytes 0 B
175
+ Overflow Count 0
176
+ [ALLOC_TEMP_AssetGarbageCollectorHelper] x 15
177
+ Initial Block Size 64.0 KB
178
+ Current Block Size 64.0 KB
179
+ Peak Allocated Bytes 0 B
180
+ Overflow Count 0
181
+ [ALLOC_TEMP_Background Job.Worker 5]
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 13]
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 2]
192
+ Initial Block Size 256.0 KB
193
+ Current Block Size 256.0 KB
194
+ Peak Allocated Bytes 0 B
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 0 B
205
+ Overflow Count 0
206
+ [ALLOC_TEMP_Background Job.Worker 4]
207
+ Initial Block Size 32.0 KB
208
+ Current Block Size 32.0 KB
209
+ Peak Allocated Bytes 0 B
210
+ Overflow Count 0
211
+ [ALLOC_TEMP_Job.Worker 6]
212
+ Initial Block Size 256.0 KB
213
+ Current Block Size 256.0 KB
214
+ Peak Allocated Bytes 0 B
215
+ Overflow Count 0
216
+ [ALLOC_TEMP_Job.Worker 0]
217
+ Initial Block Size 256.0 KB
218
+ Current Block Size 256.0 KB
219
+ Peak Allocated Bytes 0 B
220
+ Overflow Count 0
221
+ [ALLOC_TEMP_Job.Worker 5]
222
+ Initial Block Size 256.0 KB
223
+ Current Block Size 256.0 KB
224
+ Peak Allocated Bytes 0 B
225
+ Overflow Count 0
226
+ [ALLOC_TEMP_Background Job.Worker 9]
227
+ Initial Block Size 32.0 KB
228
+ Current Block Size 32.0 KB
229
+ Peak Allocated Bytes 0 B
230
+ Overflow Count 0
231
+ [ALLOC_TEMP_Background Job.Worker 14]
232
+ Initial Block Size 32.0 KB
233
+ Current Block Size 32.0 KB
234
+ Peak Allocated Bytes 0 B
235
+ Overflow Count 0
236
+ [ALLOC_TEMP_EnlightenWorker] x 8
237
+ Initial Block Size 64.0 KB
238
+ Current Block Size 64.0 KB
239
+ Peak Allocated Bytes 0 B
240
+ Overflow Count 0
241
+ [ALLOC_TEMP_Job.Worker 9]
242
+ Initial Block Size 256.0 KB
243
+ Current Block Size 256.0 KB
244
+ Peak Allocated Bytes 0 B
245
+ Overflow Count 0
246
+ [ALLOC_TEMP_Job.Worker 7]
247
+ Initial Block Size 256.0 KB
248
+ Current Block Size 256.0 KB
249
+ Peak Allocated Bytes 0.8 KB
250
+ Overflow Count 0
251
+ [ALLOC_TEMP_Loading.AsyncRead]
252
+ Initial Block Size 64.0 KB
253
+ Current Block Size 64.0 KB
254
+ Peak Allocated Bytes 128 B
255
+ Overflow Count 0
256
+ [ALLOC_MEMORYPROFILER]
257
+ Peak usage frame count: [64.0 KB-128.0 KB]: 2200 frames
258
+ Requested Block Size 1.0 MB
259
+ Peak Block count 1
260
+ Peak Allocated memory 103.1 KB
261
+ Peak Large allocation bytes 0 B
262
+ [ALLOC_DEFAULT] Dual Thread Allocator
263
+ Peak main deferred allocation count 13
264
+ [ALLOC_BUCKET]
265
+ Large Block size 4.0 MB
266
+ Used Block count 1
267
+ Peak Allocated bytes 0.8 MB
268
+ [ALLOC_DEFAULT_MAIN]
269
+ Peak usage frame count: [4.0 MB-8.0 MB]: 2200 frames
270
+ Requested Block Size 16.0 MB
271
+ Peak Block count 1
272
+ Peak Allocated memory 5.3 MB
273
+ Peak Large allocation bytes 0 B
274
+ [ALLOC_DEFAULT_THREAD]
275
+ Peak usage frame count: [16.0 MB-32.0 MB]: 2200 frames
276
+ Requested Block Size 16.0 MB
277
+ Peak Block count 1
278
+ Peak Allocated memory 17.9 MB
279
+ Peak Large allocation bytes 16.0 MB
280
+ [ALLOC_TEMP_JOB_1_FRAME]
281
+ Initial Block Size 2.0 MB
282
+ Used Block Count 1
283
+ Overflow Count (too large) 0
284
+ Overflow Count (full) 0
285
+ [ALLOC_TEMP_JOB_2_FRAMES]
286
+ Initial Block Size 2.0 MB
287
+ Used Block Count 1
288
+ Overflow Count (too large) 0
289
+ Overflow Count (full) 0
290
+ [ALLOC_TEMP_JOB_4_FRAMES (JobTemp)]
291
+ Initial Block Size 2.0 MB
292
+ Used Block Count 2
293
+ Overflow Count (too large) 0
294
+ Overflow Count (full) 0
295
+ [ALLOC_TEMP_JOB_ASYNC (Background)]
296
+ Initial Block Size 1.0 MB
297
+ Used Block Count 3
298
+ Overflow Count (too large) 0
299
+ Overflow Count (full) 0
300
+ [ALLOC_GFX] Dual Thread Allocator
301
+ Peak main deferred allocation count 0
302
+ [ALLOC_BUCKET]
303
+ Large Block size 4.0 MB
304
+ Used Block count 1
305
+ Peak Allocated bytes 0.8 MB
306
+ [ALLOC_GFX_MAIN]
307
+ Peak usage frame count: [32.0 KB-64.0 KB]: 2199 frames, [64.0 KB-128.0 KB]: 1 frames
308
+ Requested Block Size 16.0 MB
309
+ Peak Block count 1
310
+ Peak Allocated memory 67.0 KB
311
+ Peak Large allocation bytes 0 B
312
+ [ALLOC_GFX_THREAD]
313
+ Peak usage frame count: [128.0 KB-256.0 KB]: 2200 frames
314
+ Requested Block Size 16.0 MB
315
+ Peak Block count 1
316
+ Peak Allocated memory 151.2 KB
317
+ Peak Large allocation bytes 0 B
318
+ [ALLOC_CACHEOBJECTS] Dual Thread Allocator
319
+ Peak main deferred allocation count 0
320
+ [ALLOC_BUCKET]
321
+ Large Block size 4.0 MB
322
+ Used Block count 1
323
+ Peak Allocated bytes 0.8 MB
324
+ [ALLOC_CACHEOBJECTS_MAIN]
325
+ Peak usage frame count: [0.5 MB-1.0 MB]: 2200 frames
326
+ Requested Block Size 4.0 MB
327
+ Peak Block count 1
328
+ Peak Allocated memory 0.6 MB
329
+ Peak Large allocation bytes 0 B
330
+ [ALLOC_CACHEOBJECTS_THREAD]
331
+ Peak usage frame count: [256.0 KB-0.5 MB]: 2199 frames, [2.0 MB-4.0 MB]: 1 frames
332
+ Requested Block Size 4.0 MB
333
+ Peak Block count 1
334
+ Peak Allocated memory 3.8 MB
335
+ Peak Large allocation bytes 0 B
336
+ [ALLOC_TYPETREE] Dual Thread Allocator
337
+ Peak main deferred allocation count 0
338
+ [ALLOC_BUCKET]
339
+ Large Block size 4.0 MB
340
+ Used Block count 1
341
+ Peak Allocated bytes 0.8 MB
342
+ [ALLOC_TYPETREE_MAIN]
343
+ Peak usage frame count: [0-1.0 KB]: 2200 frames
344
+ Requested Block Size 2.0 MB
345
+ Peak Block count 1
346
+ Peak Allocated memory 1.0 KB
347
+ Peak Large allocation bytes 0 B
348
+ [ALLOC_TYPETREE_THREAD]
349
+ Peak usage frame count: [4.0 KB-8.0 KB]: 2199 frames, [8.0 KB-16.0 KB]: 1 frames
350
+ Requested Block Size 2.0 MB
351
+ Peak Block count 1
352
+ Peak Allocated memory 9.3 KB
353
+ Peak Large allocation bytes 0 B
354
+ [ALLOC_PROFILER]
355
+ Peak usage frame count: [32.0 KB-64.0 KB]: 2200 frames
356
+ Requested Block Size 16.0 MB
357
+ Peak Block count 1
358
+ Peak Allocated memory 38.5 KB
359
+ Peak Large allocation bytes 0 B
360
+ [ALLOC_PROFILER_BUCKET]
361
+ Large Block size 4.0 MB
362
+ Used Block count 1
363
+ Peak Allocated bytes 332 B
364
+ ##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate","time":1656848281392,"processId":8225,"allocatedMemory":1984199,"memoryLabels":[{"Default":9033},{"Permanent":1264},{"NewDelete":12801},{"Thread":34852},{"Manager":18447},{"VertexData":12},{"Geometry":280},{"Texture":16},{"Shader":69173},{"Material":24},{"GfxDevice":35248},{"Animation":304},{"Audio":3976},{"Physics":288},{"Serialization":216},{"Input":9176},{"JobScheduler":200},{"Mono":40},{"ScriptingNativeRuntime":216},{"BaseObject":1609212},{"Resource":592},{"Renderer":1936},{"Transform":48},{"File":800},{"WebCam":24},{"Culling":40},{"Terrain":953},{"Wind":24},{"String":3565},{"DynamicArray":30868},{"HashMap":7680},{"Utility":7072},{"PoolAlloc":1160},{"TypeTree":1792},{"ScriptManager":80},{"RuntimeInitializeOnLoadManager":72},{"SpriteAtlas":112},{"GI":3272},{"Unet":16},{"Director":7760},{"WebRequest":720},{"VR":45473},{"SceneManager":424},{"Video":32},{"LazyScriptCache":32},{"NativeArray":384},{"Camera":25},{"Secure":1},{"SerializationCache":624},{"APIUpdating":5872},{"Subsystems":384},{"VirtualTexturing":57552},{"AssetReference":32}]}
run_logs/timers.json ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "root",
3
+ "gauges": {
4
+ "Worm.Policy.Entropy.mean": {
5
+ "value": 1.4186432361602783,
6
+ "min": 1.41836416721344,
7
+ "max": 1.418938398361206,
8
+ "count": 3
9
+ },
10
+ "Worm.Policy.Entropy.sum": {
11
+ "value": 42559.296875,
12
+ "min": 42550.92578125,
13
+ "max": 42568.15234375,
14
+ "count": 3
15
+ },
16
+ "Worm.Environment.EpisodeLength.mean": {
17
+ "value": 999.0,
18
+ "min": 999.0,
19
+ "max": 999.0,
20
+ "count": 3
21
+ },
22
+ "Worm.Environment.EpisodeLength.sum": {
23
+ "value": 29970.0,
24
+ "min": 29970.0,
25
+ "max": 29970.0,
26
+ "count": 3
27
+ },
28
+ "Worm.Step.mean": {
29
+ "value": 89000.0,
30
+ "min": 29000.0,
31
+ "max": 89000.0,
32
+ "count": 3
33
+ },
34
+ "Worm.Step.sum": {
35
+ "value": 89000.0,
36
+ "min": 29000.0,
37
+ "max": 89000.0,
38
+ "count": 3
39
+ },
40
+ "Worm.Policy.ExtrinsicValueEstimate.mean": {
41
+ "value": 0.04667310044169426,
42
+ "min": 0.042724449187517166,
43
+ "max": 0.04667310044169426,
44
+ "count": 3
45
+ },
46
+ "Worm.Policy.ExtrinsicValueEstimate.sum": {
47
+ "value": 1.4001929759979248,
48
+ "min": 1.2612950801849365,
49
+ "max": 1.4001929759979248,
50
+ "count": 3
51
+ },
52
+ "Worm.Environment.CumulativeReward.mean": {
53
+ "value": 0.48600394654398166,
54
+ "min": 0.19933532153566677,
55
+ "max": 0.48600394654398166,
56
+ "count": 3
57
+ },
58
+ "Worm.Environment.CumulativeReward.sum": {
59
+ "value": 14.580118396319449,
60
+ "min": 5.9800596460700035,
61
+ "max": 14.580118396319449,
62
+ "count": 3
63
+ },
64
+ "Worm.Policy.ExtrinsicReward.mean": {
65
+ "value": 0.48600394654398166,
66
+ "min": 0.19933532153566677,
67
+ "max": 0.48600394654398166,
68
+ "count": 3
69
+ },
70
+ "Worm.Policy.ExtrinsicReward.sum": {
71
+ "value": 14.580118396319449,
72
+ "min": 5.9800596460700035,
73
+ "max": 14.580118396319449,
74
+ "count": 3
75
+ },
76
+ "Worm.IsTraining.mean": {
77
+ "value": 1.0,
78
+ "min": 1.0,
79
+ "max": 1.0,
80
+ "count": 3
81
+ },
82
+ "Worm.IsTraining.sum": {
83
+ "value": 1.0,
84
+ "min": 1.0,
85
+ "max": 1.0,
86
+ "count": 3
87
+ },
88
+ "Worm.Losses.PolicyLoss.mean": {
89
+ "value": 0.021550595627299378,
90
+ "min": 0.018366376078726415,
91
+ "max": 0.021550595627299378,
92
+ "count": 2
93
+ },
94
+ "Worm.Losses.PolicyLoss.sum": {
95
+ "value": 0.021550595627299378,
96
+ "min": 0.018366376078726415,
97
+ "max": 0.021550595627299378,
98
+ "count": 2
99
+ },
100
+ "Worm.Losses.ValueLoss.mean": {
101
+ "value": 0.0020331353242952553,
102
+ "min": 0.0020331353242952553,
103
+ "max": 0.0084186820923129,
104
+ "count": 2
105
+ },
106
+ "Worm.Losses.ValueLoss.sum": {
107
+ "value": 0.0020331353242952553,
108
+ "min": 0.0020331353242952553,
109
+ "max": 0.0084186820923129,
110
+ "count": 2
111
+ },
112
+ "Worm.Policy.LearningRate.mean": {
113
+ "value": 0.00012000006,
114
+ "min": 0.00012000006,
115
+ "max": 0.00021000003000000005,
116
+ "count": 2
117
+ },
118
+ "Worm.Policy.LearningRate.sum": {
119
+ "value": 0.00012000006,
120
+ "min": 0.00012000006,
121
+ "max": 0.00021000003000000005,
122
+ "count": 2
123
+ },
124
+ "Worm.Policy.Epsilon.mean": {
125
+ "value": 0.13999999999999999,
126
+ "min": 0.13999999999999999,
127
+ "max": 0.16999999999999998,
128
+ "count": 2
129
+ },
130
+ "Worm.Policy.Epsilon.sum": {
131
+ "value": 0.13999999999999999,
132
+ "min": 0.13999999999999999,
133
+ "max": 0.16999999999999998,
134
+ "count": 2
135
+ },
136
+ "Worm.Policy.Beta.mean": {
137
+ "value": 0.002006,
138
+ "min": 0.002006,
139
+ "max": 0.003503,
140
+ "count": 2
141
+ },
142
+ "Worm.Policy.Beta.sum": {
143
+ "value": 0.002006,
144
+ "min": 0.002006,
145
+ "max": 0.003503,
146
+ "count": 2
147
+ }
148
+ },
149
+ "metadata": {
150
+ "timer_format_version": "0.1.0",
151
+ "start_time_seconds": "1656848218",
152
+ "python_version": "3.7.13 (default, Mar 29 2022, 02:18:16) \n[GCC 7.5.0]",
153
+ "command_line_arguments": "/home/osanseviero/miniconda3/envs/mlagents/bin/mlagents-learn config/ppo/Worm.yaml --env=trained-envs-executables/linux/Worm/Worm --run-id=training --no-graphics",
154
+ "mlagents_version": "0.29.0.dev0",
155
+ "mlagents_envs_version": "0.29.0.dev0",
156
+ "communication_protocol_version": "1.5.0",
157
+ "pytorch_version": "1.8.0",
158
+ "numpy_version": "1.21.5",
159
+ "end_time_seconds": "1656848281"
160
+ },
161
+ "total": 63.20981318899999,
162
+ "count": 1,
163
+ "self": 0.21756502699997782,
164
+ "children": {
165
+ "run_training.setup": {
166
+ "total": 0.011864887000001545,
167
+ "count": 1,
168
+ "self": 0.011864887000001545
169
+ },
170
+ "TrainerController.start_learning": {
171
+ "total": 62.98038327500001,
172
+ "count": 1,
173
+ "self": 0.11905975900333488,
174
+ "children": {
175
+ "TrainerController._reset_env": {
176
+ "total": 2.0940638189999845,
177
+ "count": 1,
178
+ "self": 2.0940638189999845
179
+ },
180
+ "TrainerController.advance": {
181
+ "total": 60.70532365099666,
182
+ "count": 11000,
183
+ "self": 0.12366392499302492,
184
+ "children": {
185
+ "env_step": {
186
+ "total": 47.097982624001475,
187
+ "count": 11000,
188
+ "self": 37.81521809599985,
189
+ "children": {
190
+ "SubprocessEnvManager._take_step": {
191
+ "total": 9.211672923999458,
192
+ "count": 11000,
193
+ "self": 0.4888320110017048,
194
+ "children": {
195
+ "TorchPolicy.evaluate": {
196
+ "total": 8.722840912997754,
197
+ "count": 11000,
198
+ "self": 2.3672766420068,
199
+ "children": {
200
+ "TorchPolicy.sample_actions": {
201
+ "total": 6.3555642709909534,
202
+ "count": 11000,
203
+ "self": 6.3555642709909534
204
+ }
205
+ }
206
+ }
207
+ }
208
+ },
209
+ "workers": {
210
+ "total": 0.07109160400216297,
211
+ "count": 11000,
212
+ "self": 0.0,
213
+ "children": {
214
+ "worker_root": {
215
+ "total": 62.43959642200389,
216
+ "count": 11000,
217
+ "is_parallel": true,
218
+ "self": 31.027620766000723,
219
+ "children": {
220
+ "run_training.setup": {
221
+ "total": 0.0,
222
+ "count": 0,
223
+ "is_parallel": true,
224
+ "self": 0.0,
225
+ "children": {
226
+ "steps_from_proto": {
227
+ "total": 0.00048800000001847366,
228
+ "count": 1,
229
+ "is_parallel": true,
230
+ "self": 0.0001534439999204551,
231
+ "children": {
232
+ "_process_rank_one_or_two_observation": {
233
+ "total": 0.00033455600009801856,
234
+ "count": 2,
235
+ "is_parallel": true,
236
+ "self": 0.00033455600009801856
237
+ }
238
+ }
239
+ },
240
+ "UnityEnvironment.step": {
241
+ "total": 0.012903008999956,
242
+ "count": 1,
243
+ "is_parallel": true,
244
+ "self": 0.00010182199991959351,
245
+ "children": {
246
+ "UnityEnvironment._generate_step_input": {
247
+ "total": 0.00019712400001026253,
248
+ "count": 1,
249
+ "is_parallel": true,
250
+ "self": 0.00019712400001026253
251
+ },
252
+ "communicator.exchange": {
253
+ "total": 0.012344298000016352,
254
+ "count": 1,
255
+ "is_parallel": true,
256
+ "self": 0.012344298000016352
257
+ },
258
+ "steps_from_proto": {
259
+ "total": 0.00025976500000979286,
260
+ "count": 1,
261
+ "is_parallel": true,
262
+ "self": 0.00010080200001993944,
263
+ "children": {
264
+ "_process_rank_one_or_two_observation": {
265
+ "total": 0.00015896299998985342,
266
+ "count": 2,
267
+ "is_parallel": true,
268
+ "self": 0.00015896299998985342
269
+ }
270
+ }
271
+ }
272
+ }
273
+ }
274
+ }
275
+ },
276
+ "UnityEnvironment.step": {
277
+ "total": 31.411975656003165,
278
+ "count": 10999,
279
+ "is_parallel": true,
280
+ "self": 0.8720366130122557,
281
+ "children": {
282
+ "UnityEnvironment._generate_step_input": {
283
+ "total": 1.2969238320011982,
284
+ "count": 10999,
285
+ "is_parallel": true,
286
+ "self": 1.2969238320011982
287
+ },
288
+ "communicator.exchange": {
289
+ "total": 27.124492783997198,
290
+ "count": 10999,
291
+ "is_parallel": true,
292
+ "self": 27.124492783997198
293
+ },
294
+ "steps_from_proto": {
295
+ "total": 2.118522426992513,
296
+ "count": 10999,
297
+ "is_parallel": true,
298
+ "self": 0.8417608799842355,
299
+ "children": {
300
+ "_process_rank_one_or_two_observation": {
301
+ "total": 1.2767615470082774,
302
+ "count": 21998,
303
+ "is_parallel": true,
304
+ "self": 1.2767615470082774
305
+ }
306
+ }
307
+ }
308
+ }
309
+ }
310
+ }
311
+ }
312
+ }
313
+ }
314
+ }
315
+ },
316
+ "trainer_advance": {
317
+ "total": 13.483677102002162,
318
+ "count": 11000,
319
+ "self": 0.14227185999698122,
320
+ "children": {
321
+ "process_trajectory": {
322
+ "total": 4.2275462980052225,
323
+ "count": 11000,
324
+ "self": 4.2275462980052225
325
+ },
326
+ "_update_policy": {
327
+ "total": 9.113858943999958,
328
+ "count": 3,
329
+ "self": 7.840472577000469,
330
+ "children": {
331
+ "TorchPPOOptimizer.update": {
332
+ "total": 1.273386366999489,
333
+ "count": 126,
334
+ "self": 1.273386366999489
335
+ }
336
+ }
337
+ }
338
+ }
339
+ }
340
+ }
341
+ },
342
+ "trainer_threads": {
343
+ "total": 7.400000185953104e-07,
344
+ "count": 1,
345
+ "self": 7.400000185953104e-07
346
+ },
347
+ "TrainerController._save_models": {
348
+ "total": 0.061935306000009405,
349
+ "count": 1,
350
+ "self": 0.0012024039999687375,
351
+ "children": {
352
+ "RLTrainer._checkpoint": {
353
+ "total": 0.06073290200004067,
354
+ "count": 1,
355
+ "self": 0.06073290200004067
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+ }
362
+ }
run_logs/training_status.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Worm": {
3
+ "checkpoints": [
4
+ {
5
+ "steps": 110000,
6
+ "file_path": "results/training/Worm/Worm-110000.onnx",
7
+ "reward": 0.27359586344100534,
8
+ "creation_time": 1656848281.221885,
9
+ "auxillary_file_paths": [
10
+ "results/training/Worm/Worm-110000.pt"
11
+ ]
12
+ }
13
+ ],
14
+ "final_checkpoint": {
15
+ "steps": 110000,
16
+ "file_path": "results/training/Worm.onnx",
17
+ "reward": 0.27359586344100534,
18
+ "creation_time": 1656848281.221885,
19
+ "auxillary_file_paths": [
20
+ "results/training/Worm/Worm-110000.pt"
21
+ ]
22
+ }
23
+ },
24
+ "metadata": {
25
+ "stats_format_version": "0.3.0",
26
+ "mlagents_version": "0.29.0.dev0",
27
+ "torch_version": "1.8.0"
28
+ }
29
+ }