Skip to content

Commit a77e0e5

Browse files
authored
merge two pip install
1 parent 4737acd commit a77e0e5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

huggingface/pytorch/training/docker/2.7/py3/sdk2.24.1/Dockerfile.neuronx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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
3940
RUN 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.
5759
RUN 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-
6562
RUN apt-get update \
6663
&& apt install -y --no-install-recommends \
6764
git-lfs \

0 commit comments

Comments
 (0)