Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible jax or jaxlib version in tools/inference/inference_pipeline.ipynb #330

Open
smaybius opened this issue May 2, 2023 · 7 comments

Comments

@smaybius
Copy link

smaybius commented May 2, 2023

In the 3rd code block of the inference pipeline notebook, it has this error

RuntimeError Traceback (most recent call last)

in <cell line: 1>()
----> 1 import jax
2 import jax.numpy as jnp
3
4 # check how many devices are available
5 jax.local_device_count()

4 frames

/usr/local/lib/python3.10/dist-packages/jax/_src/lib/init.py in check_jaxlib_version(jax_version, jaxlib_version, minimum_jaxlib_version)
67 f'incompatible with jax version {jax_version}. Please '
68 'update your jax and/or jaxlib packages.')
---> 69 raise RuntimeError(msg)
70
71 return _jaxlib_version

RuntimeError: jaxlib version 0.4.7 is newer than and incompatible with jax version 0.3.25. Please update your jax and/or jaxlib packages.

@ahmad88me
Copy link

ahmad88me commented May 3, 2023

I got the following error with jax.

AttributeError: partially initialized module 'jax' has no attribute 'version' (most likely due to a circular import)

@kartikpodugu
Copy link

kartikpodugu commented May 10, 2023

pip install jaxlib==0.3.25 -f https://storage.googleapis.com/jax-releases/jax_releases.html will solve your problem.
Basically jax and jaxlib version mismatch.

@saeyrjac565
Copy link

pip install jaxlib==0.3.25 -f https://storage.googleapis.com/jax-releases/jax_releases.html will solve your problem. Basically jax and jaxlib version mismatch.

I had the same issue, I tried to install jaxlib with version=0.3.25. However, new issue shows up saying orbax 0.1.7 and chex 0.1.7 has requirement jax>= 0.4.6.
image

@kartikpodugu
Copy link

kartikpodugu commented May 12, 2023

@saeyrjac565 : Looks like orbax and chex need latest jax. Do you need this for running inference using dalle-mini ?
Both jax and jax lib should be at 0.3.25. That is what i understood.
For me jax was 0.3.25, only lib was still at 0.4.7, which i solved using the other comment i mentioned.

Also, I have only single GPU with 12GB RAM, so i can't leverage GPU for inference. So, I did pure CPU version.

@borisdayma
Copy link
Owner

Maybe just need to pin orbax and chex to older versions as well?

@thejohnhoffer
Copy link

I believe @fang2020shu has resolved this issue on their fork! https://github.com/fang2020shu/dalle-mini

@borisdayma
Copy link
Owner

There was an issue with orbax so I pinned it. This should resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants