Skip to content

[QwixMxfpNumerics] Verify XLA handling of MXFP data types by testing jax.nn.scaled_matmul across different platforms.#227

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_881171796
Mar 23, 2026
Merged

[QwixMxfpNumerics] Verify XLA handling of MXFP data types by testing jax.nn.scaled_matmul across different platforms.#227
copybara-service[bot] merged 1 commit intomainfrom
test_881171796

Conversation

@copybara-service
Copy link
Copy Markdown

[QwixMxfpNumerics] Verify XLA handling of MXFP data types by testing jax.nn.scaled_matmul across different platforms.

This change introduces mxfp_numerics_test.py to validate the behavior of jax.nn.scaled_matmul with mixed-precision floating-point types (MXFP4 and MXFP8). The tests cover a float32 baseline, MXFP8 using e4m3fn/e8m0fnu, and MXFP4 using e2m1fn/e8m0fnu. The results are compared against a float32 reference implementation. HLO is logged to check for native hardware support. BUILD rules are added to run these tests on CPU, TPUs(v5e and v6e), and GPUs(H100 and B200).

@copybara-service copybara-service Bot force-pushed the test_881171796 branch 2 times, most recently from 08fccde to 0da0db4 Compare March 23, 2026 20:22
…`jax.nn.scaled_matmul` across different platforms.

This change introduces `mxfp_numerics_test.py` to validate the behavior of `jax.nn.scaled_matmul` with mixed-precision floating-point types (MXFP4 and MXFP8). The tests cover a float32 baseline, MXFP8 using e4m3fn/e8m0fnu, and MXFP4 using e2m1fn/e8m0fnu. The results are compared against a float32 reference implementation. HLO is logged to check for native hardware support. BUILD rules are added to run these tests on CPU, TPUs(v5e and v6e), and GPUs(H100 and B200).

PiperOrigin-RevId: 888251069
@copybara-service copybara-service Bot merged commit e43873c into main Mar 23, 2026
@copybara-service copybara-service Bot deleted the test_881171796 branch March 23, 2026 20:24
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