@@ -210,6 +210,8 @@ ADD patches/keras_internal.py \
210210# b/350573866: xgboost v2.1.0 breaks learntools
211211RUN apt-get install -y libfreetype6-dev && \
212212 apt-get install -y libglib2.0-0 libxext6 libsm6 libxrender1 libfontconfig1 --fix-missing && \
213+ rm -rf /opt/conda/lib/python3.10/site-packages/numpy* && \
214+ pip install "numpy==1.26.4" && \
213215 pip install gensim \
214216 textblob \
215217 wordcloud \
@@ -425,8 +427,7 @@ RUN pip install bleach \
425427 webencodings \
426428 widgetsnbextension \
427429 # Require pyarrow newer than https://github.com/advisories/GHSA-5wvp-7f3h-6wmm
428- {{ if eq .Accelerator "gpu" }} pyarrow {{ else }} "pyarrow>=14.0.1" {{ end }} \
429- fastai
430+ {{ if eq .Accelerator "gpu" }} pyarrow {{ else }} "pyarrow>=14.0.1" {{ end }}
430431
431432RUN python -m spacy download en_core_web_sm && python -m spacy download en_core_web_lg && \
432433 apt-get update && apt-get install -y ffmpeg && \
@@ -470,7 +471,8 @@ RUN pip install wandb \
470471 Rtree \
471472 accelerate && \
472473 apt-get -y install libspatialindex-dev && \
473- rm -rf /opt/conda/lib/python3.10/site-packages/numpy* && \
474+ # b/370860329: newer versions are not capable with current tensorflow
475+ rm -rf /opt/conda/lib/python3.10/site-packages/numpy* && \
474476 pip install "numpy==1.26.4" && \
475477 pip install pytorch-ignite \
476478 qgrid \
@@ -501,6 +503,8 @@ RUN pip install wandb \
501503 timm \
502504 torchinfo && \
503505 pip install git+https://github.com/facebookresearch/segment-anything.git && \
506+ # b/370860329: newer versions are not capable with current tensorflow
507+ pip install --no-dependencies fastai fastdownload && \
504508 # b/343971718: remove duplicate aiohttp installs, and reinstall it
505509 rm -rf /opt/conda/lib/python3.10/site-packages/aiohttp* && \
506510 mamba install --force-reinstall -y aiohttp && \
0 commit comments