File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
huggingface/pytorch/training/docker/2.7/py3/sdk2.24.1 Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ RUN pip install --no-cache-dir \
3636
3737# Pin numpy to version required by neuronx-cc
3838# Update Pillow, urllib, wandb versions to fix high and critical vulnerabilities
39+ # neuronx-cc has requirement networkx~=2.6
3940RUN pip install -U \
4041 "tensorboard>=2.11.0" \
4142 "numpy>=1.24.3,<=1.25.2" \
@@ -51,17 +52,13 @@ RUN pip install -U \
5152 boto3 \
5253 botocore \
5354 google-auth \
54- "urllib3>=1.26.17,<1.27"
55+ "urllib3>=1.26.17,<1.27" \
56+ "networkx==2.6.3"
5557
5658# pytorch-lightning has critical vulnerabilities and is not needed in the container.
5759RUN rm -f /requirements.txt && \
5860 pip uninstall pytorch-lightning -y
5961
60- # We have this error from `pip check`:
61- # neuronx-cc 2.16.345.0+69131dd3 has requirement networkx~=2.6, but you have networkx 3.4.2.
62- # To fix that, we are downgrading networkx to 2.6.3
63- RUN pip install -U "networkx==2.6.3"
64-
6562RUN apt-get update \
6663 && apt install -y --no-install-recommends \
6764 git-lfs \
You can’t perform that action at this time.
0 commit comments