Add F6E3M2FN and F6E2M3FN to xla::PrimitiveType.#3556
Open
copybara-service[bot] wants to merge 1 commit into
Open
Add F6E3M2FN and F6E2M3FN to xla::PrimitiveType.#3556copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
This CL introduces first-class declarations for two 6-bit floating point formats: - F6E3M2FN (3 exponent bits, 2 mantissa bits) - F6E2M3FN (2 exponent bits, 3 mantissa bits) These types conform to the OCP Microscaling Formats (MX) specification: https://www.opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf The encoding parameters are as follows: FP6 E3M2 (Exponent bias: 3) - Max normal: +/-28.0 - Min normal: +/-0.25 - Max subnormal: +/-0.1875 - Min subnormal: +/-0.0625 FP6 E2M3 (Exponent bias: 1) - Max normal: +/-7.5 - Min normal: +/-1.0 - Max subnormal: +/-0.875 - Min subnormal: +/-0.125 PiperOrigin-RevId: 916256455
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add F6E3M2FN and F6E2M3FN to xla::PrimitiveType.
This CL introduces first-class declarations for two 6-bit floating point formats:
These types conform to the OCP Microscaling Formats (MX) specification:
https://www.opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf
The encoding parameters are as follows:
FP6 E3M2 (Exponent bias: 3)
FP6 E2M3 (Exponent bias: 1)