What problem does it solve?
This Skill streamlines the JAX Jaxpr interpreter by adding precise, primitive-specific handlers, replacing less efficient, conservative fallbacks for improved performance and accuracy.
Core Features & Use Cases
- Primitive Handler Implementation: Develops custom handlers for JAX primitives to accurately map input/output indices and Jacobian structures.
- Interpreter Optimization: Replaces generic fallback logic with specialized code for specific JAX operations.
- Use Case: When JAX encounters an unsupported primitive during Jaxpr interpretation, this Skill allows for the creation of a new, efficient handler, ensuring sparse Jacobians are computed correctly instead of relying on a dense, slower fallback.
Quick Start
Use the add-handler skill to add a precise primitive handler for the 'reshape' primitive.