@@ -6,15 +6,12 @@ FROM ${BASE_IMAGE}:${BASE_IMAGE_TAG}
66ADD 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|numpy ' > /colab_requirements.txt
9+ RUN pip freeze | grep -E 'tensorflow|keras|torch|jax' > /colab_requirements.txt
1010
1111# Merge requirements files:
1212RUN cat /colab_requirements.txt >> /requirements.txt
1313RUN cat /kaggle_requirements.txt >> /requirements.txt
1414
15- # TODO: GPU requirements.txt
16- # TODO: merge them better (override matching ones).
17-
1815# Install Kaggle packages
1916RUN uv pip install --system -r /requirements.txt
2017
@@ -36,8 +33,10 @@ RUN uv pip install --system "tbb>=2022" "libpysal==4.9.2"
3633# b/415358158: Gensim removed from Colab image to upgrade scipy
3734# b/456239669: remove huggingface-hub pin when pytorch-lighting and transformer are compatible
3835# b/315753846: Unpin translate package, currently conflicts with adk 1.17.0
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"
40-
36+ # b/(xxxxx): Unpin Pandas once cuml/cudf are compatible, version 3.0 causes issues
37+ # b/(xxxxx): Unpin protobuf, v > 5.29.5 causes issues with numerous packages
38+ # b/(xxxxx): numpy will auto-upgrade to 2.4.x, which causes issues with numerous packages
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" "pandas==2.2.2"
4140RUN uv pip install --system --force-reinstall "protobuf==5.29.5"
4241
4342# Adding non-package dependencies:
0 commit comments