-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support on-demand debug for multigpu training
For multigpu training, all the training workers are spawned subprocesses. But pdb session cannot start in a subprocess because the lack of stdin. So we change to lauch of ddp processes so that the main process will be the rank-0 worker so that we can start a pdb session by using `kill -10`
- Loading branch information
1 parent
f3978fa
commit 27cb722
Showing
2 changed files
with
27 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters