Pull in fairscale.nn.Pipe into PyTorch. #44090
Conversation
This is an initial commit pulling in the torchgpipe fork at https://github.com/facebookresearch/fairscale. The purpose of this commit is to just pull in the code and ensure all tests and builds work fine. We will slowly modify this to match our intended API mentioned in https://fb.quip.com/txurAV3zIFox#RPZACAfAKMq. Follow up PRs would address further changes needed on top of the initial commit.. We're pulling the code into the `torch.distributed._pipeline.sync` package. The package is private on purpose since there is a lot of work (ex: docs, API changes etc.) that needs to go in before we can actually officially support this. Differential Revision: [D23493316](https://our.internmc.facebook.com/intern/diff/D23493316/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D23493316/)! [ghstack-poisoned]
|
This is an initial commit pulling in the torchgpipe fork at https://github.com/facebookresearch/fairscale. The purpose of this commit is to just pull in the code and ensure all tests and builds work fine. We will slowly modify this to match our intended API mentioned in https://fb.quip.com/txurAV3zIFox#RPZACAfAKMq. Follow up PRs would address further changes needed on top of the initial commit.. We're pulling the code into the `torch.distributed._pipeline.sync` package. The package is private on purpose since there is a lot of work (ex: docs, API changes etc.) that needs to go in before we can actually officially support this. Differential Revision: [D23493316](https://our.internmc.facebook.com/intern/diff/D23493316/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D23493316/)! [ghstack-poisoned]
Pull Request resolved: #44090 This is an initial commit pulling in the torchgpipe fork at https://github.com/facebookresearch/fairscale. The purpose of this commit is to just pull in the code and ensure all tests and builds work fine. We will slowly modify this to match our intended API mentioned in https://fb.quip.com/txurAV3zIFox#RPZACAfAKMq. Follow up PRs would address further changes needed on top of the initial commit.. We're pulling the code into the `torch.distributed._pipeline.sync` package. The package is private on purpose since there is a lot of work (ex: docs, API changes etc.) that needs to go in before we can actually officially support this. ghstack-source-id: 111317338 Differential Revision: [D23493316](https://our.internmc.facebook.com/intern/diff/D23493316/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D23493316/)!
lgtm
This is an initial commit pulling in the torchgpipe fork at https://github.com/facebookresearch/fairscale. The purpose of this commit is to just pull in the code and ensure all tests and builds work fine. We will slowly modify this to match our intended API mentioned in #44827. Follow up PRs would address further changes needed on top of the initial commit.. We're pulling the code into the `torch.distributed._pipeline.sync` package. The package is private on purpose since there is a lot of work (ex: docs, API changes etc.) that needs to go in before we can actually officially support this. Differential Revision: [D23493316](https://our.internmc.facebook.com/intern/diff/D23493316/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D23493316/)! [ghstack-poisoned]
Pull Request resolved: #44090 This is an initial commit pulling in the torchgpipe fork at https://github.com/facebookresearch/fairscale. The purpose of this commit is to just pull in the code and ensure all tests and builds work fine. We will slowly modify this to match our intended API mentioned in https://fb.quip.com/txurAV3zIFox#RPZACAfAKMq. Follow up PRs would address further changes needed on top of the initial commit.. We're pulling the code into the `torch.distributed._pipeline.sync` package. The package is private on purpose since there is a lot of work (ex: docs, API changes etc.) that needs to go in before we can actually officially support this. ghstack-source-id: 113726320 Differential Revision: [D23493316](https://our.internmc.facebook.com/intern/diff/D23493316/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D23493316/)!
CI issue for Mac/Windows looks legit:
|
This is an initial commit pulling in the torchgpipe fork at https://github.com/facebookresearch/fairscale. The purpose of this commit is to just pull in the code and ensure all tests and builds work fine. We will slowly modify this to match our intended API mentioned in #44827. Follow up PRs would address further changes needed on top of the initial commit.. We're pulling the code into the `torch.distributed._pipeline.sync` package. The package is private on purpose since there is a lot of work (ex: docs, API changes etc.) that needs to go in before we can actually officially support this. Differential Revision: [D23493316](https://our.internmc.facebook.com/intern/diff/D23493316/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D23493316/)! [ghstack-poisoned]
Pull Request resolved: #44090 This is an initial commit pulling in the torchgpipe fork at https://github.com/facebookresearch/fairscale. The purpose of this commit is to just pull in the code and ensure all tests and builds work fine. We will slowly modify this to match our intended API mentioned in https://fb.quip.com/txurAV3zIFox#RPZACAfAKMq. Follow up PRs would address further changes needed on top of the initial commit.. We're pulling the code into the `torch.distributed._pipeline.sync` package. The package is private on purpose since there is a lot of work (ex: docs, API changes etc.) that needs to go in before we can actually officially support this. ghstack-source-id: 114511626 Differential Revision: [D23493316](https://our.internmc.facebook.com/intern/diff/D23493316/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D23493316/)!
This is an initial commit pulling in the torchgpipe fork at https://github.com/facebookresearch/fairscale. The purpose of this commit is to just pull in the code and ensure all tests and builds work fine. We will slowly modify this to match our intended API mentioned in #44827. Follow up PRs would address further changes needed on top of the initial commit.. We're pulling the code into the `torch.distributed._pipeline.sync` package. The package is private on purpose since there is a lot of work (ex: docs, API changes etc.) that needs to go in before we can actually officially support this. Differential Revision: [D23493316](https://our.internmc.facebook.com/intern/diff/D23493316/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D23493316/)! [ghstack-poisoned]
Pull Request resolved: #44090 This is an initial commit pulling in the torchgpipe fork at https://github.com/facebookresearch/fairscale. The purpose of this commit is to just pull in the code and ensure all tests and builds work fine. We will slowly modify this to match our intended API mentioned in https://fb.quip.com/txurAV3zIFox#RPZACAfAKMq. Follow up PRs would address further changes needed on top of the initial commit.. We're pulling the code into the `torch.distributed._pipeline.sync` package. The package is private on purpose since there is a lot of work (ex: docs, API changes etc.) that needs to go in before we can actually officially support this. ghstack-source-id: 114636036 Differential Revision: [D23493316](https://our.internmc.facebook.com/intern/diff/D23493316/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D23493316/)!
This is an initial commit pulling in the torchgpipe fork at https://github.com/facebookresearch/fairscale. The purpose of this commit is to just pull in the code and ensure all tests and builds work fine. We will slowly modify this to match our intended API mentioned in #44827. Follow up PRs would address further changes needed on top of the initial commit.. We're pulling the code into the `torch.distributed._pipeline.sync` package. The package is private on purpose since there is a lot of work (ex: docs, API changes etc.) that needs to go in before we can actually officially support this. Differential Revision: [D23493316](https://our.internmc.facebook.com/intern/diff/D23493316/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D23493316/)! [ghstack-poisoned]
Folder structure looks OK to me.
Since we imported the code as-is from torch-gpipe, the current copyright makes sense. In the future, if we modified say 100% of one file, do we need to update the copyright in that file and the corresponding folder accordingly?
@@ -22,6 +22,9 @@ All contributions by Yangqing Jia: | |||
Copyright (c) 2015 Yangqing Jia | |||
All rights reserved. | |||
|
|||
All contributions by Kakao Brain: | |||
Copyright 2019-2020 Kakao Brain |
I assume the legal team has reviewed these license updates and they are OK with it?
Yes, this was added as per their guidance and I believe they mentioned they have a job that verifies licensing changes once things land. So they might reach out later if needed.
'distributed/_pipeline/sync/skip/test_api', | ||
'distributed/_pipeline/sync/skip/test_gpipe', | ||
'distributed/_pipeline/sync/skip/test_inspect_skip_layout', | ||
'distributed/_pipeline/sync/skip/test_leak', | ||
'distributed/_pipeline/sync/skip/test_portal', | ||
'distributed/_pipeline/sync/skip/test_stash_pop', | ||
'distributed/_pipeline/sync/skip/test_tracker', | ||
'distributed/_pipeline/sync/skip/test_verify_skippables', | ||
'distributed/_pipeline/sync/test_balance', | ||
'distributed/_pipeline/sync/test_bugs', | ||
'distributed/_pipeline/sync/test_checkpoint', | ||
'distributed/_pipeline/sync/test_copy', | ||
'distributed/_pipeline/sync/test_deferred_batch_norm', | ||
'distributed/_pipeline/sync/test_dependency', | ||
'distributed/_pipeline/sync/test_inplace', | ||
'distributed/_pipeline/sync/test_microbatch', | ||
'distributed/_pipeline/sync/test_phony', | ||
'distributed/_pipeline/sync/test_pipe', | ||
'distributed/_pipeline/sync/test_pipeline', | ||
'distributed/_pipeline/sync/test_stream', | ||
'distributed/_pipeline/sync/test_transparency', | ||
'distributed/_pipeline/sync/test_worker', |
how much time does this add to general CI tests? If it is a lot, shall we consider adding it to slow tests for now to minimize the impact on other PRs?
Most of the tests didn't take too long, but I still added all of them to SLOW_TESTS to be safe.
This is an initial commit pulling in the torchgpipe fork at https://github.com/facebookresearch/fairscale. The purpose of this commit is to just pull in the code and ensure all tests and builds work fine. We will slowly modify this to match our intended API mentioned in #44827. Follow up PRs would address further changes needed on top of the initial commit.. We're pulling the code into the `torch.distributed._pipeline.sync` package. The package is private on purpose since there is a lot of work (ex: docs, API changes etc.) that needs to go in before we can actually officially support this. Differential Revision: [D23493316](https://our.internmc.facebook.com/intern/diff/D23493316/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D23493316/)! [ghstack-poisoned]
Pull Request resolved: #44090 This is an initial commit pulling in the torchgpipe fork at https://github.com/facebookresearch/fairscale. The purpose of this commit is to just pull in the code and ensure all tests and builds work fine. We will slowly modify this to match our intended API mentioned in https://fb.quip.com/txurAV3zIFox#RPZACAfAKMq. Follow up PRs would address further changes needed on top of the initial commit.. We're pulling the code into the `torch.distributed._pipeline.sync` package. The package is private on purpose since there is a lot of work (ex: docs, API changes etc.) that needs to go in before we can actually officially support this. ghstack-source-id: 114864254 Differential Revision: [D23493316](https://our.internmc.facebook.com/intern/diff/D23493316/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D23493316/)!
This pull request has been merged in 06d50b5. |
Stack from ghstack:
This is an initial commit pulling in the torchgpipe fork at
https://github.com/facebookresearch/fairscale.
The purpose of this commit is to just pull in the code and ensure all tests and
builds work fine. We will slowly modify this to match our intended API
mentioned in #44827. Follow up PRs would
address further changes needed on top of the initial commit..
We're pulling the code into the
torch.distributed._pipeline.sync
package. Thepackage is private on purpose since there is a lot of work (ex: docs, API
changes etc.) that needs to go in before we can actually officially support
this.
Differential Revision: D23493316
NOTE FOR REVIEWERS: This PR has internal Facebook specific changes or comments, please review them on Phabricator!
The text was updated successfully, but these errors were encountered: