mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-23 10:30:03 +00:00
MemStatsCollectorStatic (#1765)
This commit is contained in:
@@ -267,7 +267,7 @@ class ZeroDDP(ColoDDP):
|
||||
def forward(self, *args, **kwargs):
|
||||
args, kwargs = _cast_float(args, torch.half), _cast_float(kwargs, torch.half)
|
||||
self.module.zero_grad(set_to_none=True)
|
||||
self.gemini_manager.pre_iter()
|
||||
self.gemini_manager.pre_iter(*args)
|
||||
with ParamOpHookManager.use_hooks(self.param_op_hook):
|
||||
outputs = self.module(*args, **kwargs)
|
||||
if self.force_outputs_fp32:
|
||||
|
Reference in New Issue
Block a user