pytorch
3b589c34 - [DDP Checkpointing] non-reentrant checkpoint tests (#69060)

Commit
2 years ago
[DDP Checkpointing] non-reentrant checkpoint tests (#69060) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/69060 Saved variable hooks checkpointing was added in https://github.com/pytorch/pytorch/pull/69508, this PR adds some tests for DDP. Specifically, we can support almost all DDP use cases with this new API, such as dynamic module with find_unused_parameters=True. One case remains to be supported, which is static_graph + non-reentrant based checkpointing. The underlying reason this does not work is https://github.com/pytorch/pytorch/issues/58111. ghstack-source-id: 147219887 Test Plan: CI Reviewed By: zhaojuanmao Differential Revision: D32712126 fbshipit-source-id: ba5ae9ca77fd8929ee020c7dc97838bae9a1931b (cherry picked from commit 9c7f93e21728d1627d85c351a21e7c8da832bff7)
Author
Committer
Parents
Loading