Skip to content

Modernize JAX compatibility and separate core dependencies from example extras#38

Open
vimarsh6739 wants to merge 3 commits into
PredictiveIntelligenceLab:mainfrom
vimarsh6739:jax-compat-packaging
Open

Modernize JAX compatibility and separate core dependencies from example extras#38
vimarsh6739 wants to merge 3 commits into
PredictiveIntelligenceLab:mainfrom
vimarsh6739:jax-compat-packaging

Conversation

@vimarsh6739

Copy link
Copy Markdown

Hi there! I'm working on adding jaxpi as a benchmark in Enzyme-JAX, a compiler that applies various compiler optimizations on top of the existing JAX pipeline.

I thought it'd be super cool to include JAX-PI in our CI benchmark suite, which runs on every Enzyme-JAX commit and publishes it's results here

I had to make the following changes:

  • Update the JAX API in a few places (I tested the changes locally with JAX 0.11)
  • Re-organize the packaging into core + example-specific extras
  • Remove the pytorch dependency from the sampler base class (it seemed unused)

Specifically, this allows us to install and import jaxpi without pulling in the visualization and experiment-tracking dependencies.

Hopefully, these changes are useful to you all too!

@vimarsh6739

vimarsh6739 commented Jul 21, 2026

Copy link
Copy Markdown
Author

For the initial Enzyme-JAX integration, I'm temporarily pinning the dependency to a commit in my fork. If these changes are accepted, I'd be happy to update Enzyme-JAX to track this upstream repository directly instead. cc @sifanexisted

@vimarsh6739 vimarsh6739 changed the title Modernize JAX compatability and separate core dependencies from example extras Modernize JAX compatibility and separate core dependencies from example extras Jul 21, 2026
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