Skip to content

Commit b829b61

Browse files
Add JAX with CUDA recipe (#2474)
* Add JAX with CUDA recipe Closes #2471 * Re-trigger CI * Use canonical JAX docs URL to avoid linkcheck redirect warning --------- Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
1 parent a6c22ff commit b829b61

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ARG BASE_IMAGE=quay.io/jupyter/base-notebook
2+
FROM $BASE_IMAGE
3+
4+
RUN pip install -v --no-cache-dir 'jax[cuda13]' && \
5+
fix-permissions "${CONDA_DIR}" && \
6+
fix-permissions "/home/${NB_USER}"

docs/using/recipes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,16 @@ You can find the original Jupyter Notebook extension [here](https://github.com/d
121121
:language: docker
122122
```
123123

124+
## JAX with CUDA
125+
126+
[JAX](https://docs.jax.dev/en/latest/) GPU support via the bundled NVIDIA CUDA wheels.
127+
Run with `--gpus all` and a host NVIDIA driver new enough for CUDA 13.
128+
For CUDA 12 instead, swap `jax[cuda13]` for `jax[cuda12]`.
129+
130+
```{literalinclude} recipe_code/jax_cuda.dockerfile
131+
:language: docker
132+
```
133+
124134
## Running behind an nginx proxy
125135

126136
```{warning}

0 commit comments

Comments
 (0)