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 installation for GPU #50

Closed
stergiosba opened this issue Nov 8, 2023 · 7 comments
Closed

Jax installation for GPU #50

stergiosba opened this issue Nov 8, 2023 · 7 comments

Comments

@stergiosba
Copy link

stergiosba commented Nov 8, 2023

The Jax pip installation only comes with the CPU version of Jax. Is this intended?
pip install adam-robotics[jax]

@traversaro
Copy link
Contributor

fyi @Giulero @flferretti

@flferretti
Copy link
Contributor

flferretti commented Nov 9, 2023

By default, the installation of JAX comes with the CPU version of jaxlib. If you're interested in the GPU version, I'd suggest to install it as per the JAX documentation after having installed ADAM:

pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html 

@stergiosba
Copy link
Author

Personally I am aware of the installation process for using the GPU with Jax. I just wanted to point this out so that others are not confused when their code is not as fast as they hoped.

@traversaro
Copy link
Contributor

traversaro commented Nov 9, 2023

Personally I am aware of the installation process for using the GPU with Jax. I just wanted to point this out so that others are not confused when their code is not as fast as they hoped.

Good point, would you be interested (if it is ok for the mantainer @Giulero) to add a sentence in the readme warning about this and perhaps linking to https://github.com/google/jax#instructions or https://jax.readthedocs.io/en/latest/installation.html#pip-installation-gpu-cuda-installed-via-pip-easier ?

@Giulero
Copy link
Collaborator

Giulero commented Nov 9, 2023

Thanks @stergiosba for opening the issue! @flferretti is right.
Yes @traversaro, I agree!

@Giulero
Copy link
Collaborator

Giulero commented Jun 19, 2024

I guess this is solved. Closing!

@Giulero Giulero closed this as completed Jun 19, 2024
@traversaro
Copy link
Contributor

As an additional info for anyone finding this via Google, since ~May 2025 the jax package on conda-forge on Linux amd64 by default installs a working GPU-enabled jax, i.e.:

conda create -n adamjax -c conda-forge adam-robotics jax

on a linux-64 system with a working NVIDIA driver installation install a GPU-power jax out of the box.

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