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

Implement JAX pow2_decompose primitive. #100

Merged
merged 1 commit into from
Feb 9, 2024
Merged

Conversation

balancap
Copy link
Contributor

@balancap balancap commented Feb 9, 2024

The primitive pow2_decompose is the core decomposition kernel used everywhere in AutoScale/Scalify, meaning it is worth properly formalizing it as a JAX primitive, simplifying the Jaxpr level graph and allowing proper custom kernel optimization on different HW platforms (GPU, IPU, TPU, ...).

NOTE: this PR is fixing additional subnormal related bugs, due to inconsistency of jnp.frexp vs Numpy.
See: jax-ml/jax#19689

@balancap balancap force-pushed the pow2-decompose-primitive branch 2 times, most recently from 669c5a1 to 19904d3 Compare February 9, 2024 16:26
@balancap balancap self-assigned this Feb 9, 2024
@balancap balancap added bug Something isn't working enhancement New feature or request labels Feb 9, 2024
The primitive `pow2_decompose` is the core decomposition kernel used everywhere in AutoScale/Scalify,
meaning it is worth properly formalizing it as a JAX primitive, simplifying the Jaxpr level graph
and allowing proper custom kernel optimization on different HW platforms (GPU, IPU, TPU, ...).

NOTE: this PR is fixing additional subnormal related bugs, due to inconsistency of jnp.frexp vs Numpy.
See: jax-ml/jax#19689
@balancap balancap merged commit 57647c1 into main Feb 9, 2024
2 checks passed
@balancap balancap deleted the pow2-decompose-primitive branch February 9, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant