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

Support for non-saturating mode for fp8 #147

Open
wonjeon opened this issue Apr 22, 2024 · 0 comments
Open

Support for non-saturating mode for fp8 #147

wonjeon opened this issue Apr 22, 2024 · 0 comments

Comments

@wonjeon
Copy link

wonjeon commented Apr 22, 2024

OFP8 (https://www.opencompute.org/documents/ocp-8-bit-floating-point-specification-ofp8-revision-1-0-2023-12-01-pdf-1) defines two saturation modes - saturating and non-saturating mode.
It looks like the current code runs in saturating mode by default.

>>> math.isnan(np.float32(449).astype(float8_e4m3fn))
False

Wondering if there's any plan to support both.
Thank you.

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

No branches or pull requests

1 participant