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

Use float32 scale in AutoScale MNIST training example. #81

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

balancap
Copy link
Contributor

In some configurations, float16 does not have enough dynamic range to represent scaling, meaning the scale factor can quickly overflow. Using float32 (or equivalently bfloat16) should allow a bit more margin.

In some configurations, `float16` does not have enough dynamic range to represent scaling,
meaning the scale factor can quickly overflow. Using `float32` (or equivalently `bfloat16`)
should allow a bit more margin.
@balancap balancap merged commit 4e01b4b into main Jan 11, 2024
4 checks passed
@balancap balancap deleted the use-float32-scale-in-mnist-training-example branch January 11, 2024 15:47
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.

1 participant