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

jax report that "No GPU/TPU found, falling back to CPU" #28

Closed
La-SilverLand opened this issue May 24, 2021 · 3 comments
Closed

jax report that "No GPU/TPU found, falling back to CPU" #28

La-SilverLand opened this issue May 24, 2021 · 3 comments

Comments

@La-SilverLand
Copy link

in the requirement.txt it requires jax>=0.2.4
when incurring this problem as in the title, the jax github homepages says for both support of GPU and CPU,
one needs to install as

pip install --upgrade jax jaxlib==0.1.67+cuda111 -f https://storage.googleapis.com/jax-releases/jax_releases.html
The jaxlib version must correspond to the version of the existing CUDA installation you want to use

but that jaxlib repo link does not contain any version >= 0.2.4,
actually the newest version there is 0.1.67

How do you install the environment ?

@La-SilverLand
Copy link
Author

I got it fixed, the jax>=0.2.4 does not mean jaxlib>=0.2.4
for my situation, i have cuda 10.2 and jax==0.2.13
jaxlib==0.1.65+cuda102 is suitable

@DaShenZi721
Copy link

@La-SilverLand Hello! Sorry to bother you. Have you ever encountered the following problem? I think it may be related to the version of flax.

Traceback (most recent call last):
  File "lra_benchmarks/listops/train.py", line 28, in <module>
    from flax.deprecated import nn
ModuleNotFoundError: No module named 'flax.deprecated'

@DaShenZi721
Copy link

@La-SilverLand This is my setting:

  • cuda: 11.2
  • jax: 0.2.13
  • jaxlib: 0.1.65+cuda112
  • flax: 0.2.2
  • tensorflow: 2.7.0

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