Skip to content

Incompatibility with jax 0.7.0 #2051

@damonbayer

Description

@damonbayer

import numpyro fails with jax 0.7.0 with the following error

>>> import numpyro
ImportError: cannot import name 'pjit_p' from 'jax.experimental.pjit' (/Users/damon/Documents/GitHub/stf-pyrenew-added-value/.venv/lib/python3.13/site-packages/jax/experimental/pjit.py)

This is because of the following note from the jax 0.7.0 release:

The jax.extend.core.primitives.pjit_p primitive has been renamed to jit_p, and its name attribute has changed from "pjit" to "jit". This affects the string representations of jaxprs. The same primitive is no longer exported from the jax.experimental.pjit module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions