-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Fix rms_normalization
and layer_normalization
to ensure consistent precision in computations.
#21438
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21438 +/- ##
=======================================
Coverage 82.72% 82.73%
=======================================
Files 565 565
Lines 55247 55259 +12
Branches 8613 8617 +4
=======================================
+ Hits 45702 45717 +15
- Misses 7433 7437 +4
+ Partials 2112 2105 -7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
rms_normalization
and layer_normalization
to ensure consistent precision in computations and tests.rms_normalization
and layer_normalization
to ensure consistent precision in computations.
- Add tests. - Fix the numeric stability issue in half precision training. - Update the signature of the Operation.
a85f8c4
to
b49e51d
Compare
@fchollet Here I need to explicitly set |
rms_normalization
and layer_normalization
to ensure consistent precision in computations.rms_normalization
and layer_normalization
to ensure consistent precision in computations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for the fixes.
- Add tests. - Fix the numeric stability issue in half precision training. - Update the signature of the Operation.
Operation
.Ref: https://github.com/google/flax/blob/main/flax/linen/normalization.py