New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[activation checkpointing] Tagging based min cut partitioner #103357
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/103357
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 0389cb4: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
ghstack-source-id: 7460f23e423c619aa2ffe8ccab9978e079d8b774 Pull Request resolved: #103357
[ghstack-poisoned]
ghstack-source-id: 6fde7c1ac9b9c62a01de3365b9bb7642e5960b6d Pull Request resolved: #103357
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy aakhundov [ghstack-poisoned]
ghstack-source-id: 2f5a570a37920788eb54ce4fe5bad7e7aaabe4ba Pull Request resolved: #103357
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy aakhundov [ghstack-poisoned]
ghstack-source-id: de40da68dd7d58a37196a87da22cbe53d17dd3f0 Pull Request resolved: #103357
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy aakhundov [ghstack-poisoned]
ghstack-source-id: 1ba53e37a1b1e75961b9e1e33d7039a3131dd92c Pull Request resolved: #103357
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy aakhundov [ghstack-poisoned]
ghstack-source-id: f12499283b88fc044d7fc066c3393c4d5f290984 Pull Request resolved: #103357
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy aakhundov [ghstack-poisoned]
ghstack-source-id: deeea3f322e7cf77214da6c684dbe034334c63eb Pull Request resolved: #103357
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy aakhundov [ghstack-poisoned]
ghstack-source-id: 1865b1a06ba776793c28860d8c139b0ab993a804 Pull Request resolved: #103357
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy aakhundov [ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy aakhundov [ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy aakhundov [ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy aakhundov [ghstack-poisoned]
torch/_functorch/partitioners.py
Outdated
@@ -26,6 +26,21 @@ def is_symint_node(node): | |||
assert hasattr(node, 'meta'), "All nodes traced with proxy_tensor should have meta" | |||
return "val" in node.meta and isinstance(node.meta['val'], torch.SymInt) | |||
|
|||
def must_recompute(node): | |||
return "recompute" in node.meta and node.meta["recompute"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return "recompute" in node.meta and node.meta["recompute"] | |
return node.meta.get("recompute", False) |
for output in output_node.args[0]: | ||
if isinstance(output, torch.fx.node.Node): | ||
if output not in env: | ||
print("output gradient dependent only on fwd", output) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy aakhundov [ghstack-poisoned]
@pytorchbot merge |
Merge failedReason: This PR needs a If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised by workflow job |
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Stack from ghstack (oldest at bottom):
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @msaroufim @aakhundov