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

Fix default precision #1369

Merged
merged 14 commits into from
Aug 6, 2022
Merged

Conversation

A-Jacobson
Copy link
Contributor

fixes a bug causing default precision to be fp32 if trainer device='gpu' and AMP if device=DeviceGPU()

@A-Jacobson A-Jacobson requested a review from a team as a code owner August 5, 2022 18:12
@A-Jacobson A-Jacobson requested a review from hanlint August 5, 2022 18:12
Copy link
Contributor

@mvpatel2000 mvpatel2000 left a comment

Choose a reason for hiding this comment

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

This is a great catch!

@A-Jacobson A-Jacobson enabled auto-merge (squash) August 5, 2022 18:38
@hanlint
Copy link
Contributor

hanlint commented Aug 6, 2022

interesting, this seems to have surfaced an odd failure in our tests:

AssertionError: /scaler/GradScaler/_growth_tracker differs: 4 != 2

Going to take a look at this a bit later.

@A-Jacobson A-Jacobson merged commit 0a13fc7 into mosaicml:dev Aug 6, 2022
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.

3 participants