mirror of
https://github.com/deepspeedai/DeepSpeed.git
synced 2025-10-20 15:33:51 +08:00
Update engine.py (#1596)
wall_clock_breakdown disable failed in moe layer due to incorrectly used a function as property
This commit is contained in:
@ -1014,11 +1014,11 @@ class DeepSpeedEngine(Module):
|
||||
for _, module in self.module.named_modules():
|
||||
if isinstance(module, TopKGate):
|
||||
self.gate_modules.append(module)
|
||||
if self.wall_clock_breakdown:
|
||||
if self.wall_clock_breakdown():
|
||||
module.wall_clock_breakdown = True
|
||||
if isinstance(module, MOELayer):
|
||||
self.moe_layers.append(module)
|
||||
if self.wall_clock_breakdown:
|
||||
if self.wall_clock_breakdown():
|
||||
module.wall_clock_breakdown = True
|
||||
|
||||
if not self.pipeline_parallelism:
|
||||
|
Reference in New Issue
Block a user