You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only calls destroy_process_group if the trainer exist successfully (#1342)
If we perform the destroy_process_group when some trainers have
exceptions while others are doing collectives, the cleanup itself will
cause deadlock.
stacktrace:
```
Thread 0x7F81445A8440 (active): "MainThread"
destroy_process_group (torch/distributed/distributed_c10d.py:2184)
<module> (torchtitan/train.py:554)
_run_code (runpy.py:86)
_run_module_as_main (runpy.py:196)
Thread 0x7F7E83CFF640 (active): "Thread-1 (_read_thread)"
_recv_msg (torch/_inductor/compile_worker/subproc_pool.py:61)
_read_thread (torch/_inductor/compile_worker/subproc_pool.py:195)
run (threading.py:953)
_bootstrap_inner (threading.py:1016)
_bootstrap (threading.py:973)
Thread 0x7F7D9CFF9640 (idle): "Thread-2"
wait (threading.py:324)
wait (threading.py:607)
run (tqdm/_monitor.py:60)
_bootstrap_inner (threading.py:1016)
_bootstrap (threading.py:973)
```
0 commit comments