[Gemini] update API of the chunkmemstatscollector. (#2129)

This commit is contained in:
Jiarui Fang
2022-12-14 00:47:06 +08:00
committed by GitHub
parent 2938edf446
commit c89c66a858
8 changed files with 32 additions and 163 deletions

View File

@@ -32,6 +32,8 @@ class GeminiZeROHook(ColoParamOpHook):
self._gemini_manager.adjust_layout(chunks)
for chunk in chunks:
self._chunk_manager.access_chunk(chunk)
# record cuda model data of the current OP
self._gemini_manager.record_model_data_volume()
def post_op(self, params):