Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ RUN pip install lightgbm==$LIGHTGBM_VERSION && \

# Install JAX
{{ if eq .Accelerator "gpu" }}
RUN pip install jax[cuda11_cudnn805] -f https://storage.googleapis.com/jax-releases/jax_releases.html && \
RUN pip install jax[cuda11_cudnn805] -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html && \
/tmp/clean-layer.sh
{{ else }}
RUN pip install jax[cpu] && \
Expand Down
3 changes: 2 additions & 1 deletion tests/test_jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import time

import jax
import jax.numpy as np

from common import gpu_test
Expand All @@ -21,4 +22,4 @@ def test_grad(self):

def test_backend(self):
expected_backend = 'cpu' if len(os.environ.get('CUDA_VERSION', '')) == 0 else 'gpu'

self.assertEqual(expected_backend, jax.default_backend())