Skip to content

Conversation

@PasteurBot
Copy link
Contributor

This PR updates the lockfile to the latest versions of the dependencies.
Please review the changes and merge when ready.

@apaleyes
Copy link
Contributor

The reason for this failure is explained in jax 0.7.2 release notes:

JAX now represents constants in its internal jaxpr representation as a
LiteralArray, which is a private JAX type that duck types as a
numpy.ndarray. This type may be exposed to users via custom_jvp rules,
for example, and may break code that uses isinstance(x, np.ndarray).

Would be sufficient for jax.typing.ArrayLike to include this new LiteralArray type, but apparently this was missed. Good news, we are not the first to notice, an issue exists.

I see two possible approaches here:

  1. Apply a fix ourselves. It will be version dependent unfortunately, because jax 0.7.2 does not work with python 3.10. So we'll have to do something like if LiteralArray exists, add it and redefine ArrayLike.
  2. Do nothing, sit on this open PR until jax fixes the typing discrepancy, and then presumably merge when 0.7.3 comes out.

@xalelax what do you think?

@xalelax
Copy link
Contributor

xalelax commented Sep 24, 2025

I would sit on this one and go with 2 if that's fine by you!

@PasteurBot PasteurBot force-pushed the _bot/update-deps branch 2 times, most recently from e03e8fd to 3aefda7 Compare October 6, 2025 00:28
@apaleyes
Copy link
Contributor

jax 0.8.0 is out, and the typing issue is fixed there. Unfortunately, a new problem cropped up, jax's array turns up where numpy array should be:

AttributeError: 'TypedNdArray' object has no attribute 'tobytes'

----
Co-authored-by: Andrei Paleyes <[email protected]>
@apaleyes apaleyes merged commit f77baa6 into main Oct 20, 2025
10 checks passed
@apaleyes apaleyes deleted the _bot/update-deps branch October 20, 2025 10:26
@pasteurlabs pasteurlabs locked and limited conversation to collaborators Oct 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants