You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`jax.experimental.host_callback` was recently removed in [jax
0.4.35](https://jax.readthedocs.io/en/latest/changelog.html#jax-0-4-35-oct-22-2024).
> - `jax.experimental.host_callback` has been deprecated since March
2024, with JAX version 0.4.26. Now we removed it. See
jax-ml/jax#20385 for a discussion of
alternatives.
This PR replaces `jax.experimental.host_callback` with
`jax.debug.callback` and `jax.experimental.io_callback`. In addition, it
implements the batching change in `jax.numpy.linalg.solve()` since [jax
0.5.0](https://jax.readthedocs.io/en/latest/changelog.html#jax-0-5-0-jan-17-2025).
> -
[`jax.numpy.linalg.solve()`](https://jax.readthedocs.io/en/latest/_autosummary/jax.numpy.linalg.solve.html#jax.numpy.linalg.solve)
no longer supports batched 1D arguments on the right hand side. To
recover the previous behavior in these cases, use `solve(a, b[...,
None]).squeeze(-1)`.
Lastly, jax's prng changed in 0.5.0 so the generated random numbers will
be different.
> Enable jax_threefry_partitionable by default (see [the update
note](jax-ml/jax#18480)).
This is unlucky on the power method test, so I've bumped the relative
tolerance slightly.
(Very untested, but at least it passes the tests. It seems tqdm has a
bit of a footgun where if a jax array is passed to info, then it'll
freeze. Perhaps this should be documented in the `kwargs` argument.)
---------
Co-authored-by: Andres Potapczynski <[email protected]>
<!-- [](https://colab.research.google.com/github/wilson-labs/cola/blob/master/docs/notebooks/colabs/all.ipynb) -->
24
24
25
-
CoLA is a framework for scalable linear algebra in machine learning and beyond, providing:
25
+
CoLA is a framework for scalable linear algebra in machine learning and beyond, providing:
26
26
27
27
(1) Fast hardware-sensitive (GPU accelerated) iterative algorithms for general matrix operations; <br>
28
28
(2) Algorithms that can exploit matrix structure for efficiency; <br>
0 commit comments