question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: add jax[cudaversion] to pypi

See original GitHub issue

Hi there,

I’m not quite sure how people generally install the correct cuda version of jaxlib, but after some searching I found this notebook: https://www.kaggle.com/guillemkami/getting-started-with-nlp-using-jax It explains pretty well how to install the correct version compatible with your CUDA installation.

Now I was thinking, this process could be made much simpler by adding the different cuda versions to pypi. For instance, suppose my CUDA version is 10.1, then I install the right version of jaxlib by running:

$ pip3 install jaxlib[cuda101]

Or, in a CI/CD pipeline (like travis or github actions) I might choose to install the CPU version

$ pip3 install jaxlib[nocuda]

~I believe that the square brackets are treated as ordinary characters in pypi, which would mean that you can upload a new cuda version simply by registering a new package name with pypi.org.~ I had another look, they are added through the extras_require=... kwarg in setup.py.

Also, JAX is awesome, keep up the good work! -Kris

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
hawkinspcommented, Nov 13, 2020

It isn’t quite what this issue suggested, but note the GPU jaxlib installation should now be significantly simpler, see: https://github.com/google/jax#pip-installation

1reaction
hawkinspcommented, Jun 26, 2020

#3555 solves one of the problems (manylinux2010 compilance), but not all of them. The others are:

  • we would need a PyPi size limit exception
  • we would probably consider carefully how to structure our packages, if there are multiple variants that may potentially be installed at the same time.
Read more comments on GitHub >

github_iconTop Results From Across the Web

jax · PyPI
If you want to install JAX with both CPU and NVidia GPU support, you must first install CUDA and CuDNN, if they have...
Read more >
Building from source - JAX documentation
Visual Studio 2019 version 16.5 or newer is required. If you need to build with CUDA enabled, follow the CUDA Installation Guide to...
Read more >
Set up environment for JAX sampling with GPU support in ...
Set up environment for JAX sampling with GPU support in PyMC v4 · 1. Install Ubuntu 20.04.4 LTS (Focal Fossa) · 2. Install...
Read more >
List of supported software - EasyBuild documentation
lib3to2 is a set of fixers that are intended to backport code written for Python version 3.x into Python version 2.x. homepage: https://pypi.python.org/pypi/ ......
Read more >
Python, Performance, and GPUs - Towards Data Science
Numba: Compiling Python to CUDA ... The built-in operations in GPU libraries like CuPy and RAPIDS cover most common operations. However, in real- ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found