Skip to content

Add fp8 min/max reduction kernels#10604

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_938792741
Jun 27, 2026
Merged

Add fp8 min/max reduction kernels#10604
copybara-service[bot] merged 1 commit into
masterfrom
test_938792741

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Add fp8 min/max reduction kernels

This change refactors the float16_wrapper helper, it is now sign_magnitude<T>, which is just a wrapper to convert from/to sign-magnitude types, which floating point values are. The floating point aspect of it was just noise that can be removed.

Then, update kernels:

  • Instead of instantiating fp16 and bf16 kernels, just do one xf16 kernel, which works for both.
  • Add xf8 kernels, which support fp8 types.

@copybara-service copybara-service Bot force-pushed the test_938792741 branch 2 times, most recently from d76a252 to 7d8f9c9 Compare June 27, 2026 00:25
This change refactors the `float16_wrapper` helper, it is now `sign_magnitude<T>`, which is just a wrapper to convert from/to sign-magnitude types, which floating point values are. The floating point aspect of it was just noise that can be removed.

Then, update kernels:
- Instead of instantiating fp16 and bf16 kernels, just do one `xf16` kernel, which works for both.
- Add `xf8` kernels, which support fp8 types.

PiperOrigin-RevId: 938852162
@copybara-service copybara-service Bot merged commit 6ca2888 into master Jun 27, 2026
@copybara-service copybara-service Bot deleted the test_938792741 branch June 27, 2026 00:46
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.

1 participant