Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deepspeed/profiling/flops_profiler/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def print_model_profile(self,
print('{:<60} {:<8}'.format(
'params of model = params per GPU * mp_size: ',
params_to_string(total_params *
(self.ds_engine.mp_world_size) if self.ds_engine else 1)))
((self.ds_engine.mp_world_size) if self.ds_engine else 1))))

print('{:<60} {:<8}'.format('fwd MACs per GPU: ', macs_to_string(total_macs)))

Expand All @@ -296,7 +296,7 @@ def print_model_profile(self,
print('{:<60} {:<8}'.format(
'fwd flops of model = fwd flops per GPU * mp_size: ',
num_to_string(total_flops *
(self.ds_engine.mp_world_size) if self.ds_engine else 1)))
((self.ds_engine.mp_world_size) if self.ds_engine else 1))))

fwd_latency = self.get_total_duration()
if self.ds_engine and self.ds_engine.wall_clock_breakdown():
Expand Down