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

AttributeError: module 'jax.random' has no attribute 'KeyArray' #88

Open
amrzv opened this issue Jul 4, 2024 · 2 comments
Open

AttributeError: module 'jax.random' has no attribute 'KeyArray' #88

amrzv opened this issue Jul 4, 2024 · 2 comments

Comments

@amrzv
Copy link

amrzv commented Jul 4, 2024

Hello.
When running google colab notebook this error is raised on the line from diffusers import DiffusionPipeline, EulerAncestralDiscreteScheduler

The issue is that jax library needs to be downgraded to 0.4.23, so adding the following into the first cell resolves the error

jax==0.4.23 jaxlib==0.4.23

stackoverflow

Should the requirements.txt be patched? I can create an MR.

@eliphatfs
Copy link
Collaborator

Thank you for your report! Could you specify a little bit more -- are you using jax for inference or you are using torch but importing diffusers causes a problem?

@amrzv
Copy link
Author

amrzv commented Jul 8, 2024

The second scenario, as it is in colab.

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

2 participants