Jax doesn't default to cpu when cuda is not available #22618
Replies: 3 comments
-
Solved putting JAX_PLATFORMS=cpu as environment variable (as suggested in traceback error) |
Beta Was this translation helpful? Give feedback.
-
I think this is intended behavior. If you install the GPU-enabled jaxlib, the assumption is that you want to run on GPU unless the CPU platform is specified explicitly (e.g. via If you want to default to CPU, then you should install the CPU-only jaxlib. |
Beta Was this translation helpful? Give feedback.
-
I submit GPU jobs to a Slurm cluster on a CPU-only login node using submitit. If I |
Beta Was this translation helpful? Give feedback.
-
Hi, I have a general requirement file that I use across devices, including for unit testing on github, but since latest version of jax, it is crashing when there are no gpu available with the error:
It seems that the package doesn't default to using cpu now when there's no gpu available. Is it intended? It seems linked to the jax-cuda12-plugin extra requirements as I didn't have this issue with 0.4.28 release and ["cuda_pip"].
Beta Was this translation helpful? Give feedback.
All reactions