mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2026-01-29 21:49:54 +00:00
[Gemini] update the non model data record method in runtime memory tracer (#2128)
This commit is contained in:
@@ -67,7 +67,7 @@ class ZeroHook(BaseOpHook):
|
||||
|
||||
# record model data statistics
|
||||
if self._memstarts_collector:
|
||||
self._memstarts_collector.sample_model_data()
|
||||
self._memstarts_collector.record_model_data_volume()
|
||||
|
||||
def pre_fwd_exec(self, module: torch.nn.Module, *args):
|
||||
self.adjust_module_data(module)
|
||||
|
||||
Reference in New Issue
Block a user