File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,15 @@ COPY --from=libtpu /libtpu.so /lib
12
12
13
13
COPY --from=tensorflow_whl /tmp/tensorflow_pkg/tensorflow*.whl /tmp/tensorflow_pkg/
14
14
RUN pip install /tmp/tensorflow_pkg/tensorflow*.whl && \
15
- rm -rf /tmp/tensorflow_pkg
15
+ rm -rf /tmp/tensorflow_pkg && \
16
+ /tmp/clean-layer.sh
16
17
17
18
# https://cloud.google.com/tpu/docs/pytorch-xla-ug-tpu-vm#changing_pytorch_version
18
- RUN pip uninstall -y torch
19
- RUN pip uninstall -y torch_xla
20
- RUN pip install torch== 1.10
21
- RUN pip install torch_xla[tpuvm] -f https://storage.googleapis.com/tpu-pytorch/wheels/tpuvm/torch_xla-1.10-cp37-cp37m-linux_x86_64.whl
19
+ RUN pip uninstall -y torch && \
20
+ pip install torch==1.10 && \
21
+ pip install torch_xla[tpuvm] -f https://storage.googleapis.com/tpu-pytorch/wheels/tpuvm/torch_xla- 1.10-cp37-cp37m-linux_x86_64.whl && \
22
+ /tmp/clean-layer.sh
22
23
23
24
# https://cloud.google.com/tpu/docs/jax-quickstart-tpu-vm#install_jax_on_your_cloud_tpu_vm
24
- RUN pip install "jax[tpu]>=0.2.16" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
25
+ RUN pip install "jax[tpu]>=0.2.16" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html && \
26
+ /tmp/clean-layer.sh
You can’t perform that action at this time.
0 commit comments