Skip to content

Commit 48bf00c

Browse files
DevakiBolleneniDevakiBolleneni
andauthored
Patch PT 2.7 (SM, EC2, ARM64) , 2.8 (EC2 ) Training Images (#5614)
* rebuild PT 2.8 Training SM Image * rebuild PT 2.8 Training SM Image * rebuild PT 2.8 Training SM Image * rebuild PT 2.8 Training SM Image * rebuild PT 2.8 Training EC2 Image * rebuild PT 2.7 Training SM Image * rebuild PT 2.7 Training EC2 Image * run tests for PT 2.7 TR EC2 * rebuild PT 2.7 Training EC2 Image * rebuild PT 2.7 Training EC2 Image * rebuild PT 2.7 TR ARM64 EC2 IMAGE * rebuild PT 2.7 TR ARM64 EC2 IMAGE * revert toml file * add image specific allowlist * PT 2.7 TR SM * PT 2.7 SM TR * PT 2.7 EC2 TR * PT 2.8 EC2 TR * PT 2.8 SM TR * PT 2.8 SM TR * PT 2.8 SM TR * PT 2.8 SM TR * PT 2.8 SM TR * PT 2.8 SM TR * PT 2.8 SM TR * PT 2.8 SM TR * PT 2.8 SM TR * PT 2.8 SM TR * PT 2.7 EC2 ARM TR * revert toml file changes and pt 2.8 sm changes --------- Co-authored-by: DevakiBolleneni <devakib@amazon.com>
1 parent a66e749 commit 48bf00c

12 files changed

+43
-9
lines changed

pytorch/training/buildspec-arm64-2-7-ec2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ framework: &FRAMEWORK pytorch
55
version: &VERSION 2.7.0
66
short_version: &SHORT_VERSION "2.7"
77
arch_type: arm64
8-
autopatch_build: "True"
8+
#autopatch_build: "True"
99

1010
repository_info:
1111
training_repository: &TRAINING_REPOSITORY

pytorch/training/docker/2.7/py3/Dockerfile.cpu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,12 @@ RUN pip install --no-cache-dir \
182182
"idna>=3.7" \
183183
"tqdm>=4.66.3" \
184184
"requests>=2.32.0" \
185-
"setuptools>=70.0.0" \
185+
"setuptools>=75.0.0" \
186186
"urllib3>=2.5.0" \
187+
"pyasn1>=0.6.2" \
188+
"wheel>=0.46.2" \
189+
pytz \
190+
tzdata \
187191
"awscli<2" \
188192
"opencv-python==4.11.0.86" \
189193
mpi4py \
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"85151": "DoS vulnerability in protobuf <=6.33.4. Fix requires protobuf>6.33.4, but SageMaker SDK 2.9.0-3.0 constraint protobuf<6.32 prevents upgrade. This is SageMaker-specific and does not affect EC2 images."
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"85151": "DoS vulnerability in protobuf <=6.33.4. Fix requires protobuf>6.33.4, but SageMaker SDK 2.9.0-3.0 constraint protobuf<6.32 prevents upgrade. This is SageMaker-specific and does not affect EC2 images."
3+
}

pytorch/training/docker/2.7/py3/cu128/Dockerfile.arm64.gpu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ RUN python -m pip install --upgrade pip --trusted-host pypi.org --trusted-host f
187187

188188
# Install pip packages
189189
RUN pip install --no-cache-dir \
190+
"setuptools>=75.0.0" \
190191
cython \
191192
boto3 \
192193
scipy \

pytorch/training/docker/2.7/py3/cu128/Dockerfile.gpu

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ RUN chmod +x /usr/local/bin/bash_telemetry.sh \
5757

5858
RUN pip install --no-cache-dir \
5959
numpy \
60-
"setuptools>=70.0.0" \
60+
"setuptools>=75.0.0" \
6161
ninja \
6262
cython \
6363
pybind11 \
@@ -137,6 +137,10 @@ RUN pip install --no-cache-dir \
137137
"tqdm>=4.66.3" \
138138
"requests>=2.32.0" \
139139
"urllib3>=2.5.0" \
140+
"pyasn1>=0.6.2" \
141+
"wheel>=0.46.2" \
142+
pytz \
143+
tzdata \
140144
"awscli>=1.42.14,<2" \
141145
# opencv-python 4.12.0.88 reuqires numpy<2.3.0, which is not compatible with previous prod image(2.3.1)
142146
"opencv-python==4.11.0.86" \
@@ -235,4 +239,4 @@ RUN bash setup_oss_compliance.sh ${PYTHON} && rm setup_oss_compliance.sh
235239
RUN rm -rf /root/.cache | true
236240

237241
ENTRYPOINT ["bash", "-m", "start_with_right_hostname.sh"]
238-
CMD ["/bin/bash"]
242+
CMD ["/bin/bash"]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"85151": "DoS vulnerability in protobuf <=6.33.4. Fix requires protobuf>6.33.4, but SageMaker SDK 2.9.0-3.0 constraint protobuf<6.32 prevents upgrade. This is SageMaker-specific and does not affect EC2 images."
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"85151": "DoS vulnerability in protobuf <=6.33.4. Fix requires protobuf>6.33.4, but SageMaker SDK 2.9.0-3.0 constraint protobuf<6.32 prevents upgrade. This is SageMaker-specific and does not affect EC2 images."
3+
}

pytorch/training/docker/2.8/py3/Dockerfile.cpu

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,12 @@ RUN pip install --no-cache-dir \
186186
"idna>=3.7" \
187187
"tqdm>=4.66.3" \
188188
"requests>=2.32.0" \
189-
"setuptools>=70.0.0" \
189+
"setuptools>=75.0.0" \
190190
"urllib3>=2.5.0" \
191+
"pyasn1>=0.6.2" \
192+
"wheel>=0.46.2" \
193+
pytz \
194+
tzdata \
191195
awscli \
192196
opencv-python==4.11.0.86 \
193197
mpi4py \
@@ -288,7 +292,7 @@ RUN pip install --no-cache-dir -U \
288292
sagemaker-pytorch-training \
289293
sagemaker-training \
290294
# Add sniffio explicitly as it's not included in sagemaker==2.254.1 dependencies
291-
sniffio
295+
sniffio
292296

293297
# Install extra packages
294298
RUN pip install --no-cache-dir -U \
@@ -314,4 +318,3 @@ RUN bash setup_oss_compliance.sh ${PYTHON} && rm setup_oss_compliance.sh
314318

315319
ENTRYPOINT ["bash", "-m", "start_with_right_hostname.sh"]
316320
CMD ["/bin/bash"]
317-
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"85151": "DoS vulnerability in protobuf <=6.33.4. Fix requires protobuf>6.33.4, but SageMaker SDK 2.254.1 constrains protobuf. This is SageMaker-specific and does not affect EC2 images."
3+
}

0 commit comments

Comments
 (0)