You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Templatized build & start from TF 2.6 base image. (#1078)
* Templatize build & start from TF base image.
- Build CPU & GPU images in parallel (faster build time)
- The GPU image is no longer layers on top of the CPU image (small GPU
image, simpler because no need to install CUDA ourselves)
- Upgrade TensorFlow to 2.6
http://b/167268016
* remove base-tag, re-org Jenkinsfile
* fix jenkinsfile
* remove blank lines
* Increase GPU build time
* install torchaudio/torchtext on GPU build
* Turn off KMP_AFFINITY logs
* remove horovod
* Move uninstall statement after clean-layer.sh has been added
* remove uninstsall lightgbm statement for gpu now that it's templatized
* Remove CPU & GPU Dockerfiles
* Remove duplicated code & resolved TODO
RUN pip install jax[cuda$CUDA_MAJOR_VERSION$CUDA_MINOR_VERSION]==$JAX_VERSION -f https://storage.googleapis.com/jax-releases/jax_releases.html && \
90
+
/tmp/clean-layer.sh
91
+
{{ else }}
92
+
RUN pip install jax[cpu]==$JAX_VERSION && \
93
+
/tmp/clean-layer.sh
94
+
{{ end }}
95
+
96
+
# Install mxnet
97
+
{{ if eq .Accelerator "gpu" }}
98
+
RUN pip install mxnet-cu$CUDA_MAJOR_VERSION$CUDA_MINOR_VERSION && \
99
+
/tmp/clean-layer.sh
100
+
{{ else }}
101
+
RUN pip install mxnet && \
102
+
/tmp/clean-layer.sh
103
+
{{ end}}
104
+
105
+
# Install GPU specific packages
106
+
{{ if eq .Accelerator "gpu" }}
107
+
# Install GPU-only packages
108
+
RUN pip install pycuda && \
109
+
pip install pynvrtc && \
110
+
# b/190622765 latest version is causing issue. nnabla fixed it in https://github.com/sony/nnabla/issues/892, waiting for new release before we can remove this pin.
@@ -384,11 +447,6 @@ RUN pip install flashtext && \
384
447
pip install geopandas && \
385
448
pip install nnabla && \
386
449
pip install vowpalwabbit && \
387
-
# papermill can replace nbconvert for executing notebooks
388
-
pip install cloud-tpu-client && \
389
-
# b/188429515#comment7 tensorflow-cloud >= 0.1.14 installs tensorflow-transform which install apache-beam which downgrades the google.cloud library to 1.x.
390
-
pip install tensorflow-cloud==0.1.13 && \
391
-
pip install tensorflow-datasets && \
392
450
pip install pydub && \
393
451
pip install pydegensac && \
394
452
# b/198635596 latest versions of torchmetrics & pytorch-lightning are failing at runtime.
@@ -401,8 +459,6 @@ RUN pip install flashtext && \
401
459
# pycrypto is used by competitions team.
402
460
pip install pycrypto && \
403
461
pip install easyocr && \
404
-
# Keep JAX version in sync with GPU image.
405
-
pip install jax[cpu]==0.2.19 && \
406
462
# ipympl adds interactive widget support for matplotlib
0 commit comments