8000 Incompatible jax or jaxlib version in tools/inference/inference_pipeline.ipynb · Issue #330 · borisdayma/dalle-mini · GitHub
[go: up one dir, main page]

Skip to content

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

Open

Description

@smaybius

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.

Activity

  1. ahmad88me commented on May 3, 2023

    @ahmad88me

    I got the following error with jax.

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

  2. kartikpodugu commented on May 10, 2023

    @kartikpodugu

    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.

  3. saeyrjac565 commented on May 11, 2023

    @saeyrjac565

    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

  4. kartikpodugu commented on May 12, 2023

    @kartikpodugu

    @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.

  5. borisdayma commented on May 23, 2023

    @borisdayma
    Owner

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

  6. thejohnhoffer commented on Jul 29, 2023

    @thejohnhoffer

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

  7. borisdayma commented on Aug 22, 2023

    @borisdayma
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0