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

Docker: module 'jaxlib.pocketfft' has no attribute 'pocketfft #77

Open
IronCraftMan opened this issue Jun 16, 2022 · 7 comments
Open

Docker: module 'jaxlib.pocketfft' has no attribute 'pocketfft #77

IronCraftMan opened this issue Jun 16, 2022 · 7 comments

Comments

@IronCraftMan
Copy link

IronCraftMan commented Jun 16, 2022

Whenever I try to run via docker "docker-compose up" in the main directory, I get this output on loop.

--> Starting DALL-E Server. This might take up to two minutes.
dalle-backend | Traceback (most recent call last):
dalle-backend | File "app.py", line 18, in
dalle-backend | from dalle_model import DalleModel
dalle-backend | File "/app/dalle_model.py", line 5, in
dalle-backend | import jax
dalle-backend | File "/usr/local/lib/python3.8/dist-packages/jax/init.py", line 116, in
dalle-backend | from .experimental.maps import soft_pmap as soft_pmap
dalle-backend | File "/usr/local/lib/python3.8/dist-packages/jax/experimental/maps.py", line 26, in
dalle-backend | from .. import numpy as jnp
dalle-backend | File "/usr/local/lib/python3.8/dist-packages/jax/numpy/init.py", line 19, in
dalle-backend | from . import fft as fft
dalle-backend | File "/usr/local/lib/python3.8/dist-packages/jax/numpy/fft.py", line 17, in
dalle-backend | from jax._src.numpy.fft import (
dalle-backend | File "/usr/local/lib/python3.8/dist-packages/jax/_src/numpy/fft.py", line 19, in
dalle-backend | from jax import lax
dalle-backend | File "/usr/local/lib/python3.8/dist-packages/jax/lax/init.py", line 332, in
dalle-backend | from jax._src.lax.fft import (
dalle-backend | File "/usr/local/lib/python3.8/dist-packages/jax/_src/lax/fft.py", line 145, in
dalle-backend | xla.backend_specific_translations['cpu'][fft_p] = pocketfft.pocketfft
dalle-backend | AttributeError: module 'jaxlib.pocketfft' has no attribute 'pocketfft'
dalle-backend exited with code 1

@centipeda
Copy link

@IronCraftMan The fix in #79 by @Marcelovk worked for me to fix this.

@cdmichaelb
Copy link

@IronCraftMan The fix in #79 by @Marcelovk worked for me to fix this.

This fix did not work for me, can you tell me what to do in case I am doing it wrong?

@centipeda
Copy link

I changed the one line in backend/Dockerfile to the one in the merge request. I think the exact version of jax to install might depend on your graphics card situation, so I'm not sure if it'll work for everyone.

@cdmichaelb
Copy link

Ah ok, I tried that too. I have an RTX 3080, do you?

I changed the one line in backend/Dockerfile to the one in the merge request. I think the exact version of jax to install might depend on your graphics card situation, so I'm not sure if it'll work for everyone.

@Marcelovk
Copy link

Just checking - are you sure that you are doing a docker-compose build again to pick the changes?

@centipeda
Copy link

I have a 2070 Super. And yes, don't forget to docker-compose build after making the changes.

@cdmichaelb
Copy link

@centipeda @Marcelovk Thanks, docker-compose build was what I was missing. All seems to be good now (or at least it's booting!)

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

4 participants