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
fix(train): guard checkpoint dir ops with rank 0 to prevent DDP race condition
When running multi-GPU training with --overwrite, all ranks previously
attempted to delete and recreate the checkpoint directory simultaneously.
This caused FileNotFoundError when one rank deleted the directory while
others were still accessing it.
Now only rank 0 performs directory deletion and creation, with
dist.barrier() calls to synchronize all ranks.
Closes#868
0 commit comments