Commit be84494
committed
[FSDP][optim_state_dict][10/N] Make optim_state_dict and optim_state_dict_to_load public
Pull Request resolved: #92118
Make optim_state_dict and optim_state_dict_to_load public APIs and consolidate them with state_dict by using the same state_dict_type to decide how to perform the optimizer state_dict save and load.
ghstack-source-id: 178869730
Differential Revision: [D42488022](https://our.internmc.facebook.com/intern/diff/D42488022/)1 parent 4170fbe commit be84494
File tree
7 files changed
+656
-208
lines changed- test/distributed
- _composable/fully_shard
- fsdp
- torch/distributed
- fsdp
- optim
7 files changed
+656
-208
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments