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

Enable Checkpointing #420

Merged
merged 9 commits into from
Aug 27, 2019
Merged

Enable Checkpointing #420

merged 9 commits into from
Aug 27, 2019

Conversation

ptrblck
Copy link
Contributor

@ptrblck ptrblck commented Aug 6, 2019

PR enables checkpointing for apex by:

  • adding an amp.state_dict(), amp.load_state_dict() method
  • patching model.state_dict() to return FP32 parameters

TODO:

  • add usage in README

README.md Outdated
...
```

Note that we recommend restoring the model using the same `opt_level`.
Copy link
Contributor

Choose a reason for hiding this comment

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

"Also note that we recommend calling the load_state_dict methods after amp.initialize."

# Continue training
...

Note that we recommend restoring the model using the same opt_level.
Copy link
Contributor

@mcarilli mcarilli Aug 27, 2019

Choose a reason for hiding this comment

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

"... opt_level. Also note that we recommend calling the load_state_dict methods after amp.initialize."

@mcarilli mcarilli merged commit dec4fdd into NVIDIA:master Aug 27, 2019
@ptrblck ptrblck deleted the checkpointing branch October 1, 2019 15:49
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.

2 participants