File size: 12,462 Bytes
1b34243
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
{
    "name": "root",
    "metadata": {
        "timer_format_version": "0.1.0",
        "start_time_seconds": "1727624828",
        "python_version": "3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0]",
        "command_line_arguments": "/usr/local/bin/mlagents-learn ./ml-agents/config/ppo/SnowballTarget.yaml --env=./training-envs-executables/linux/SnowballTarget/SnowballTarget --run-id=SnowballTarget1 --no-graphics --force",
        "mlagents_version": "1.1.0.dev0",
        "mlagents_envs_version": "1.1.0.dev0",
        "communication_protocol_version": "1.5.0",
        "pytorch_version": "2.4.1+cu121",
        "numpy_version": "1.23.5",
        "end_time_seconds": "1727625978"
    },
    "total": 1149.365838143,
    "count": 1,
    "self": 0.10019919400019717,
    "children": {
        "run_training.setup": {
            "total": 0.053176514000028874,
            "count": 1,
            "self": 0.053176514000028874
        },
        "TrainerController.start_learning": {
            "total": 1149.212462435,
            "count": 1,
            "self": 0.0037463870003193733,
            "children": {
                "TrainerController._reset_env": {
                    "total": 1.5748639409999896,
                    "count": 1,
                    "self": 1.5748639409999896
                },
                "TrainerController.advance": {
                    "total": 1147.3559936589993,
                    "count": 128,
                    "self": 0.0016398289990320336,
                    "children": {
                        "env_step": {
                            "total": 1147.3543538300003,
                            "count": 128,
                            "self": 1146.4496076689998,
                            "children": {
                                "SubprocessEnvManager._take_step": {
                                    "total": 0.9030510690007532,
                                    "count": 128,
                                    "self": 0.009084852001024046,
                                    "children": {
                                        "TorchPolicy.evaluate": {
                                            "total": 0.8939662169997291,
                                            "count": 128,
                                            "self": 0.8939662169997291
                                        }
                                    }
                                },
                                "workers": {
                                    "total": 0.0016950919997498204,
                                    "count": 128,
                                    "self": 0.0,
                                    "children": {
                                        "worker_root": {
                                            "total": 4.2712480149998555,
                                            "count": 128,
                                            "is_parallel": true,
                                            "self": 2.788522831999785,
                                            "children": {
                                                "run_training.setup": {
                                                    "total": 0.0,
                                                    "count": 0,
                                                    "is_parallel": true,
                                                    "self": 0.0,
                                                    "children": {
                                                        "steps_from_proto": {
                                                            "total": 0.0027701840000418088,
                                                            "count": 1,
                                                            "is_parallel": true,
                                                            "self": 0.0008012210003016662,
                                                            "children": {
                                                                "_process_rank_one_or_two_observation": {
                                                                    "total": 0.0019689629997401425,
                                                                    "count": 10,
                                                                    "is_parallel": true,
                                                                    "self": 0.0019689629997401425
                                                                }
                                                            }
                                                        },
                                                        "UnityEnvironment.step": {
                                                            "total": 0.041094481999948584,
                                                            "count": 1,
                                                            "is_parallel": true,
                                                            "self": 0.0006983009999430578,
                                                            "children": {
                                                                "UnityEnvironment._generate_step_input": {
                                                                    "total": 0.00046957899996868946,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.00046957899996868946
                                                                },
                                                                "communicator.exchange": {
                                                                    "total": 0.03784117200007131,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.03784117200007131
                                                                },
                                                                "steps_from_proto": {
                                                                    "total": 0.002085429999965527,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.0004181500002005123,
                                                                    "children": {
                                                                        "_process_rank_one_or_two_observation": {
                                                                            "total": 0.0016672799997650145,
                                                                            "count": 10,
                                                                            "is_parallel": true,
                                                                            "self": 0.0016672799997650145
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                "UnityEnvironment.step": {
                                                    "total": 1.4827251830000705,
                                                    "count": 127,
                                                    "is_parallel": true,
                                                    "self": 0.07794181100041442,
                                                    "children": {
                                                        "UnityEnvironment._generate_step_input": {
                                                            "total": 0.04008496199935507,
                                                            "count": 127,
                                                            "is_parallel": true,
                                                            "self": 0.04008496199935507
                                                        },
                                                        "communicator.exchange": {
                                                            "total": 1.130660368000008,
                                                            "count": 127,
                                                            "is_parallel": true,
                                                            "self": 1.130660368000008
                                                        },
                                                        "steps_from_proto": {
                                                            "total": 0.234038042000293,
                                                            "count": 127,
                                                            "is_parallel": true,
                                                            "self": 0.042621525000413385,
                                                            "children": {
                                                                "_process_rank_one_or_two_observation": {
                                                                    "total": 0.1914165169998796,
                                                                    "count": 1270,
                                                                    "is_parallel": true,
                                                                    "self": 0.1914165169998796
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "trainer_threads": {
                    "total": 3.0172000151651446e-05,
                    "count": 1,
                    "self": 3.0172000151651446e-05,
                    "children": {
                        "thread_root": {
                            "total": 0.0,
                            "count": 0,
                            "is_parallel": true,
                            "self": 0.0,
                            "children": {
                                "trainer_advance": {
                                    "total": 1.551044575001697,
                                    "count": 6148,
                                    "is_parallel": true,
                                    "self": 0.09309232799455458,
                                    "children": {
                                        "process_trajectory": {
                                            "total": 1.4579522470071424,
                                            "count": 6148,
                                            "is_parallel": true,
                                            "self": 1.4579522470071424
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "TrainerController._save_models": {
                    "total": 0.27782827600003657,
                    "count": 1,
                    "self": 0.0008869550001691096,
                    "children": {
                        "RLTrainer._checkpoint": {
                            "total": 0.27694132099986746,
                            "count": 1,
                            "self": 0.27694132099986746
                        }
                    }
                }
            }
        }
    }
}