Skip to content

Commit

Permalink
Pin jax to fix tensorflowjs issue (#1348)
Browse files Browse the repository at this point in the history
http://b/316967430
  • Loading branch information
rosbo authored Jan 9, 2024
1 parent b793084 commit a150398
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,12 @@ RUN pip install lightgbm==$LIGHTGBM_VERSION && \
{{ end }}

# Install JAX
# b/316967430 Remove pin once new version of tensorflowjs is released (> 4.15.0)
{{ if eq .Accelerator "gpu" }}
RUN pip install "jax[cuda11_local]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html && \
RUN pip install "jax[cuda11_local]==0.4.21" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html && \
/tmp/clean-layer.sh
{{ else }}
RUN pip install jax[cpu] && \
RUN pip install jax[cpu]==0.4.21 && \
/tmp/clean-layer.sh
{{ end }}

Expand Down

0 comments on commit a150398

Please sign in to comment.