Skip to content
Open
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
5 changes: 3 additions & 2 deletions megatron/core/dist_checkpointing/strategies/async_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ def __del__(self):
self.close()

@staticmethod
@_disable_gc()
def async_loop(
rank: int,
queue: mp.JoinableQueue,
Expand Down Expand Up @@ -486,7 +485,9 @@ def async_loop(
logger.debug(f"{rank} has completed saving {item.call_idx}")
comp_q.put(item.call_idx)
queue.task_done()

del async_fn_args
del item
gc.collect()
logger.info(f"PersistentAsyncCaller: persistent ckpt worker for {rank} has terminated")


Expand Down
Loading