Fix xla_pmap_p import for JAX versions that removed pmap#2173
Open
saitcakmak wants to merge 1 commit intopyro-ppl:masterfrom
Open
Fix xla_pmap_p import for JAX versions that removed pmap#2173saitcakmak wants to merge 1 commit intopyro-ppl:masterfrom
saitcakmak wants to merge 1 commit intopyro-ppl:masterfrom
Conversation
JAX removed the C++ pmap infrastructure (including xla_pmap_p) in a recent release. Guard the import so numpyro works with both old and new JAX versions.
Collaborator
|
Thanks @saitcakmak |
Collaborator
|
LGTM. It seems the failing tests in Python 3.14 CI (test-inference) are not caused by this PR. They fail inside funsor, a transitive dependency: .venv/lib/python3.14/site-packages/funsor/jax/ops.py:203
E TypeError: clip() got an unexpected keyword argument 'a_max' funsor calls I am looking into the upstream issue: pyro-ppl/funsor#611 @fehiepsi would you mind taking a look? |
fehiepsi
approved these changes
Apr 17, 2026
Qazalbash
added a commit
to kokabsc/gwkokab
that referenced
this pull request
Apr 18, 2026
is resovled
sethaxen
added a commit
to sethaxen/CAGPJax
that referenced
this pull request
Apr 20, 2026
* chore: Temporarily upperbound jax Until numpyro v0.20 is compatible with jax v0.10, pyro-ppl/numpyro#2173 * fix: Make support a property Change made in numpyro v0.20.0 * fix: Explicitly import jax.test_util
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
xla_pmap_p). This causes anImportErrorwhen importing numpyro with newer JAX versions.xla_pmap_pimport with a try/except and skip the provenance tracking rule registration when it's unavailable.Test plan
python -c "from numpyro.ops.provenance import eval_provenance"succeedseval_provenanceworks end-to-end (tested withlambda x, y, z: x + y)test/ops/test_provenance.pypass