Commit 4544b7d
authored
Improve flops profiler functionality (deepspeedai#1065)
* use the original function's name as the key to old_functions dict
* update profile output format
* print at global rank 0
* add flops calculation in bwd pass using time from ds timers
* improve aggregated profiling out to show all depth
* print samples/second
* update readme and examples
* update docs
* fix typo and reorder printing
* fix format1 parent 1f82ab7 commit 4544b7d
11 files changed
Lines changed: 838 additions & 745 deletions
File tree
- deepspeed
- profiling
- flops_profiler
- runtime
- activation_checkpointing
- utils
- docs
- _pages
- _tutorials
Submodule DeepSpeedExamples updated from 1273725 to bdf8e59
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
650 | 649 | | |
| 650 | + | |
| 651 | + | |
651 | 652 | | |
652 | 653 | | |
653 | 654 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
163 | 170 | | |
164 | 171 | | |
165 | 172 | | |
| |||
287 | 294 | | |
288 | 295 | | |
289 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
290 | 300 | | |
291 | 301 | | |
292 | 302 | | |
| |||
924 | 934 | | |
925 | 935 | | |
926 | 936 | | |
927 | | - | |
928 | 937 | | |
929 | 938 | | |
930 | 939 | | |
| |||
943 | 952 | | |
944 | 953 | | |
945 | 954 | | |
| 955 | + | |
946 | 956 | | |
947 | 957 | | |
948 | 958 | | |
| |||
961 | 971 | | |
962 | 972 | | |
963 | 973 | | |
| 974 | + | |
964 | 975 | | |
965 | 976 | | |
966 | 977 | | |
967 | 978 | | |
968 | | - | |
| 979 | + | |
| 980 | + | |
969 | 981 | | |
970 | 982 | | |
971 | 983 | | |
| |||
1177 | 1189 | | |
1178 | 1190 | | |
1179 | 1191 | | |
1180 | | - | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
1181 | 1195 | | |
1182 | 1196 | | |
1183 | 1197 | | |
| |||
1212 | 1226 | | |
1213 | 1227 | | |
1214 | 1228 | | |
1215 | | - | |
| 1229 | + | |
| 1230 | + | |
1216 | 1231 | | |
1217 | 1232 | | |
1218 | 1233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
0 commit comments