File tree 3 files changed +7
-5
lines changed 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ FROM $BASE_IMAGE
6
6
# See: https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
7
7
ARG PYTHON_WHEEL_VERSION
8
8
ARG PYTHON_VERSION_PATH
9
+ ARG TENSORFLOW_VERSION
9
10
ARG TORCH_LINUX_WHEEL_VERSION
10
11
ARG TORCH_VERSION
11
12
ARG TORCHVISION_VERSION
@@ -61,9 +62,9 @@ RUN envsubst < /kaggle_requirements.txt > /requirements.txt
61
62
62
63
# Install uv and then install the requirements:
63
64
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
64
- RUN export PATH="${HOME}/.local/bin:${PATH}" && uv pip install --system -r /requirements.txt --prerelease=allow --find-links https://storage.googleapis.com/jax-releases/libtpu_releases.html && \
65
+ RUN export PATH="${HOME}/.local/bin:${PATH}" && uv pip install --system -r /requirements.txt --prerelease=allow --force-reinstall && \
65
66
/tmp/clean-layer.sh
66
- ENV PATH="${HOME} /.local/bin:${PATH}"
67
+ ENV PATH="~ /.local/bin:${PATH}"
67
68
68
69
# Kaggle Model Hub patches:
69
70
ADD patches/kaggle_module_resolver.py /usr/local/lib/${PYTHON_VERSION_PATH}/site-packages/tensorflow_hub/kaggle_module_resolver.py
Original file line number Diff line number Diff line change 1
1
BASE_IMAGE=python:3.10
2
2
PYTHON_WHEEL_VERSION=cp310
3
3
PYTHON_VERSION_PATH=python3.10
4
- TF_LINUX_WHEEL_VERSION=manylinux_2_17_x86_64.manylinux2014_x86_64
4
+ TENSORFLOW_VERSION=2.18.0
5
5
# gsutil ls gs://pytorch-xla-releases/wheels/tpuvm/* | grep libtpu | grep torch_xla | grep -v -E ".*rc[0-9].*" | sed 's/.*torch_xla-\(.*\)+libtpu.*/\1/' | sort -rV
6
6
# Supports nightly
7
7
TORCH_VERSION=2.5.0
Original file line number Diff line number Diff line change 1
1
# TPU Utils
2
2
tpu-info
3
3
# Tensorflow packages
4
- tensorflow-tpu >= 2.18.0
5
- -f https://storage.googleapis.com/libtpu-tf-releases/index.html
4
+ tensorflow-tpu >=${TENSORFLOW_VERSION}
5
+ --find-links https://storage.googleapis.com/libtpu-tf-releases/index.html
6
6
tensorflow_hub
7
7
tensorflow-io
8
8
tensorflow-probability
@@ -13,6 +13,7 @@ torchaudio==${TORCHAUDIO_VERSION}
13
13
torchvision ==${TORCHVISION_VERSION}
14
14
# Jax packages
15
15
jax [tpu ]>= 0.4.34
16
+ --find-links https://storage.googleapis.com/jax-releases/libtpu_releases.html
16
17
distrax
17
18
flax
18
19
git+https://github.com/deepmind/dm-haiku
You can’t perform that action at this time.
0 commit comments