Allow DDP to wrap multi-GPU modules#19271
Conversation
17f4652 to
b891c96
Compare
b891c96 to
68d676c
Compare
68d676c to
19acac3
Compare
19acac3 to
b2c2c32
Compare
b2c2c32 to
29baf9e
Compare
29baf9e to
9670ad8
Compare
9670ad8 to
0da1e6f
Compare
pietern
left a comment
There was a problem hiding this comment.
Some minor points. Looking good overall. Glad that we'll be able to support multi device modules here!
There was a problem hiding this comment.
No need for deepcopy here?
There was a problem hiding this comment.
Don't we need to make sure that model and ddp_model operate on independent params so that we can compare?
There was a problem hiding this comment.
Never mind, it's needed because of the numerical equivalence testing.
There was a problem hiding this comment.
These two can be factored into another helper that calls _test_gloo_backend. At the top level it's good to have them be separate tests so that we see the ones that get skipped.
There was a problem hiding this comment.
These two can be factored into another helper that calls _test_nccl_backend.
There was a problem hiding this comment.
Extra whitespace -- is this intentional?
There was a problem hiding this comment.
no, not intentional. I will edit, thanks!
0da1e6f to
c71acdc
Compare
c71acdc to
f326925
Compare
f326925 to
c7b2c4d
Compare
Summary: Pull Request resolved: pytorch#19271 allow DDP to take multi-gpu models Reviewed By: pietern Differential Revision: D14822375 fbshipit-source-id: 8c8bcd4526643be5fa44134620d58fcf2c197238
c7b2c4d to
ea8bdc9
Compare
|
This pull request has been merged in 6732358. |
Summary: Pull Request resolved: pytorch#19271 allow DDP to take multi-gpu models Reviewed By: pietern Differential Revision: D14822375 fbshipit-source-id: 1eebfaa33371766d3129f0ac6f63a573332b2f1c
Summary: Pull Request resolved: pytorch#19271 allow DDP to take multi-gpu models Reviewed By: pietern Differential Revision: D14822375 fbshipit-source-id: 1eebfaa33371766d3129f0ac6f63a573332b2f1c
Summary: allow DDP to take multi-gpu models
Differential Revision: D14822375