Installing JAX with gpu/tpu support using poetry
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Issue
Hi everyone,
I am installing JAX using poetry. I run the command poetry add jax
and it works fine but this installs the cpu version, as expected. To install the gpu/tpu version of JAX the documentation indicates that I have to run:
pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_releases.html
pip install "jax[tpu]>=0.2.16" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
I understand I could run this specific command in my environment, but if I do this, I believe, it is not handled well by poetry. Is there a more poetry
way of installing JAX for gpu/tpu ?
Thank you for the help 😃
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Building from source - JAX documentation
You can install the necessary Python dependencies using pip : pip install numpy wheel. To build jaxlib without CUDA GPU or TPU support...
Read more >Jax — Numpy on GPUs and TPUs - Towards Data Science
This command will only install the CPU support for us to test our code. If you want to install the GPU support, use:...
Read more >How to install trax, jax, jaxlib on M1 Mac on macOS 12?
This should allow you to install jax using ... poetry shell # to go to virtual environment for the project pip install --upgrade...
Read more >Quickstart: Run a calculation on a Cloud TPU VM using JAX
Learn how to run a calculation on a Cloud TPU VM by using JAX and the Google Cloud CLI. ... For more information,...
Read more >Model Zoo - Deep learning code and pretrained models for ...
JAX -RS & SpringMVC supported maven build plugin, helps you generate Swagger JSON and API ... Pytorch Poetry Generation ... pip install -r...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
here is the
.toml
file I have:and
.lock
Nice, thank you for your help. Looking forward for this feature to be merged !