Skip to content

Add support for fp4 and fp8 E8M0 type checking - #397

Open
jtang10 wants to merge 1 commit into
patrick-kidger:mainfrom
jtang10:main
Open

Add support for fp4 and fp8 E8M0 type checking#397
jtang10 wants to merge 1 commit into
patrick-kidger:mainfrom
jtang10:main

Conversation

@jtang10

@jtang10 jtang10 commented Aug 7, 2026

Copy link
Copy Markdown

This PR adds type checking for Float4e2m1fn and Float8e8m0fnu, which is used as the microscale of mxfp format (mxfp4 + mxfp8).

Some fp4 support has been added in #353 but didn't really plumb through. This PR should have that fixed alongside the Float8e8m0fnu.

Since there's no direct Float8 support for type checking, this PR follows the same convention s.t. newly add dtypes will categorically fall under Float.

It does not look like I have to specially add new test for these dtypes but I'd be happy to if you need.

@patrick-kidger

Copy link
Copy Markdown
Owner

LGTM! Looks like ruff lint is failing for some reason, but if you can fix that then I'd be happy to merge this :-)

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.

2 participants