sighmon commited on
Commit
e991337
·
verified ·
1 Parent(s): 04f5429

First training

Browse files
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: ml-agents
3
+ tags:
4
+ - Worm
5
+ - deep-reinforcement-learning
6
+ - reinforcement-learning
7
+ - ML-Agents-Worm
8
+ ---
9
+
10
+ # **ppo** Agent playing **Worm**
11
+ This is a trained model of a **ppo** agent playing **Worm**
12
+ using the [Unity ML-Agents Library](https://github.com/Unity-Technologies/ml-agents).
13
+
14
+ ## Usage (with ML-Agents)
15
+ The Documentation: https://unity-technologies.github.io/ml-agents/ML-Agents-Toolkit-Documentation/
16
+
17
+ We wrote a complete tutorial to learn to train your first agent using ML-Agents and publish it to the Hub:
18
+ - A *short tutorial* where you teach Huggy the Dog 🐶 to fetch the stick and then play with him directly in your
19
+ browser: https://huggingface.co/learn/deep-rl-course/unitbonus1/introduction
20
+ - A *longer tutorial* to understand how works ML-Agents:
21
+ https://huggingface.co/learn/deep-rl-course/unit5/introduction
22
+
23
+ ### Resume the training
24
+ ```bash
25
+ mlagents-learn <your_configuration_file_path.yaml> --run-id=<run_id> --resume
26
+ ```
27
+
28
+ ### Watch your Agent play
29
+ You can watch your agent **playing directly in your browser**
30
+
31
+ 1. If the environment is part of ML-Agents official environments, go to https://huggingface.co/unity
32
+ 2. Step 1: Find your model_id: sighmon/ppo-Worm
33
+ 3. Step 2: Select your *.nn /*.onnx file
34
+ 4. Click on Watch the agent play 👀
35
+
Worm.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbc6cab8a0a402aee89c455bbf8be55b30d4a040cff5188f5d5902e463c6d071
3
+ size 2259626
Worm/Worm-1010000.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbc6cab8a0a402aee89c455bbf8be55b30d4a040cff5188f5d5902e463c6d071
3
+ size 2259626
Worm/Worm-1010000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f063ef8514b13e1043fad16d81093c63b1bc89ad03094b6185fa16c55bd480a
3
+ size 13496972
Worm/Worm-499000.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd93f6096ef6a4874112728d2ed5b0693f8df6d52245b63ac77a9a5f2c46633f
3
+ size 2259626
Worm/Worm-499000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:871cd04f2ce3d94158ebdd5fabe4799fe2ca58e76379ebd1ed8a95fdb5536d7c
3
+ size 13496887
Worm/Worm-999000.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5dea889eaa2e545520ffc9e6af139e9b613235730fd3a9451fc554ffb5d039d
3
+ size 2259626
Worm/Worm-999000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cba8e0f35b22e05f7f9e9305284c1759a895cd5634b6f8ded6b799f04104da51
3
+ size 13496887
Worm/checkpoint.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91c962af242542fff9bd20aca83d04278af62fad2bd14a7a155679b8ca50a899
3
+ size 13496802
Worm/events.out.tfevents.1739582329.4cb23311cdf8.4829.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08a6eb9420e923840a8b425e1ea43086a83a3276030923d0de988166c0e9a7c4
3
+ size 158180
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, "shared_critic": false, "learning_rate_schedule": "linear", "beta_schedule": "linear", "epsilon_schedule": "linear"}, "checkpoint_interval": 500000, "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, "even_checkpoints": false, "max_steps": 1000000, "time_horizon": 1000, "summary_freq": 30000, "threaded": false, "self_play": null, "behavioral_cloning": null}}, "env_settings": {"env_path": "./training-envs-executables/linux/Worm/Worm", "env_args": null, "base_port": 5005, "num_envs": 1, "num_areas": 1, "timeout_wait": 60, "seed": -1, "max_lifetime_restarts": 10, "restarts_rate_limit_n": 1, "restarts_rate_limit_period_s": 60}, "engine_settings": {"width": 84, "height": 84, "quality_level": 5, "time_scale": 20, "target_frame_rate": -1, "capture_frame_rate": 60, "no_graphics": true, "no_graphics_monitor": false}, "environment_parameters": null, "checkpoint_settings": {"run_id": "Worm Training", "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,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 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: true
20
+ hidden_units: 512
21
+ num_layers: 3
22
+ vis_encode_type: simple
23
+ memory: null
24
+ goal_conditioning_type: hyper
25
+ deterministic: false
26
+ reward_signals:
27
+ extrinsic:
28
+ gamma: 0.995
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: 1000000
42
+ time_horizon: 1000
43
+ summary_freq: 30000
44
+ threaded: false
45
+ self_play: null
46
+ behavioral_cloning: null
47
+ env_settings:
48
+ env_path: ./training-envs-executables/linux/Worm/Worm
49
+ env_args: null
50
+ base_port: 5005
51
+ num_envs: 1
52
+ num_areas: 1
53
+ timeout_wait: 60
54
+ seed: -1
55
+ max_lifetime_restarts: 10
56
+ restarts_rate_limit_n: 1
57
+ restarts_rate_limit_period_s: 60
58
+ engine_settings:
59
+ width: 84
60
+ height: 84
61
+ quality_level: 5
62
+ time_scale: 20
63
+ target_frame_rate: -1
64
+ capture_frame_rate: 60
65
+ no_graphics: true
66
+ no_graphics_monitor: false
67
+ environment_parameters: null
68
+ checkpoint_settings:
69
+ run_id: Worm Training
70
+ initialize_from: null
71
+ load_model: false
72
+ resume: false
73
+ force: true
74
+ train_model: false
75
+ inference: false
76
+ results_dir: results
77
+ torch_settings:
78
+ device: null
79
+ debug: false
run_logs/Player-0.log ADDED
@@ -0,0 +1,319 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Mono path[0] = '/content/ml-agents/training-envs-executables/linux/Worm/Worm_Data/Managed'
2
+ Mono config path = '/content/ml-agents/training-envs-executables/linux/Worm/Worm_Data/MonoBleedingEdge/etc'
3
+ Found 1 interfaces on host : 0) 172.28.0.12
4
+ Multi-casting "[IP] 172.28.0.12 [Port] 55264 [Flags] 2 [Guid] 3764076662 [EditorId] 588871222 [Version] 1048832 [Id] LinuxPlayer(13,172.28.0.12) [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/training-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:855:(parse_card) cannot find card '0'
19
+ ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
20
+ ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
21
+ ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
22
+ ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
23
+ ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
24
+ ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
25
+ ALSA lib pcm.c:2664:(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:855:(parse_card) cannot find card '0'
29
+ ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
30
+ ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
31
+ ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
32
+ ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
33
+ ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
34
+ ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
35
+ ALSA lib pcm.c:2664:(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.100 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: 0.868245 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
+ abort_threads: Failed aborting id: 0x7e2b3ffff640, mono_thread_manage will ignore it
76
+
77
+ PlayerConnection::CleanupMemory Statistics:
78
+ [ALLOC_TEMP_TLS] TLS Allocator
79
+ StackAllocators :
80
+ [ALLOC_TEMP_MAIN]
81
+ Peak usage frame count: [4.0 KB-8.0 KB]: 20194 frames, [2.0 MB-4.0 MB]: 1 frames
82
+ Initial Block Size 4.0 MB
83
+ Current Block Size 4.0 MB
84
+ Peak Allocated Bytes 2.0 MB
85
+ Overflow Count 0
86
+ [ALLOC_TEMP_Background Job.Worker 8]
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 10]
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 6]
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_AUDIO_FMOD mixer thread]
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_Background Job.Worker 1]
107
+ Initial Block Size 32.0 KB
108
+ Current Block Size 32.0 KB
109
+ Peak Allocated Bytes 0 B
110
+ Overflow Count 0
111
+ [ALLOC_TEMP_Background Job.Worker 11]
112
+ Initial Block Size 32.0 KB
113
+ Current Block Size 32.0 KB
114
+ Peak Allocated Bytes 0 B
115
+ Overflow Count 0
116
+ [ALLOC_TEMP_Background Job.Worker 3]
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_BatchDeleteObjects]
122
+ Initial Block Size 64.0 KB
123
+ Current Block Size 64.0 KB
124
+ Peak Allocated Bytes 0 B
125
+ Overflow Count 0
126
+ [ALLOC_TEMP_AUDIO_FMOD stream thread]
127
+ Initial Block Size 64.0 KB
128
+ Current Block Size 64.0 KB
129
+ Peak Allocated Bytes 0 B
130
+ Overflow Count 0
131
+ [ALLOC_TEMP_Background Job.Worker 2]
132
+ Initial Block Size 32.0 KB
133
+ Current Block Size 32.0 KB
134
+ Peak Allocated Bytes 0 B
135
+ Overflow Count 0
136
+ [ALLOC_TEMP_Background Job.Worker 7]
137
+ Initial Block Size 32.0 KB
138
+ Current Block Size 32.0 KB
139
+ Peak Allocated Bytes 0 B
140
+ Overflow Count 0
141
+ [ALLOC_TEMP_Background Job.Worker 15]
142
+ Initial Block Size 32.0 KB
143
+ Current Block Size 32.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.3 KB
150
+ Overflow Count 4
151
+ [ALLOC_TEMP_Profiler.Dispatcher]
152
+ Initial Block Size 64.0 KB
153
+ Current Block Size 64.0 KB
154
+ Peak Allocated Bytes 240 B
155
+ Overflow Count 0
156
+ [ALLOC_TEMP_Background Job.Worker 12]
157
+ Initial Block Size 32.0 KB
158
+ Current Block Size 32.0 KB
159
+ Peak Allocated Bytes 0 B
160
+ Overflow Count 0
161
+ [ALLOC_TEMP_AssetGarbageCollectorHelper]
162
+ Initial Block Size 64.0 KB
163
+ Current Block Size 64.0 KB
164
+ Peak Allocated Bytes 0 B
165
+ Overflow Count 0
166
+ [ALLOC_TEMP_Background Job.Worker 5]
167
+ Initial Block Size 32.0 KB
168
+ Current Block Size 32.0 KB
169
+ Peak Allocated Bytes 0 B
170
+ Overflow Count 0
171
+ [ALLOC_TEMP_Background Job.Worker 13]
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_Background Job.Worker 0]
177
+ Initial Block Size 32.0 KB
178
+ Current Block Size 32.0 KB
179
+ Peak Allocated Bytes 0 B
180
+ Overflow Count 0
181
+ [ALLOC_TEMP_Background Job.Worker 4]
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_Job.Worker 0]
187
+ Initial Block Size 256.0 KB
188
+ Current Block Size 256.0 KB
189
+ Peak Allocated Bytes 0.8 KB
190
+ Overflow Count 0
191
+ [ALLOC_TEMP_Background Job.Worker 9]
192
+ Initial Block Size 32.0 KB
193
+ Current Block Size 32.0 KB
194
+ Peak Allocated Bytes 0 B
195
+ Overflow Count 0
196
+ [ALLOC_TEMP_Background Job.Worker 14]
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_EnlightenWorker]
202
+ Initial Block Size 64.0 KB
203
+ Current Block Size 64.0 KB
204
+ Peak Allocated Bytes 0 B
205
+ Overflow Count 0
206
+ [ALLOC_TEMP_Loading.AsyncRead]
207
+ Initial Block Size 64.0 KB
208
+ Current Block Size 64.0 KB
209
+ Peak Allocated Bytes 128 B
210
+ Overflow Count 0
211
+ [ALLOC_MEMORYPROFILER]
212
+ Peak usage frame count: [64.0 KB-128.0 KB]: 20195 frames
213
+ Requested Block Size 1.0 MB
214
+ Peak Block count 1
215
+ Peak Allocated memory 103.1 KB
216
+ Peak Large allocation bytes 0 B
217
+ [ALLOC_DEFAULT] Dual Thread Allocator
218
+ Peak main deferred allocation count 52
219
+ [ALLOC_BUCKET]
220
+ Large Block size 4.0 MB
221
+ Used Block count 1
222
+ Peak Allocated bytes 0.8 MB
223
+ [ALLOC_DEFAULT_MAIN]
224
+ Peak usage frame count: [4.0 MB-8.0 MB]: 20195 frames
225
+ Requested Block Size 16.0 MB
226
+ Peak Block count 1
227
+ Peak Allocated memory 5.0 MB
228
+ Peak Large allocation bytes 0 B
229
+ [ALLOC_DEFAULT_THREAD]
230
+ Peak usage frame count: [16.0 MB-32.0 MB]: 20195 frames
231
+ Requested Block Size 16.0 MB
232
+ Peak Block count 1
233
+ Peak Allocated memory 17.9 MB
234
+ Peak Large allocation bytes 16.0 MB
235
+ [ALLOC_TEMP_JOB_1_FRAME]
236
+ Initial Block Size 2.0 MB
237
+ Used Block Count 1
238
+ Overflow Count (too large) 0
239
+ Overflow Count (full) 0
240
+ [ALLOC_TEMP_JOB_2_FRAMES]
241
+ Initial Block Size 2.0 MB
242
+ Used Block Count 1
243
+ Overflow Count (too large) 0
244
+ Overflow Count (full) 0
245
+ [ALLOC_TEMP_JOB_4_FRAMES (JobTemp)]
246
+ Initial Block Size 2.0 MB
247
+ Used Block Count 2
248
+ Overflow Count (too large) 0
249
+ Overflow Count (full) 0
250
+ [ALLOC_TEMP_JOB_ASYNC (Background)]
251
+ Initial Block Size 1.0 MB
252
+ Used Block Count 3
253
+ Overflow Count (too large) 0
254
+ Overflow Count (full) 0
255
+ [ALLOC_GFX] Dual Thread Allocator
256
+ Peak main deferred allocation count 0
257
+ [ALLOC_BUCKET]
258
+ Large Block size 4.0 MB
259
+ Used Block count 1
260
+ Peak Allocated bytes 0.8 MB
261
+ [ALLOC_GFX_MAIN]
262
+ Peak usage frame count: [32.0 KB-64.0 KB]: 20194 frames, [64.0 KB-128.0 KB]: 1 frames
263
+ Requested Block Size 16.0 MB
264
+ Peak Block count 1
265
+ Peak Allocated memory 67.0 KB
266
+ Peak Large allocation bytes 0 B
267
+ [ALLOC_GFX_THREAD]
268
+ Peak usage frame count: [128.0 KB-256.0 KB]: 20195 frames
269
+ Requested Block Size 16.0 MB
270
+ Peak Block count 1
271
+ Peak Allocated memory 151.2 KB
272
+ Peak Large allocation bytes 0 B
273
+ [ALLOC_CACHEOBJECTS] Dual Thread Allocator
274
+ Peak main deferred allocation count 0
275
+ [ALLOC_BUCKET]
276
+ Large Block size 4.0 MB
277
+ Used Block count 1
278
+ Peak Allocated bytes 0.8 MB
279
+ [ALLOC_CACHEOBJECTS_MAIN]
280
+ Peak usage frame count: [0.5 MB-1.0 MB]: 20195 frames
281
+ Requested Block Size 4.0 MB
282
+ Peak Block count 1
283
+ Peak Allocated memory 0.6 MB
284
+ Peak Large allocation bytes 0 B
285
+ [ALLOC_CACHEOBJECTS_THREAD]
286
+ Peak usage frame count: [256.0 KB-0.5 MB]: 20194 frames, [4.0 MB-8.0 MB]: 1 frames
287
+ Requested Block Size 4.0 MB
288
+ Peak Block count 2
289
+ Peak Allocated memory 4.2 MB
290
+ Peak Large allocation bytes 0 B
291
+ [ALLOC_TYPETREE] Dual Thread Allocator
292
+ Peak main deferred allocation count 0
293
+ [ALLOC_BUCKET]
294
+ Large Block size 4.0 MB
295
+ Used Block count 1
296
+ Peak Allocated bytes 0.8 MB
297
+ [ALLOC_TYPETREE_MAIN]
298
+ Peak usage frame count: [0-1.0 KB]: 20195 frames
299
+ Requested Block Size 2.0 MB
300
+ Peak Block count 1
301
+ Peak Allocated memory 1.0 KB
302
+ Peak Large allocation bytes 0 B
303
+ [ALLOC_TYPETREE_THREAD]
304
+ Peak usage frame count: [4.0 KB-8.0 KB]: 20194 frames, [8.0 KB-16.0 KB]: 1 frames
305
+ Requested Block Size 2.0 MB
306
+ Peak Block count 1
307
+ Peak Allocated memory 9.3 KB
308
+ Peak Large allocation bytes 0 B
309
+ [ALLOC_PROFILER]
310
+ Peak usage frame count: [16.0 KB-32.0 KB]: 20195 frames
311
+ Requested Block Size 16.0 MB
312
+ Peak Block count 1
313
+ Peak Allocated memory 29.2 KB
314
+ Peak Large allocation bytes 0 B
315
+ [ALLOC_PROFILER_BUCKET]
316
+ Large Block size 4.0 MB
317
+ Used Block count 1
318
+ Peak Allocated bytes 332 B
319
+ ##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate","time":1739583719108,"processId":4846,"allocatedMemory":1970109,"memoryLabels":[{"Default":9033},{"Permanent":1264},{"NewDelete":12801},{"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":3423},{"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,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "root",
3
+ "gauges": {
4
+ "Worm.Policy.Entropy.mean": {
5
+ "value": 1.3861826658248901,
6
+ "min": 1.3861826658248901,
7
+ "max": 1.418938398361206,
8
+ "count": 33
9
+ },
10
+ "Worm.Policy.Entropy.sum": {
11
+ "value": 41585.48046875,
12
+ "min": 41585.48046875,
13
+ "max": 42568.15234375,
14
+ "count": 33
15
+ },
16
+ "Worm.Environment.EpisodeLength.mean": {
17
+ "value": 999.0,
18
+ "min": 999.0,
19
+ "max": 999.0,
20
+ "count": 33
21
+ },
22
+ "Worm.Environment.EpisodeLength.sum": {
23
+ "value": 29970.0,
24
+ "min": 29970.0,
25
+ "max": 29970.0,
26
+ "count": 33
27
+ },
28
+ "Worm.Step.mean": {
29
+ "value": 989000.0,
30
+ "min": 29000.0,
31
+ "max": 989000.0,
32
+ "count": 33
33
+ },
34
+ "Worm.Step.sum": {
35
+ "value": 989000.0,
36
+ "min": 29000.0,
37
+ "max": 989000.0,
38
+ "count": 33
39
+ },
40
+ "Worm.Policy.ExtrinsicValueEstimate.mean": {
41
+ "value": 6.004525661468506,
42
+ "min": -0.051633987575769424,
43
+ "max": 6.004525661468506,
44
+ "count": 33
45
+ },
46
+ "Worm.Policy.ExtrinsicValueEstimate.sum": {
47
+ "value": 180.13577270507812,
48
+ "min": -1.4973856210708618,
49
+ "max": 180.13577270507812,
50
+ "count": 33
51
+ },
52
+ "Worm.Environment.CumulativeReward.mean": {
53
+ "value": 61.040428225199385,
54
+ "min": 0.1919361693656136,
55
+ "max": 61.930335680643715,
56
+ "count": 33
57
+ },
58
+ "Worm.Environment.CumulativeReward.sum": {
59
+ "value": 1831.2128467559814,
60
+ "min": 5.566148911602795,
61
+ "max": 1857.9100704193115,
62
+ "count": 33
63
+ },
64
+ "Worm.Policy.ExtrinsicReward.mean": {
65
+ "value": 61.040428225199385,
66
+ "min": 0.1919361693656136,
67
+ "max": 61.930335680643715,
68
+ "count": 33
69
+ },
70
+ "Worm.Policy.ExtrinsicReward.sum": {
71
+ "value": 1831.2128467559814,
72
+ "min": 5.566148911602795,
73
+ "max": 1857.9100704193115,
74
+ "count": 33
75
+ },
76
+ "Worm.IsTraining.mean": {
77
+ "value": 1.0,
78
+ "min": 1.0,
79
+ "max": 1.0,
80
+ "count": 33
81
+ },
82
+ "Worm.IsTraining.sum": {
83
+ "value": 1.0,
84
+ "min": 1.0,
85
+ "max": 1.0,
86
+ "count": 33
87
+ },
88
+ "Worm.Losses.PolicyLoss.mean": {
89
+ "value": 0.014891214704784076,
90
+ "min": 0.01339010396900232,
91
+ "max": 0.021539426104850247,
92
+ "count": 32
93
+ },
94
+ "Worm.Losses.PolicyLoss.sum": {
95
+ "value": 0.014891214704784076,
96
+ "min": 0.01339010396900232,
97
+ "max": 0.021539426104850247,
98
+ "count": 32
99
+ },
100
+ "Worm.Losses.ValueLoss.mean": {
101
+ "value": 0.6217004770324344,
102
+ "min": 0.0009417563407970149,
103
+ "max": 0.6217004770324344,
104
+ "count": 32
105
+ },
106
+ "Worm.Losses.ValueLoss.sum": {
107
+ "value": 0.6217004770324344,
108
+ "min": 0.0009417563407970149,
109
+ "max": 0.6217004770324344,
110
+ "count": 32
111
+ },
112
+ "Worm.Policy.LearningRate.mean": {
113
+ "value": 1.2000096000000011e-05,
114
+ "min": 1.2000096000000011e-05,
115
+ "max": 0.0002910000029999999,
116
+ "count": 32
117
+ },
118
+ "Worm.Policy.LearningRate.sum": {
119
+ "value": 1.2000096000000011e-05,
120
+ "min": 1.2000096000000011e-05,
121
+ "max": 0.0002910000029999999,
122
+ "count": 32
123
+ },
124
+ "Worm.Policy.Epsilon.mean": {
125
+ "value": 0.10400000000000001,
126
+ "min": 0.10400000000000001,
127
+ "max": 0.19699999999999998,
128
+ "count": 32
129
+ },
130
+ "Worm.Policy.Epsilon.sum": {
131
+ "value": 0.10400000000000001,
132
+ "min": 0.10400000000000001,
133
+ "max": 0.19699999999999998,
134
+ "count": 32
135
+ },
136
+ "Worm.Policy.Beta.mean": {
137
+ "value": 0.00020960000000000022,
138
+ "min": 0.00020960000000000022,
139
+ "max": 0.0048503,
140
+ "count": 32
141
+ },
142
+ "Worm.Policy.Beta.sum": {
143
+ "value": 0.00020960000000000022,
144
+ "min": 0.00020960000000000022,
145
+ "max": 0.0048503,
146
+ "count": 32
147
+ }
148
+ },
149
+ "metadata": {
150
+ "timer_format_version": "0.1.0",
151
+ "start_time_seconds": "1739582328",
152
+ "python_version": "3.10.12 (main, Jul 5 2023, 18:54:27) [GCC 11.2.0]",
153
+ "command_line_arguments": "/usr/local/bin/mlagents-learn ./config/ppo/Worm.yaml --env=./training-envs-executables/linux/Worm/Worm --run-id=Worm Training --no-graphics --force",
154
+ "mlagents_version": "1.2.0.dev0",
155
+ "mlagents_envs_version": "1.2.0.dev0",
156
+ "communication_protocol_version": "1.5.0",
157
+ "pytorch_version": "2.6.0+cu124",
158
+ "numpy_version": "1.23.5",
159
+ "end_time_seconds": "1739583719"
160
+ },
161
+ "total": 1390.625428935,
162
+ "count": 1,
163
+ "self": 0.5769163620000199,
164
+ "children": {
165
+ "run_training.setup": {
166
+ "total": 0.021503205000044545,
167
+ "count": 1,
168
+ "self": 0.021503205000044545
169
+ },
170
+ "TrainerController.start_learning": {
171
+ "total": 1390.0270093679999,
172
+ "count": 1,
173
+ "self": 2.0359425620704314,
174
+ "children": {
175
+ "TrainerController._reset_env": {
176
+ "total": 3.182218063000164,
177
+ "count": 1,
178
+ "self": 3.182218063000164
179
+ },
180
+ "TrainerController.advance": {
181
+ "total": 1384.6823440109295,
182
+ "count": 101000,
183
+ "self": 2.120266040037677,
184
+ "children": {
185
+ "env_step": {
186
+ "total": 1166.401741433958,
187
+ "count": 101000,
188
+ "self": 967.9786514139496,
189
+ "children": {
190
+ "SubprocessEnvManager._take_step": {
191
+ "total": 197.17970346301627,
192
+ "count": 101000,
193
+ "self": 7.428139034011792,
194
+ "children": {
195
+ "TorchPolicy.evaluate": {
196
+ "total": 189.75156442900447,
197
+ "count": 101000,
198
+ "self": 189.75156442900447
199
+ }
200
+ }
201
+ },
202
+ "workers": {
203
+ "total": 1.2433865569921636,
204
+ "count": 101000,
205
+ "self": 0.0,
206
+ "children": {
207
+ "worker_root": {
208
+ "total": 1386.0217035990797,
209
+ "count": 101000,
210
+ "is_parallel": true,
211
+ "self": 551.4499236080947,
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.0010331799999221403,
221
+ "count": 1,
222
+ "is_parallel": true,
223
+ "self": 0.00025955199998861644,
224
+ "children": {
225
+ "_process_rank_one_or_two_observation": {
226
+ "total": 0.0007736279999335238,
227
+ "count": 2,
228
+ "is_parallel": true,
229
+ "self": 0.0007736279999335238
230
+ }
231
+ }
232
+ },
233
+ "UnityEnvironment.step": {
234
+ "total": 0.031536455999912505,
235
+ "count": 1,
236
+ "is_parallel": true,
237
+ "self": 0.0002573480003320583,
238
+ "children": {
239
+ "UnityEnvironment._generate_step_input": {
240
+ "total": 0.0004152059998432378,
241
+ "count": 1,
242
+ "is_parallel": true,
243
+ "self": 0.0004152059998432378
244
+ },
245
+ "communicator.exchange": {
246
+ "total": 0.030326579999837122,
247
+ "count": 1,
248
+ "is_parallel": true,
249
+ "self": 0.030326579999837122
250
+ },
251
+ "steps_from_proto": {
252
+ "total": 0.0005373219999000867,
253
+ "count": 1,
254
+ "is_parallel": true,
255
+ "self": 0.00016747100016800687,
256
+ "children": {
257
+ "_process_rank_one_or_two_observation": {
258
+ "total": 0.0003698509997320798,
259
+ "count": 2,
260
+ "is_parallel": true,
261
+ "self": 0.0003698509997320798
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ },
269
+ "UnityEnvironment.step": {
270
+ "total": 834.5717799909851,
271
+ "count": 100999,
272
+ "is_parallel": true,
273
+ "self": 18.06819325792003,
274
+ "children": {
275
+ "UnityEnvironment._generate_step_input": {
276
+ "total": 30.929885190010054,
277
+ "count": 100999,
278
+ "is_parallel": true,
279
+ "self": 30.929885190010054
280
+ },
281
+ "communicator.exchange": {
282
+ "total": 742.2309833430102,
283
+ "count": 100999,
284
+ "is_parallel": true,
285
+ "self": 742.2309833430102
286
+ },
287
+ "steps_from_proto": {
288
+ "total": 43.34271820004483,
289
+ "count": 100999,
290
+ "is_parallel": true,
291
+ "self": 13.99210863813255,
292
+ "children": {
293
+ "_process_rank_one_or_two_observation": {
294
+ "total": 29.35060956191228,
295
+ "count": 201998,
296
+ "is_parallel": true,
297
+ "self": 29.35060956191228
298
+ }
299
+ }
300
+ }
301
+ }
302
+ }
303
+ }
304
+ }
305
+ }
306
+ }
307
+ }
308
+ },
309
+ "trainer_advance": {
310
+ "total": 216.16033653693376,
311
+ "count": 101000,
312
+ "self": 2.382445713875086,
313
+ "children": {
314
+ "process_trajectory": {
315
+ "total": 56.379384717058656,
316
+ "count": 101000,
317
+ "self": 56.02510363605893,
318
+ "children": {
319
+ "RLTrainer._checkpoint": {
320
+ "total": 0.3542810809997263,
321
+ "count": 2,
322
+ "self": 0.3542810809997263
323
+ }
324
+ }
325
+ },
326
+ "_update_policy": {
327
+ "total": 157.398506106,
328
+ "count": 33,
329
+ "self": 126.13356308099537,
330
+ "children": {
331
+ "TorchPPOOptimizer.update": {
332
+ "total": 31.26494302500464,
333
+ "count": 1386,
334
+ "self": 31.26494302500464
335
+ }
336
+ }
337
+ }
338
+ }
339
+ }
340
+ }
341
+ },
342
+ "trainer_threads": {
343
+ "total": 9.509999472356867e-07,
344
+ "count": 1,
345
+ "self": 9.509999472356867e-07
346
+ },
347
+ "TrainerController._save_models": {
348
+ "total": 0.12650378099988302,
349
+ "count": 1,
350
+ "self": 0.0017894199995680538,
351
+ "children": {
352
+ "RLTrainer._checkpoint": {
353
+ "total": 0.12471436100031497,
354
+ "count": 1,
355
+ "self": 0.12471436100031497
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+ }
362
+ }
run_logs/training_status.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Worm": {
3
+ "checkpoints": [
4
+ {
5
+ "steps": 499000,
6
+ "file_path": "results/Worm Training/Worm/Worm-499000.onnx",
7
+ "reward": 5.444664415560271,
8
+ "creation_time": 1739583014.3891568,
9
+ "auxillary_file_paths": [
10
+ "results/Worm Training/Worm/Worm-499000.pt"
11
+ ]
12
+ },
13
+ {
14
+ "steps": 999000,
15
+ "file_path": "results/Worm Training/Worm/Worm-999000.onnx",
16
+ "reward": 74.78468449910481,
17
+ "creation_time": 1739583706.4880865,
18
+ "auxillary_file_paths": [
19
+ "results/Worm Training/Worm/Worm-999000.pt"
20
+ ]
21
+ },
22
+ {
23
+ "steps": 1010000,
24
+ "file_path": "results/Worm Training/Worm/Worm-1010000.onnx",
25
+ "reward": 68.18643827438355,
26
+ "creation_time": 1739583718.5951498,
27
+ "auxillary_file_paths": [
28
+ "results/Worm Training/Worm/Worm-1010000.pt"
29
+ ]
30
+ }
31
+ ],
32
+ "final_checkpoint": {
33
+ "steps": 1010000,
34
+ "file_path": "results/Worm Training/Worm.onnx",
35
+ "reward": 68.18643827438355,
36
+ "creation_time": 1739583718.5951498,
37
+ "auxillary_file_paths": [
38
+ "results/Worm Training/Worm/Worm-1010000.pt"
39
+ ]
40
+ }
41
+ },
42
+ "metadata": {
43
+ "stats_format_version": "0.3.0",
44
+ "mlagents_version": "1.2.0.dev0",
45
+ "torch_version": "2.6.0+cu124"
46
+ }
47
+ }