mrm8488 commited on
Commit
2f45f95
1 Parent(s): 68ea4ea

First Commit

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: mrm8488/Worm_v2
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:592a8e088b4b3a274687929b901820a979f1f4e2c716975dbbcd7d7913649c2c
3
+ size 8703087
Worm/Worm-6499000.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7f5e7659820bea0e45054116f034c1588cf7adbf7dc2f7a11b7b8eeb9b8242e
3
+ size 8703087
Worm/Worm-6499000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba443f79e1fb9f73594fc96e9933911ed5953bac40e0409f15db072a9726c40c
3
+ size 52126317
Worm/Worm-6999000.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7882aa6701d67440c5760f0632130aadc7bc2f2e32d024c389997b142cbb583d
3
+ size 8703087
Worm/Worm-6999000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b6dba0c5257ee8c0fda6f0c1ff910219425802d6e6b5736f7eda9b1e4946dab
3
+ size 52126317
Worm/Worm-7010000.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:592a8e088b4b3a274687929b901820a979f1f4e2c716975dbbcd7d7913649c2c
3
+ size 8703087
Worm/Worm-7010000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4865c1dc53e60324418d04c289b7eb6d7b6e8628f8f1bf1d1f4123b3571edded
3
+ size 52126317
Worm/checkpoint.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4865c1dc53e60324418d04c289b7eb6d7b6e8628f8f1bf1d1f4123b3571edded
3
+ size 52126317
Worm/events.out.tfevents.1660212902.f6aa79c1266f.242.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:861042bfd2f74a615813561961a207730a639ff7e343dad7255d864b4bb6f758
3
+ size 230653
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": 5, "learning_rate_schedule": "linear", "beta_schedule": "linear", "epsilon_schedule": "linear"}, "network_settings": {"normalize": true, "hidden_units": 1024, "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": 3, "checkpoint_interval": 500000, "max_steps": 7000000, "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": "Worm2 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: 5
13
+ learning_rate_schedule: linear
14
+ beta_schedule: linear
15
+ epsilon_schedule: linear
16
+ network_settings:
17
+ normalize: true
18
+ hidden_units: 1024
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: 3
38
+ checkpoint_interval: 500000
39
+ max_steps: 7000000
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: Worm2 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,317 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Mono path[0] = '/content/ml-agents/trained-envs-executables/linux/Worm/Worm_Data/Managed'
2
+ Mono config path = '/content/ml-agents/trained-envs-executables/linux/Worm/Worm_Data/MonoBleedingEdge/etc'
3
+ Found 1 interfaces on host : 0) 172.28.0.2
4
+ Multi-casting "[IP] 172.28.0.2 [Port] 55129 [Flags] 2 [Guid] 2458128492 [EditorId] 588871222 [Version] 1048832 [Id] LinuxPlayer(13,172.28.0.2) [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
+ PlayerPrefs - Creating folder: /root/.config/unity3d/Unity Technologies
8
+ PlayerPrefs - Creating folder: /root/.config/unity3d/Unity Technologies/UnityEnvironment
9
+ Unable to load player prefs
10
+ Initialize engine version: 2021.3.5f1 (40eb3a945986)
11
+ [Subsystems] Discovering subsystems at path /content/ml-agents/trained-envs-executables/linux/Worm/Worm_Data/UnitySubsystems
12
+ Forcing GfxDevice: Null
13
+ GfxDevice: creating device client; threaded=0; jobified=0
14
+ NullGfxDevice:
15
+ Version: NULL 1.0 [1.0]
16
+ Renderer: Null Device
17
+ Vendor: Unity Technologies
18
+ ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
19
+ ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
20
+ ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
21
+ ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
22
+ ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
23
+ ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
24
+ ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
25
+ ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
26
+ FMOD failed to initialize the output device.: "Error initializing output device. " (60)
27
+ Forced to initialize FMOD to to the device driver's system output rate 48000, this may impact performance and/or give inconsistent experiences compared to selected sample rate 48000
28
+ ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
29
+ ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
30
+ ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
31
+ ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
32
+ ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
33
+ ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
34
+ ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
35
+ ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
36
+ FMOD failed to initialize the output device.: "Error initializing output device. " (60)
37
+ FMOD initialized on nosound output
38
+ Begin MonoManager ReloadAssembly
39
+ - Completed reload, in 0.106 seconds
40
+ ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
41
+ ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
42
+ ERROR: Shader Legacy Shaders/VertexLit shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
43
+ WARNING: Shader Unsupported: 'Legacy Shaders/Diffuse' - All subshaders removed
44
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
45
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
46
+ ERROR: Shader Legacy Shaders/Diffuse shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
47
+ WARNING: Shader Unsupported: 'Legacy Shaders/Diffuse' - All subshaders removed
48
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
49
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
50
+ WARNING: Shader Unsupported: 'ML-Agents/GridPattern' - All subshaders removed
51
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
52
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
53
+ ERROR: Shader ML-Agents/GridPattern shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
54
+ WARNING: Shader Unsupported: 'ML-Agents/GridPattern' - All subshaders removed
55
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
56
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
57
+ WARNING: Shader Unsupported: 'Standard' - All subshaders removed
58
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
59
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
60
+ ERROR: Shader Standard shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
61
+ WARNING: Shader Unsupported: 'Standard' - All subshaders removed
62
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
63
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
64
+ WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
65
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
66
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
67
+ ERROR: Shader Autodesk Interactive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
68
+ WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
69
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
70
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
71
+ UnloadTime: 1.039386 ms
72
+ ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
73
+ requesting resize 84 x 84
74
+ Setting up 1 worker threads for Enlighten.
75
+ PlayerConnection::CleanupMemory Statistics:
76
+ [ALLOC_TEMP_TLS] TLS Allocator
77
+ StackAllocators :
78
+ [ALLOC_TEMP_MAIN]
79
+ Peak usage frame count: [4.0 KB-8.0 KB]: 140164 frames, [2.0 MB-4.0 MB]: 1 frames
80
+ Initial Block Size 4.0 MB
81
+ Current Block Size 4.0 MB
82
+ Peak Allocated Bytes 2.0 MB
83
+ Overflow Count 0
84
+ [ALLOC_TEMP_Background Job.Worker 8]
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_Background Job.Worker 10]
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 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_AUDIO_FMOD mixer thread]
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 1]
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 11]
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 3]
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_BatchDeleteObjects]
120
+ Initial Block Size 64.0 KB
121
+ Current Block Size 64.0 KB
122
+ Peak Allocated Bytes 0 B
123
+ Overflow Count 0
124
+ [ALLOC_TEMP_AUDIO_FMOD stream thread]
125
+ Initial Block Size 64.0 KB
126
+ Current Block Size 64.0 KB
127
+ Peak Allocated Bytes 0 B
128
+ Overflow Count 0
129
+ [ALLOC_TEMP_Background Job.Worker 15]
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_Background Job.Worker 7]
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 2]
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_Loading.PreloadManager]
145
+ Initial Block Size 256.0 KB
146
+ Current Block Size 284.0 KB
147
+ Peak Allocated Bytes 243.3 KB
148
+ Overflow Count 4
149
+ [ALLOC_TEMP_Profiler.Dispatcher]
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_Background Job.Worker 12]
155
+ Initial Block Size 32.0 KB
156
+ Current Block Size 32.0 KB
157
+ Peak Allocated Bytes 0 B
158
+ Overflow Count 0
159
+ [ALLOC_TEMP_AssetGarbageCollectorHelper]
160
+ Initial Block Size 64.0 KB
161
+ Current Block Size 64.0 KB
162
+ Peak Allocated Bytes 0 B
163
+ Overflow Count 0
164
+ [ALLOC_TEMP_Background Job.Worker 5]
165
+ Initial Block Size 32.0 KB
166
+ Current Block Size 32.0 KB
167
+ Peak Allocated Bytes 0 B
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_Background Job.Worker 0]
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 4]
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 0]
185
+ Initial Block Size 256.0 KB
186
+ Current Block Size 256.0 KB
187
+ Peak Allocated Bytes 0.8 KB
188
+ Overflow Count 0
189
+ [ALLOC_TEMP_Background Job.Worker 14]
190
+ Initial Block Size 32.0 KB
191
+ Current Block Size 32.0 KB
192
+ Peak Allocated Bytes 0 B
193
+ Overflow Count 0
194
+ [ALLOC_TEMP_Background Job.Worker 9]
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_EnlightenWorker]
200
+ Initial Block Size 64.0 KB
201
+ Current Block Size 64.0 KB
202
+ Peak Allocated Bytes 0 B
203
+ Overflow Count 0
204
+ [ALLOC_TEMP_Loading.AsyncRead]
205
+ Initial Block Size 64.0 KB
206
+ Current Block Size 64.0 KB
207
+ Peak Allocated Bytes 128 B
208
+ Overflow Count 0
209
+ [ALLOC_MEMORYPROFILER]
210
+ Peak usage frame count: [64.0 KB-128.0 KB]: 140165 frames
211
+ Requested Block Size 1.0 MB
212
+ Peak Block count 1
213
+ Peak Allocated memory 103.1 KB
214
+ Peak Large allocation bytes 0 B
215
+ [ALLOC_DEFAULT] Dual Thread Allocator
216
+ Peak main deferred allocation count 75
217
+ [ALLOC_BUCKET]
218
+ Large Block size 4.0 MB
219
+ Used Block count 1
220
+ Peak Allocated bytes 0.7 MB
221
+ [ALLOC_DEFAULT_MAIN]
222
+ Peak usage frame count: [4.0 MB-8.0 MB]: 140165 frames
223
+ Requested Block Size 16.0 MB
224
+ Peak Block count 1
225
+ Peak Allocated memory 4.9 MB
226
+ Peak Large allocation bytes 0 B
227
+ [ALLOC_DEFAULT_THREAD]
228
+ Peak usage frame count: [16.0 MB-32.0 MB]: 140165 frames
229
+ Requested Block Size 16.0 MB
230
+ Peak Block count 1
231
+ Peak Allocated memory 17.9 MB
232
+ Peak Large allocation bytes 16.0 MB
233
+ [ALLOC_TEMP_JOB_1_FRAME]
234
+ Initial Block Size 2.0 MB
235
+ Used Block Count 1
236
+ Overflow Count (too large) 0
237
+ Overflow Count (full) 0
238
+ [ALLOC_TEMP_JOB_2_FRAMES]
239
+ Initial Block Size 2.0 MB
240
+ Used Block Count 1
241
+ Overflow Count (too large) 0
242
+ Overflow Count (full) 0
243
+ [ALLOC_TEMP_JOB_4_FRAMES (JobTemp)]
244
+ Initial Block Size 2.0 MB
245
+ Used Block Count 2
246
+ Overflow Count (too large) 0
247
+ Overflow Count (full) 0
248
+ [ALLOC_TEMP_JOB_ASYNC (Background)]
249
+ Initial Block Size 1.0 MB
250
+ Used Block Count 3
251
+ Overflow Count (too large) 0
252
+ Overflow Count (full) 0
253
+ [ALLOC_GFX] Dual Thread Allocator
254
+ Peak main deferred allocation count 0
255
+ [ALLOC_BUCKET]
256
+ Large Block size 4.0 MB
257
+ Used Block count 1
258
+ Peak Allocated bytes 0.7 MB
259
+ [ALLOC_GFX_MAIN]
260
+ Peak usage frame count: [32.0 KB-64.0 KB]: 140164 frames, [64.0 KB-128.0 KB]: 1 frames
261
+ Requested Block Size 16.0 MB
262
+ Peak Block count 1
263
+ Peak Allocated memory 67.0 KB
264
+ Peak Large allocation bytes 0 B
265
+ [ALLOC_GFX_THREAD]
266
+ Peak usage frame count: [128.0 KB-256.0 KB]: 140165 frames
267
+ Requested Block Size 16.0 MB
268
+ Peak Block count 1
269
+ Peak Allocated memory 151.2 KB
270
+ Peak Large allocation bytes 0 B
271
+ [ALLOC_CACHEOBJECTS] Dual Thread Allocator
272
+ Peak main deferred allocation count 0
273
+ [ALLOC_BUCKET]
274
+ Large Block size 4.0 MB
275
+ Used Block count 1
276
+ Peak Allocated bytes 0.7 MB
277
+ [ALLOC_CACHEOBJECTS_MAIN]
278
+ Peak usage frame count: [0.5 MB-1.0 MB]: 140165 frames
279
+ Requested Block Size 4.0 MB
280
+ Peak Block count 1
281
+ Peak Allocated memory 0.6 MB
282
+ Peak Large allocation bytes 0 B
283
+ [ALLOC_CACHEOBJECTS_THREAD]
284
+ Peak usage frame count: [256.0 KB-0.5 MB]: 140164 frames, [2.0 MB-4.0 MB]: 1 frames
285
+ Requested Block Size 4.0 MB
286
+ Peak Block count 1
287
+ Peak Allocated memory 3.8 MB
288
+ Peak Large allocation bytes 0 B
289
+ [ALLOC_TYPETREE] Dual Thread Allocator
290
+ Peak main deferred allocation count 0
291
+ [ALLOC_BUCKET]
292
+ Large Block size 4.0 MB
293
+ Used Block count 1
294
+ Peak Allocated bytes 0.7 MB
295
+ [ALLOC_TYPETREE_MAIN]
296
+ Peak usage frame count: [0-1.0 KB]: 140165 frames
297
+ Requested Block Size 2.0 MB
298
+ Peak Block count 1
299
+ Peak Allocated memory 1.0 KB
300
+ Peak Large allocation bytes 0 B
301
+ [ALLOC_TYPETREE_THREAD]
302
+ Peak usage frame count: [4.0 KB-8.0 KB]: 140164 frames, [8.0 KB-16.0 KB]: 1 frames
303
+ Requested Block Size 2.0 MB
304
+ Peak Block count 1
305
+ Peak Allocated memory 9.3 KB
306
+ Peak Large allocation bytes 0 B
307
+ [ALLOC_PROFILER]
308
+ Peak usage frame count: [16.0 KB-32.0 KB]: 140165 frames
309
+ Requested Block Size 16.0 MB
310
+ Peak Block count 1
311
+ Peak Allocated memory 29.2 KB
312
+ Peak Large allocation bytes 0 B
313
+ [ALLOC_PROFILER_BUCKET]
314
+ Large Block size 4.0 MB
315
+ Used Block count 1
316
+ Peak Allocated bytes 332 B
317
+ ##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate","time":1660224916172,"processId":255,"allocatedMemory":1957305,"memoryLabels":[{"Default":9033},{"Permanent":1264},{"Thread":34460},{"Manager":10603},{"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":3420},{"DynamicArray":30868},{"HashMap":7680},{"Utility":1360},{"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,369 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "root",
3
+ "gauges": {
4
+ "Worm.Policy.Entropy.mean": {
5
+ "value": 0.4339846968650818,
6
+ "min": 0.4339846968650818,
7
+ "max": 1.425347089767456,
8
+ "count": 233
9
+ },
10
+ "Worm.Policy.Entropy.sum": {
11
+ "value": 13019.541015625,
12
+ "min": 13019.541015625,
13
+ "max": 42760.4140625,
14
+ "count": 233
15
+ },
16
+ "Worm.Environment.EpisodeLength.mean": {
17
+ "value": 999.0,
18
+ "min": 999.0,
19
+ "max": 999.0,
20
+ "count": 233
21
+ },
22
+ "Worm.Environment.EpisodeLength.sum": {
23
+ "value": 29970.0,
24
+ "min": 29970.0,
25
+ "max": 29970.0,
26
+ "count": 233
27
+ },
28
+ "Worm.Step.mean": {
29
+ "value": 6989000.0,
30
+ "min": 29000.0,
31
+ "max": 6989000.0,
32
+ "count": 233
33
+ },
34
+ "Worm.Step.sum": {
35
+ "value": 6989000.0,
36
+ "min": 29000.0,
37
+ "max": 6989000.0,
38
+ "count": 233
39
+ },
40
+ "Worm.Policy.ExtrinsicValueEstimate.mean": {
41
+ "value": 255.49131774902344,
42
+ "min": 0.05548596382141113,
43
+ "max": 256.8880310058594,
44
+ "count": 233
45
+ },
46
+ "Worm.Policy.ExtrinsicValueEstimate.sum": {
47
+ "value": 7664.73974609375,
48
+ "min": 1.664578914642334,
49
+ "max": 7706.640625,
50
+ "count": 233
51
+ },
52
+ "Worm.Environment.CumulativeReward.mean": {
53
+ "value": 1280.3476847330728,
54
+ "min": 0.3973975207271247,
55
+ "max": 1294.5965779622395,
56
+ "count": 233
57
+ },
58
+ "Worm.Environment.CumulativeReward.sum": {
59
+ "value": 38410.43054199219,
60
+ "min": 11.524528101086617,
61
+ "max": 38837.89733886719,
62
+ "count": 233
63
+ },
64
+ "Worm.Policy.ExtrinsicReward.mean": {
65
+ "value": 1280.3476847330728,
66
+ "min": 0.3973975207271247,
67
+ "max": 1294.5965779622395,
68
+ "count": 233
69
+ },
70
+ "Worm.Policy.ExtrinsicReward.sum": {
71
+ "value": 38410.43054199219,
72
+ "min": 11.524528101086617,
73
+ "max": 38837.89733886719,
74
+ "count": 233
75
+ },
76
+ "Worm.IsTraining.mean": {
77
+ "value": 1.0,
78
+ "min": 1.0,
79
+ "max": 1.0,
80
+ "count": 233
81
+ },
82
+ "Worm.IsTraining.sum": {
83
+ "value": 1.0,
84
+ "min": 1.0,
85
+ "max": 1.0,
86
+ "count": 233
87
+ },
88
+ "Worm.Losses.PolicyLoss.mean": {
89
+ "value": 0.016954120023209337,
90
+ "min": 0.014543257566609619,
91
+ "max": 0.02564329657678692,
92
+ "count": 232
93
+ },
94
+ "Worm.Losses.PolicyLoss.sum": {
95
+ "value": 0.016954120023209337,
96
+ "min": 0.014543257566609619,
97
+ "max": 0.02564329657678692,
98
+ "count": 232
99
+ },
100
+ "Worm.Losses.ValueLoss.mean": {
101
+ "value": 46.91152316502163,
102
+ "min": 0.0017147937673144043,
103
+ "max": 52.668317140851705,
104
+ "count": 232
105
+ },
106
+ "Worm.Losses.ValueLoss.sum": {
107
+ "value": 46.91152316502163,
108
+ "min": 0.0017147937673144043,
109
+ "max": 52.668317140851705,
110
+ "count": 232
111
+ },
112
+ "Worm.Policy.LearningRate.mean": {
113
+ "value": 1.7143851428571304e-06,
114
+ "min": 1.7143851428571304e-06,
115
+ "max": 0.00029871428614285713,
116
+ "count": 232
117
+ },
118
+ "Worm.Policy.LearningRate.sum": {
119
+ "value": 1.7143851428571304e-06,
120
+ "min": 1.7143851428571304e-06,
121
+ "max": 0.00029871428614285713,
122
+ "count": 232
123
+ },
124
+ "Worm.Policy.Epsilon.mean": {
125
+ "value": 0.10057142857142856,
126
+ "min": 0.10057142857142856,
127
+ "max": 0.19957142857142848,
128
+ "count": 232
129
+ },
130
+ "Worm.Policy.Epsilon.sum": {
131
+ "value": 0.10057142857142856,
132
+ "min": 0.10057142857142856,
133
+ "max": 0.19957142857142848,
134
+ "count": 232
135
+ },
136
+ "Worm.Policy.Beta.mean": {
137
+ "value": 3.851428571428551e-05,
138
+ "min": 3.851428571428551e-05,
139
+ "max": 0.004978614285714285,
140
+ "count": 232
141
+ },
142
+ "Worm.Policy.Beta.sum": {
143
+ "value": 3.851428571428551e-05,
144
+ "min": 3.851428571428551e-05,
145
+ "max": 0.004978614285714285,
146
+ "count": 232
147
+ }
148
+ },
149
+ "metadata": {
150
+ "timer_format_version": "0.1.0",
151
+ "start_time_seconds": "1660212893",
152
+ "python_version": "3.7.13 (default, Apr 24 2022, 01:04:09) \n[GCC 7.5.0]",
153
+ "command_line_arguments": "/usr/local/bin/mlagents-learn ./config/ppo/Worm.yaml --env=./trained-envs-executables/linux/Worm/Worm --run-id=Worm2 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.1+cu102",
158
+ "numpy_version": "1.21.6",
159
+ "end_time_seconds": "1660224916"
160
+ },
161
+ "total": 12022.860046743,
162
+ "count": 1,
163
+ "self": 0.5516019420028897,
164
+ "children": {
165
+ "run_training.setup": {
166
+ "total": 0.06923555699995632,
167
+ "count": 1,
168
+ "self": 0.06923555699995632
169
+ },
170
+ "TrainerController.start_learning": {
171
+ "total": 12022.239209243999,
172
+ "count": 1,
173
+ "self": 17.006347716003802,
174
+ "children": {
175
+ "TrainerController._reset_env": {
176
+ "total": 12.363578319999988,
177
+ "count": 1,
178
+ "self": 12.363578319999988
179
+ },
180
+ "TrainerController.advance": {
181
+ "total": 11992.463333555996,
182
+ "count": 701000,
183
+ "self": 18.919621536715567,
184
+ "children": {
185
+ "env_step": {
186
+ "total": 8936.103971909284,
187
+ "count": 701000,
188
+ "self": 7595.906745481266,
189
+ "children": {
190
+ "SubprocessEnvManager._take_step": {
191
+ "total": 1330.24418947316,
192
+ "count": 701000,
193
+ "self": 78.1668792699611,
194
+ "children": {
195
+ "TorchPolicy.evaluate": {
196
+ "total": 1252.077310203199,
197
+ "count": 701000,
198
+ "self": 304.6395322953017,
199
+ "children": {
200
+ "TorchPolicy.sample_actions": {
201
+ "total": 947.4377779078973,
202
+ "count": 701000,
203
+ "self": 947.4377779078973
204
+ }
205
+ }
206
+ }
207
+ }
208
+ },
209
+ "workers": {
210
+ "total": 9.95303695485859,
211
+ "count": 701000,
212
+ "self": 0.0,
213
+ "children": {
214
+ "worker_root": {
215
+ "total": 11989.978133554368,
216
+ "count": 701000,
217
+ "is_parallel": true,
218
+ "self": 5483.934479929755,
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.0012625439999283117,
228
+ "count": 1,
229
+ "is_parallel": true,
230
+ "self": 0.0004167579998011206,
231
+ "children": {
232
+ "_process_rank_one_or_two_observation": {
233
+ "total": 0.0008457860001271911,
234
+ "count": 2,
235
+ "is_parallel": true,
236
+ "self": 0.0008457860001271911
237
+ }
238
+ }
239
+ },
240
+ "UnityEnvironment.step": {
241
+ "total": 0.04086264500006109,
242
+ "count": 1,
243
+ "is_parallel": true,
244
+ "self": 0.0003425719999086141,
245
+ "children": {
246
+ "UnityEnvironment._generate_step_input": {
247
+ "total": 0.0005374710001433414,
248
+ "count": 1,
249
+ "is_parallel": true,
250
+ "self": 0.0005374710001433414
251
+ },
252
+ "communicator.exchange": {
253
+ "total": 0.03903397700014466,
254
+ "count": 1,
255
+ "is_parallel": true,
256
+ "self": 0.03903397700014466
257
+ },
258
+ "steps_from_proto": {
259
+ "total": 0.000948624999864478,
260
+ "count": 1,
261
+ "is_parallel": true,
262
+ "self": 0.0003397880000193254,
263
+ "children": {
264
+ "_process_rank_one_or_two_observation": {
265
+ "total": 0.0006088369998451526,
266
+ "count": 2,
267
+ "is_parallel": true,
268
+ "self": 0.0006088369998451526
269
+ }
270
+ }
271
+ }
272
+ }
273
+ }
274
+ }
275
+ },
276
+ "UnityEnvironment.step": {
277
+ "total": 6506.043653624613,
278
+ "count": 700999,
279
+ "is_parallel": true,
280
+ "self": 160.86337100917444,
281
+ "children": {
282
+ "UnityEnvironment._generate_step_input": {
283
+ "total": 299.88446902831856,
284
+ "count": 700999,
285
+ "is_parallel": true,
286
+ "self": 299.88446902831856
287
+ },
288
+ "communicator.exchange": {
289
+ "total": 5615.445410939148,
290
+ "count": 700999,
291
+ "is_parallel": true,
292
+ "self": 5615.445410939148
293
+ },
294
+ "steps_from_proto": {
295
+ "total": 429.85040264797226,
296
+ "count": 700999,
297
+ "is_parallel": true,
298
+ "self": 190.38673972843094,
299
+ "children": {
300
+ "_process_rank_one_or_two_observation": {
301
+ "total": 239.46366291954132,
302
+ "count": 1401998,
303
+ "is_parallel": true,
304
+ "self": 239.46366291954132
305
+ }
306
+ }
307
+ }
308
+ }
309
+ }
310
+ }
311
+ }
312
+ }
313
+ }
314
+ }
315
+ },
316
+ "trainer_advance": {
317
+ "total": 3037.439740109996,
318
+ "count": 701000,
319
+ "self": 20.913014486292013,
320
+ "children": {
321
+ "process_trajectory": {
322
+ "total": 589.7322016627002,
323
+ "count": 701000,
324
+ "self": 584.5715786516978,
325
+ "children": {
326
+ "RLTrainer._checkpoint": {
327
+ "total": 5.160623011002372,
328
+ "count": 14,
329
+ "self": 5.160623011002372
330
+ }
331
+ }
332
+ },
333
+ "_update_policy": {
334
+ "total": 2426.7945239610035,
335
+ "count": 233,
336
+ "self": 2035.6206693850027,
337
+ "children": {
338
+ "TorchPPOOptimizer.update": {
339
+ "total": 391.17385457600085,
340
+ "count": 16310,
341
+ "self": 391.17385457600085
342
+ }
343
+ }
344
+ }
345
+ }
346
+ }
347
+ }
348
+ },
349
+ "trainer_threads": {
350
+ "total": 1.700998836895451e-06,
351
+ "count": 1,
352
+ "self": 1.700998836895451e-06
353
+ },
354
+ "TrainerController._save_models": {
355
+ "total": 0.40594795099968906,
356
+ "count": 1,
357
+ "self": 0.022390504998838878,
358
+ "children": {
359
+ "RLTrainer._checkpoint": {
360
+ "total": 0.3835574460008502,
361
+ "count": 1,
362
+ "self": 0.3835574460008502
363
+ }
364
+ }
365
+ }
366
+ }
367
+ }
368
+ }
369
+ }
run_logs/training_status.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Worm": {
3
+ "checkpoints": [
4
+ {
5
+ "steps": 6499000,
6
+ "file_path": "results/Worm2 Training/Worm/Worm-6499000.onnx",
7
+ "reward": 1260.9646574321546,
8
+ "creation_time": 1660224037.7736816,
9
+ "auxillary_file_paths": [
10
+ "results/Worm2 Training/Worm/Worm-6499000.pt"
11
+ ]
12
+ },
13
+ {
14
+ "steps": 6999000,
15
+ "file_path": "results/Worm2 Training/Worm/Worm-6999000.onnx",
16
+ "reward": 1233.3860948350693,
17
+ "creation_time": 1660224901.2351623,
18
+ "auxillary_file_paths": [
19
+ "results/Worm2 Training/Worm/Worm-6999000.pt"
20
+ ]
21
+ },
22
+ {
23
+ "steps": 7010000,
24
+ "file_path": "results/Worm2 Training/Worm/Worm-7010000.onnx",
25
+ "reward": 1243.7669494628906,
26
+ "creation_time": 1660224915.6511238,
27
+ "auxillary_file_paths": [
28
+ "results/Worm2 Training/Worm/Worm-7010000.pt"
29
+ ]
30
+ }
31
+ ],
32
+ "final_checkpoint": {
33
+ "steps": 7010000,
34
+ "file_path": "results/Worm2 Training/Worm.onnx",
35
+ "reward": 1243.7669494628906,
36
+ "creation_time": 1660224915.6511238,
37
+ "auxillary_file_paths": [
38
+ "results/Worm2 Training/Worm/Worm-7010000.pt"
39
+ ]
40
+ }
41
+ },
42
+ "metadata": {
43
+ "stats_format_version": "0.3.0",
44
+ "mlagents_version": "0.29.0.dev0",
45
+ "torch_version": "1.8.1+cu102"
46
+ }
47
+ }