Skip to content

Conversation

mvpatel2000
Copy link
Contributor

@mvpatel2000 mvpatel2000 commented Feb 24, 2023

What does this PR do?

We currently don't reset the scalar state when adjusting grad accum. This is a problem because if we OOM in the wrong spot, we'll hit an error about unscaling after step. This was caught, tested, and shown in graphs here #1998

CO-1830

@mvpatel2000 mvpatel2000 changed the title Reset scaler stte Reset scaler state Feb 24, 2023
Copy link
Contributor

@dakinggg dakinggg left a comment

Choose a reason for hiding this comment

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

LGTM

@mvpatel2000 mvpatel2000 merged commit 0926cbf into mosaicml:dev Feb 24, 2023
@mvpatel2000 mvpatel2000 deleted the mvpatel2000/reset-optimizer branch February 24, 2023 19:28
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