question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Constraints for jaxlib version during jax installation

See original GitHub issue

In v0.2.11 jax added the nice optional installation targets cpu, cudaXXX and tpu which install jaxlib for the desired platform. Currently, the setup script guarantees that the installed version of jaxlib is compatible by constraining the version number from below to the earliest known compatible version. However, no similar constraint is put for a maximum compatible version number. Given that jaxlib does not appear to necessarily maintain backward compatibility between updates, this is an issue for installing older versions of jax (as these will always pull the latest available jaxlib version, leading to crashes due to incompatibility).

Jax installation should always result in a working setup, i.e., only the latest compatible version of jaxlib should be installed when installing jax. This either requires version constraints in jax’s setup.py or backward compatibility guarantees in jaxlib (or a combination of both).

Please:

  • Check for duplicate requests.
  • Describe your goal, and if possible provide a code snippet with a motivating example.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lumipcommented, Jul 2, 2021

I don’t have the time right now, so please go ahead 😃

0reactions
jakevdpcommented, Jul 2, 2021

Sounds good - are you interested in sending a PR? If not I’m happy to take care of it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jaxlib 0.1.61 without CUDA support not available in storage ...
Unfortunately pip accepts both versions as matching the constraint ==0.1.61 , so you'll randomly get either of them if you install that way....
Read more >
How to use the jaxlib.version.__version__ function in ... - Snyk
This module is largely a wrapper around `jaxlib` that performs version ... of this error is that you installed jaxlib ' 'using pip,...
Read more >
The Sharp Bits — JAX documentation
JAX re-runs the Python function when the type or shape of the argument ... JAX's array update functions, unlike their NumPy versions, operate...
Read more >
JAX 是一个 TensorFlow 的简化库,它结合了 Autograd 和 XLA
With its updated version of Autograd, JAX can automatically differentiate native Python and NumPy functions. It can differentiate through loops, branches, ...
Read more >
Why You Should (or Shouldn't) be Using Google's JAX in 2022
DeepMind announced in 2020 that it is using JAX to accelerate its research, and a growing number of publications and projects from Google...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found