Skip to content
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

[ddp] add save/load state dict for ColoDDP #1127

Merged
merged 5 commits into from
Jun 20, 2022

Conversation

ver217
Copy link
Member

@ver217 ver217 commented Jun 16, 2022

No description provided.

destination = hook_result
return destination

def _save_to_state_dict(self, destination, prefix, keep_vars):
Copy link
Member

@kurisusnowdeng kurisusnowdeng Jun 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Is this saving only a single global dict, or saving on each data parallel rank?
  • Do we deal with sharded data parallel model states here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • a single global dict,
  • yes

@ver217 ver217 merged commit d269026 into hpcaitech:main Jun 20, 2022
@ver217 ver217 deleted the feature/colo-ddp branch June 20, 2022 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants