You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DSD] Correctly handle shared parameters for optimizer state_dict (pytorch#128685)
*
Fixespytorch#128011
See the discussion in pytorch#128076
Current implementation of `set_optimizer_state_dict()` assumes that all the fqns returned by `_get_fqns()` must exist in the optimizer state_dict. This is not true if the model has shared parameters. In such a case, only one fqn of the shared parameters will appear in the optimizer state_dict. This PR addresses the issue.
Differential Revision: [D58573487](https://our.internmc.facebook.com/intern/diff/D58573487/)
Pull Request resolved: pytorch#128685
Approved by: https://github.com/LucasLLC
0 commit comments