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
4 changes: 0 additions & 4 deletions torchtitan/components/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ def load_state_dict(state_dict):
else:
self.purge_thread = None

self.mp = None
self.staging_future = None
self.save_future = None
if async_mode == AsyncMode.DISABLED:
Expand All @@ -315,9 +314,6 @@ def __del__(self):

def close(self):
if hasattr(self, "enable_checkpoint") and self.enable_checkpoint:
if hasattr(self, "mp") and self.mp and self.mp.is_alive():
self.mp_queue_send.put(Terminate())
self.mp.join()
if (
hasattr(self, "purge_thread")
and self.purge_thread
Expand Down
Loading