Skip to content

Commit a30d4cc

Browse files
authored
[Reland] Make checkpoint purge thread to be a daemon thread (#978)
Reland #972 due to ghstack issues.
1 parent 12cb82b commit a30d4cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchtitan/components/checkpoint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def load_state_dict(state_dict):
280280
)
281281
self.purge_queue = queue.Queue()
282282
self.purge_thread = threading.Thread(
283-
target=purge_thread, args=(self.purge_queue,)
283+
target=purge_thread, args=(self.purge_queue,), daemon=True
284284
)
285285
self.purge_thread.start()
286286
else:

0 commit comments

Comments
 (0)