-
Notifications
You must be signed in to change notification settings - Fork 112
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
[RFC] Microscaling data types (f4E2M1FN, f6E2M3FN, f6E3M2FN, f8E8M0FNU) #2581
Conversation
aa7cb76
to
04c71b9
Compare
04c71b9
to
5b0475c
Compare
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.
Thanks for sending the RFC! I've signal boosted it around internally, would also recommend a post on openxla-discuss similar to the FP8 posting to get the attention of folks not actively watching PRs on the StableHLO repo.
Leaving a "request changes" reply to make the review blocking until RFC period is over, but overall LGTM!
Does this add the MXFP8, MXFP6, and MXFP4 types where a scale applies to a block of k elements? Or does it just add the raw unscaled element types (F4E2M1FN, etc), similar to the existing FP8 types in StableHLO? Would be good to clarify this in the RFC Also this is more of an XLA question, but do you intend for FP4 and FP6 to be packed? FP6 in particular would span bytes if packed, unlike the existing packed int4 and int2 types. CC @mooskagh |
I'm currently working on this, will post it within the next few days.
Yes.
No, but I'll submit a JAX API endpoint for (some) MXFP types soon after the primitive types are landed.
Yes, these will be packed, same as sub-byte integer types. I'll add this info to the XLA RFC. |
Are MXFP types defined in MLIR yet? Or what will a program using one of those datatypes look like? Edit: seeing the MX RFC you shared in the previous comment, has some MLIR examples, can address this Q there. |
Could this be unblocked now? |
Yes, the 2w rfc period is completed. LGTM. |
This is a proposal to add MX (microscaling) floating point types to StableHLO.
Related links: