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

Fix FP8 matmul fusion with recent JAX versions (0.4.31+). #136

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

balancap
Copy link
Contributor

@balancap balancap commented Oct 2, 2024

The main trick is to use dqt_dtype = jnp.bfloat16 instead of jnp.float32 for "dequantization". As presented in bug ticket jax-ml/jax#24051, there is still some issues with the latest JAX version when no relu or abs-max is used.

The main trick is to use `dqt_dtype = jnp.bfloat16` instead of `jnp.float32` for "dequantization".
As presented in bug ticket jax-ml/jax#24051, there is still some issues with the latest JAX version
when no `relu` or `abs-max` is used.
@balancap balancap self-assigned this Oct 2, 2024
@balancap balancap added the bug Something isn't working label Oct 2, 2024
@balancap balancap merged commit 365e5d9 into main Oct 2, 2024
2 checks passed
@balancap balancap deleted the fix-fp8-matmul-notebook-latest-jax branch October 2, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant