File size: 12,499 Bytes
6c60cb7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "1748425819",
        "python_version": "3.10.12 (main, Jul  5 2023, 18:54:27) [GCC 11.2.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",
        "mlagents_version": "1.2.0.dev0",
        "mlagents_envs_version": "1.2.0.dev0",
        "communication_protocol_version": "1.5.0",
        "pytorch_version": "2.7.0+cu126",
        "numpy_version": "1.23.5",
        "end_time_seconds": "1748425840"
    },
    "total": 20.67848315599997,
    "count": 1,
    "self": 0.6349740929998688,
    "children": {
        "run_training.setup": {
            "total": 0.02979086000004827,
            "count": 1,
            "self": 0.02979086000004827
        },
        "TrainerController.start_learning": {
            "total": 20.013718203000053,
            "count": 1,
            "self": 0.011644613998896602,
            "children": {
                "TrainerController._reset_env": {
                    "total": 2.570209601999977,
                    "count": 1,
                    "self": 2.570209601999977
                },
                "TrainerController.advance": {
                    "total": 17.298823669000967,
                    "count": 640,
                    "self": 0.014023197999222248,
                    "children": {
                        "env_step": {
                            "total": 11.459011660002261,
                            "count": 640,
                            "self": 9.829210668998712,
                            "children": {
                                "SubprocessEnvManager._take_step": {
                                    "total": 1.6223472990002392,
                                    "count": 640,
                                    "self": 0.04949307399579084,
                                    "children": {
                                        "TorchPolicy.evaluate": {
                                            "total": 1.5728542250044484,
                                            "count": 640,
                                            "self": 1.5728542250044484
                                        }
                                    }
                                },
                                "workers": {
                                    "total": 0.007453692003309698,
                                    "count": 640,
                                    "self": 0.0,
                                    "children": {
                                        "worker_root": {
                                            "total": 19.682917979999388,
                                            "count": 640,
                                            "is_parallel": true,
                                            "self": 10.961312122998493,
                                            "children": {
                                                "run_training.setup": {
                                                    "total": 0.0,
                                                    "count": 0,
                                                    "is_parallel": true,
                                                    "self": 0.0,
                                                    "children": {
                                                        "steps_from_proto": {
                                                            "total": 0.0020141850000072736,
                                                            "count": 1,
                                                            "is_parallel": true,
                                                            "self": 0.000651944999845,
                                                            "children": {
                                                                "_process_rank_one_or_two_observation": {
                                                                    "total": 0.0013622400001622736,
                                                                    "count": 8,
                                                                    "is_parallel": true,
                                                                    "self": 0.0013622400001622736
                                                                }
                                                            }
                                                        },
                                                        "UnityEnvironment.step": {
                                                            "total": 0.04980499300017982,
                                                            "count": 1,
                                                            "is_parallel": true,
                                                            "self": 0.0006355850002819352,
                                                            "children": {
                                                                "UnityEnvironment._generate_step_input": {
                                                                    "total": 0.00045330599982662534,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.00045330599982662534
                                                                },
                                                                "communicator.exchange": {
                                                                    "total": 0.046956230999967374,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.046956230999967374
                                                                },
                                                                "steps_from_proto": {
                                                                    "total": 0.0017598710001038853,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.00033400000006622577,
                                                                    "children": {
                                                                        "_process_rank_one_or_two_observation": {
                                                                            "total": 0.0014258710000376595,
                                                                            "count": 8,
                                                                            "is_parallel": true,
                                                                            "self": 0.0014258710000376595
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                "UnityEnvironment.step": {
                                                    "total": 8.721605857000895,
                                                    "count": 639,
                                                    "is_parallel": true,
                                                    "self": 0.32677328300565023,
                                                    "children": {
                                                        "UnityEnvironment._generate_step_input": {
                                                            "total": 0.26035536899985345,
                                                            "count": 639,
                                                            "is_parallel": true,
                                                            "self": 0.26035536899985345
                                                        },
                                                        "communicator.exchange": {
                                                            "total": 7.116271458997971,
                                                            "count": 639,
                                                            "is_parallel": true,
                                                            "self": 7.116271458997971
                                                        },
                                                        "steps_from_proto": {
                                                            "total": 1.0182057459974203,
                                                            "count": 639,
                                                            "is_parallel": true,
                                                            "self": 0.19163062599159275,
                                                            "children": {
                                                                "_process_rank_one_or_two_observation": {
                                                                    "total": 0.8265751200058276,
                                                                    "count": 5112,
                                                                    "is_parallel": true,
                                                                    "self": 0.8265751200058276
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        },
                        "trainer_advance": {
                            "total": 5.825788810999484,
                            "count": 640,
                            "self": 0.014352023000583358,
                            "children": {
                                "process_trajectory": {
                                    "total": 1.379590373999008,
                                    "count": 640,
                                    "self": 1.379590373999008
                                },
                                "_update_policy": {
                                    "total": 4.431846413999892,
                                    "count": 2,
                                    "self": 2.3088724259955598,
                                    "children": {
                                        "TorchPPOOptimizer.update": {
                                            "total": 2.1229739880043326,
                                            "count": 192,
                                            "self": 2.1229739880043326
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "trainer_threads": {
                    "total": 9.120001323026372e-07,
                    "count": 1,
                    "self": 9.120001323026372e-07
                },
                "TrainerController._save_models": {
                    "total": 0.1330394060000799,
                    "count": 1,
                    "self": 0.0016654159999234253,
                    "children": {
                        "RLTrainer._checkpoint": {
                            "total": 0.13137399000015648,
                            "count": 1,
                            "self": 0.13137399000015648
                        }
                    }
                }
            }
        }
    }
}