bark icon indicating copy to clipboard operation
bark copied to clipboard

raise RuntimeError(msg) RuntimeError: jaxlib is version 0.3.25, but this version of jax requires version >= 0.4.7.

Open huanggou666 opened this issue 1 year ago • 5 comments

I have this bug msg, I couldn't find jaxlib file of 0.4.7 for windows,

huanggou666 avatar May 04 '23 02:05 huanggou666

hmm, no idea why jax would be needed. what's the stacktrace?

gkucsko avatar May 04 '23 02:05 gkucsko

This is the whole Traceback, I don't know if there is something wrong with my python environment or not. Traceback (most recent call last): File "F:\New project\barkGUI\bark-gui\webui.py", line 13, in from bark import SAMPLE_RATE, generate_audio File "F:\New project\barkGUI\bark-gui\bark_init_.py", line 1, in from .api import generate_audio, text_to_semantic, semantic_to_waveform, save_as_prompt File "F:\New project\barkGUI\bark-gui\bark\api.py", line 5, in from .generation import codec_decode, generate_coarse, generate_fine, generate_text_semantic File "F:\New project\barkGUI\bark-gui\bark\generation.py", line 17, in from transformers import BertTokenizer File "C:\Users\daihao\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers_init_.py", line 26, in from . import dependency_versions_check File "C:\Users\daihao\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\dependency_versions_check.py", line 17, in from .utils.versions import require_version, require_version_core File "C:\Users\daihao\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\utils_init_.py", line 30, in from .generic import ( File "C:\Users\daihao\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\utils\generic.py", line 33, in import jax.numpy as jnp File "C:\Users\daihao\AppData\Local\Programs\Python\Python310\lib\site-packages\jax_init_.py", line 35, in from jax import config as _config_module File "C:\Users\daihao\AppData\Local\Programs\Python\Python310\lib\site-packages\jax\config.py", line 17, in from jax.src.config import config # noqa: F401 File "C:\Users\daihao\AppData\Local\Programs\Python\Python310\lib\site-packages\jax_src\config.py", line 24, in from jax.src import lib File "C:\Users\daihao\AppData\Local\Programs\Python\Python310\lib\site-packages\jax_src\lib_init.py", line 73, in version = check_jaxlib_version( File "C:\Users\daihao\AppData\Local\Programs\Python\Python310\lib\site-packages\jax_src\lib_init.py", line 62, in check_jaxlib_version raise RuntimeError(msg) RuntimeError: jaxlib is version 0.3.25, but this version of jax requires version >= 0.4.7.

huanggou666 avatar May 04 '23 06:05 huanggou666

weird, seems like it's coming from transformers maybe try updating transformers? or just jaxlib directly?

gkucsko avatar May 04 '23 20:05 gkucsko

updated transformers does not work, the problem is there is no 0.4.7 version of jaxlib on the internet for windows, the highest version available is 0.3.7 cuda111/jaxlib-0.3.5+cuda11.cudnn82-cp310-none-win_amd64.whl The strange thing is that there are almost no questions and answers about the 0.4.7 version of Jaxlib on Google. I maybe the only one have this bug

huanggou666 avatar May 05 '23 02:05 huanggou666

strange ya sorry, don't really have good idea... did you try a fresh virtual environment to install stuff from scratch? shooting in the dark here a bit though

gkucsko avatar May 05 '23 13:05 gkucsko

updated transformers does not work, the problem is there is no 0.4.7 version of jaxlib on the internet for windows, the highest version available is 0.3.7 cuda111/jaxlib-0.3.5+cuda11.cudnn82-cp310-none-win_amd64.whl The strange thing is that there are almost no questions and answers about the 0.4.7 version of Jaxlib on Google. I maybe the only one have this bug

You probably need to downgrade transformers, to make it compatible with your installed jaxlib

shouldsee avatar May 10 '23 17:05 shouldsee

closing for inactivity, feel free to reopen if not fixed

gkucsko avatar May 18 '23 13:05 gkucsko

Hello @huanggou666 I'm getting the same error, were you able to solve this? I'm running the colab file of ViT.

aditipanda avatar Oct 05 '23 05:10 aditipanda