File size: 12,515 Bytes
9e7c643
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "1720628886",
        "python_version": "3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]",
        "command_line_arguments": "/usr/local/bin/mlagents-learn ./config/ppo/PyramidsRND.yaml --env=./training-envs-executables/linux/Pyramids/Pyramids --run-id=Pyramids Training --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.3.0+cu121",
        "numpy_version": "1.23.5",
        "end_time_seconds": "1720628917"
    },
    "total": 30.83732486300005,
    "count": 1,
    "self": 0.481497247000334,
    "children": {
        "run_training.setup": {
            "total": 0.06144918799986954,
            "count": 1,
            "self": 0.06144918799986954
        },
        "TrainerController.start_learning": {
            "total": 30.294378427999845,
            "count": 1,
            "self": 0.021056201998135293,
            "children": {
                "TrainerController._reset_env": {
                    "total": 2.3042165010001554,
                    "count": 1,
                    "self": 2.3042165010001554
                },
                "TrainerController.advance": {
                    "total": 27.821450716001664,
                    "count": 1000,
                    "self": 0.022641306005425577,
                    "children": {
                        "env_step": {
                            "total": 18.25237623799876,
                            "count": 1000,
                            "self": 15.697925195999687,
                            "children": {
                                "SubprocessEnvManager._take_step": {
                                    "total": 2.542179344997521,
                                    "count": 1000,
                                    "self": 0.07919985299918153,
                                    "children": {
                                        "TorchPolicy.evaluate": {
                                            "total": 2.4629794919983397,
                                            "count": 1000,
                                            "self": 2.4629794919983397
                                        }
                                    }
                                },
                                "workers": {
                                    "total": 0.012271697001551729,
                                    "count": 1000,
                                    "self": 0.0,
                                    "children": {
                                        "worker_root": {
                                            "total": 29.959773533994394,
                                            "count": 1000,
                                            "is_parallel": true,
                                            "self": 16.426482147992374,
                                            "children": {
                                                "run_training.setup": {
                                                    "total": 0.0,
                                                    "count": 0,
                                                    "is_parallel": true,
                                                    "self": 0.0,
                                                    "children": {
                                                        "steps_from_proto": {
                                                            "total": 0.002167937999956848,
                                                            "count": 1,
                                                            "is_parallel": true,
                                                            "self": 0.0006855540000287874,
                                                            "children": {
                                                                "_process_rank_one_or_two_observation": {
                                                                    "total": 0.0014823839999280608,
                                                                    "count": 8,
                                                                    "is_parallel": true,
                                                                    "self": 0.0014823839999280608
                                                                }
                                                            }
                                                        },
                                                        "UnityEnvironment.step": {
                                                            "total": 0.049560618999976214,
                                                            "count": 1,
                                                            "is_parallel": true,
                                                            "self": 0.0006320510001387447,
                                                            "children": {
                                                                "UnityEnvironment._generate_step_input": {
                                                                    "total": 0.0005313229999046598,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.0005313229999046598
                                                                },
                                                                "communicator.exchange": {
                                                                    "total": 0.046614775000080044,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.046614775000080044
                                                                },
                                                                "steps_from_proto": {
                                                                    "total": 0.0017824699998527649,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.0003746520001186582,
                                                                    "children": {
                                                                        "_process_rank_one_or_two_observation": {
                                                                            "total": 0.0014078179997341067,
                                                                            "count": 8,
                                                                            "is_parallel": true,
                                                                            "self": 0.0014078179997341067
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                "UnityEnvironment.step": {
                                                    "total": 13.53329138600202,
                                                    "count": 999,
                                                    "is_parallel": true,
                                                    "self": 0.5476078320023134,
                                                    "children": {
                                                        "UnityEnvironment._generate_step_input": {
                                                            "total": 0.4143260519992964,
                                                            "count": 999,
                                                            "is_parallel": true,
                                                            "self": 0.4143260519992964
                                                        },
                                                        "communicator.exchange": {
                                                            "total": 10.904423739999174,
                                                            "count": 999,
                                                            "is_parallel": true,
                                                            "self": 10.904423739999174
                                                        },
                                                        "steps_from_proto": {
                                                            "total": 1.6669337620012357,
                                                            "count": 999,
                                                            "is_parallel": true,
                                                            "self": 0.34168660800924044,
                                                            "children": {
                                                                "_process_rank_one_or_two_observation": {
                                                                    "total": 1.3252471539919952,
                                                                    "count": 7992,
                                                                    "is_parallel": true,
                                                                    "self": 1.3252471539919952
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        },
                        "trainer_advance": {
                            "total": 9.546433171997478,
                            "count": 1000,
                            "self": 0.02555858399500721,
                            "children": {
                                "process_trajectory": {
                                    "total": 1.6351260830026604,
                                    "count": 1000,
                                    "self": 1.6351260830026604
                                },
                                "_update_policy": {
                                    "total": 7.88574850499981,
                                    "count": 3,
                                    "self": 4.331400503001532,
                                    "children": {
                                        "TorchPPOOptimizer.update": {
                                            "total": 3.554348001998278,
                                            "count": 288,
                                            "self": 3.554348001998278
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "trainer_threads": {
                    "total": 1.3229998785391217e-06,
                    "count": 1,
                    "self": 1.3229998785391217e-06
                },
                "TrainerController._save_models": {
                    "total": 0.14765368600001239,
                    "count": 1,
                    "self": 0.0029234430000997236,
                    "children": {
                        "RLTrainer._checkpoint": {
                            "total": 0.14473024299991266,
                            "count": 1,
                            "self": 0.14473024299991266
                        }
                    }
                }
            }
        }
    }
}