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

Add optimizer not stepped property #139

Merged
merged 2 commits into from
Aug 9, 2021
Merged

Add optimizer not stepped property #139

merged 2 commits into from
Aug 9, 2021

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Aug 9, 2021

This PR adds a property to check whether or not the optimizer step was skipped in Mixed Precision or DeepSpeed training. This is not necessary to use in most cases, but could be important if there are not many training steps.

@sgugger sgugger requested a review from LysandreJik August 9, 2021 11:45
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Great workaround!

docs/source/quicktour.rst Outdated Show resolved Hide resolved
docs/source/quicktour.rst Outdated Show resolved Hide resolved
Co-authored-by: Lysandre Debut <lysandre@huggingface.co>
@sgugger sgugger merged commit 1d9366b into main Aug 9, 2021
@sgugger sgugger deleted the should_lr_step branch August 9, 2021 11:54
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