Skip to content

Commit 6789518

Browse files
committed
some more
1 parent 478fa7b commit 6789518

3 files changed

Lines changed: 4 additions & 38 deletions

File tree

Dockerfile.tmpl

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ FROM ${BASE_IMAGE}:${BASE_IMAGE_TAG}
66
ADD kaggle_requirements.txt /kaggle_requirements.txt
77

88
# Freeze existing requirements from base image for critical packages:
9-
RUN pip freeze | grep -E 'tensorflow|keras|torch|jax' > /colab_requirements.txt
9+
RUN pip freeze | grep -E 'tensorflow|keras|torch|jax|numpy' > /colab_requirements.txt
1010

1111
# Merge requirements files:
1212
RUN cat /colab_requirements.txt >> /requirements.txt
@@ -29,31 +29,14 @@ RUN uv pip install --system --force-reinstall --prerelease=allow "kagglehub[pand
2929
# to avoid affecting the larger build, we'll post-install it.
3030
RUN uv pip install --no-build-isolation --system "git+https://github.com/Kaggle/learntools"
3131

32-
# b/408281617: Torch is adamant that it can not install cudnn 9.3.x, only 9.1.x, but Tensorflow can only support 9.3.x.
33-
# This conflict causes a number of package downgrades, which are handled in this command
34-
RUN uv pip install \
35-
--index-url https://pypi.nvidia.com --extra-index-url https://pypi.org/simple/ --index-strategy unsafe-first-match \
36-
--system --force-reinstall "cuml-cu12==25.2.1" \
37-
"nvidia-cudnn-cu12==9.3.0.75" "nvidia-cublas-cu12==12.5.3.2" "nvidia-cusolver-cu12==11.6.3.83" \
38-
"nvidia-cuda-cupti-cu12==12.5.82" "nvidia-cuda-nvrtc-cu12==12.5.82" "nvidia-cuda-runtime-cu12==12.5.82" \
39-
"nvidia-cufft-cu12==11.2.3.61" "nvidia-curand-cu12==10.3.6.82" "nvidia-cusparse-cu12==12.5.1.3" \
40-
"nvidia-nvjitlink-cu12==12.5.82"
41-
RUN uv pip install --system --force-reinstall "pynvjitlink-cu12==0.5.2"
42-
43-
# b/385145217 Latest Colab lacks mkl numpy, install it.
44-
# RUN uv pip install --system --force-reinstall --index-url https://pypi.anaconda.org/intel/simple numpy==2.0
45-
# RUN uv pip install --system --force-reinstall -i https://pypi.anaconda.org/intel/simple numpy
46-
# https://software.repos.intel.com/python/pypi
47-
4832
# newer daal4py requires tbb>=2022, but libpysal is downgrading it for some reason
4933
RUN uv pip install --system "tbb>=2022" "libpysal==4.9.2"
5034

5135
# b/404590350: Ray and torchtune have conflicting tune cli, we will prioritize torchtune.
5236
# b/415358158: Gensim removed from Colab image to upgrade scipy
5337
# b/456239669: remove huggingface-hub pin when pytorch-lighting and transformer are compatible
5438
# b/315753846: Unpin translate package, currently conflicts with adk 1.17.0
55-
RUN uv pip install --system --force-reinstall --no-deps torchtune gensim "scipy<=1.15.3" "huggingface-hub==0.36.0" "google-cloud-translate==3.12.1"
56-
39+
RUN uv pip install --system --force-reinstall --no-deps torchtune gensim "scipy<=1.15.3" "huggingface-hub==0.36.0" "google-cloud-translate==3.12.1" "numpy==2.0.2"
5740

5841
RUN uv pip install --system --force-reinstall "protobuf==5.29.5"
5942

kaggle_requirements.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ fiona
3939
fury
4040
fuzzywuzzy
4141
geojson
42-
# geopandas > v0.14.4 breaks learn tools
43-
geopandas==v0.14.4
4442
gensim
4543
# b/443054743,b/455550872
4644
google-adk[a2a,eval]
@@ -132,7 +130,6 @@ squarify
132130
tensorflow-cloud
133131
tensorflow-io
134132
tensorflow-text
135-
tensorflow_decision_forests
136133
torchinfo
137134
torchmetrics
138135
torchtune
@@ -145,3 +142,5 @@ xvfbwrapper
145142
ydata-profiling
146143
ydf
147144
protobuf==5.29.5
145+
numpy==2.0.2
146+
statsmodels==0.14.6

tests/test_geopandas.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)