Skip to content

Commit bc9e6bf

Browse files
Yadan-WeiYadan Wei
andauthored
Onboard PT INF to autopatch (#5068)
* build PT25 INF EC2 * build PT25 INF SM * format json file * build PT2.5 INF EC2 * build PT2.6 INF EC2 * format file * build PT26 INF SM * revert toml --------- Co-authored-by: Yadan Wei <[email protected]>
1 parent 1225582 commit bc9e6bf

11 files changed

+28
-9
lines changed

miscellaneous_scripts/dockerfile_patch_script.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ if [[ $LATEST_RELEASED_IMAGE_URI =~ ^763104351884\.dkr\.ecr\.us-west-2\.amazonaw
4040
chmod +x /usr/local/bin/dockerd-entrypoint.py
4141
fi
4242

43-
# For PT 2.4, 2.5 and 2.6 inference, install openssh-client to make mpi4py working
44-
if [[ $LATEST_RELEASED_IMAGE_URI =~ ^763104351884\.dkr\.ecr\.us-west-2\.amazonaws\.com/pytorch-inference:2\.[4-6]\.[0-9]+-gpu ]]; then
45-
apt update && apt install -y --no-install-recommends openssh-client openssh-server && echo "Installed openssh-client openssh-server"
46-
fi
47-
4843
# For PT 2.6, 2.7, rerun license file
4944
if [[ $LATEST_RELEASED_IMAGE_URI =~ ^763104351884\.dkr\.ecr\.us-west-2\.amazonaws\.com/pytorch-(.+):2\.6 ]]; then
5045
curl -o /license.txt https://aws-dlc-licenses.s3.amazonaws.com/pytorch-2.6/license.txt

pytorch/inference/buildspec-2-5-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.5.1
66
short_version: &SHORT_VERSION "2.5"
77
arch_type: x86
8-
#autopatch_build: "True"
8+
autopatch_build: "True"
99

1010
repository_info:
1111
inference_repository: &INFERENCE_REPOSITORY

pytorch/inference/buildspec-2-5-sm.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.5.1
66
short_version: &SHORT_VERSION "2.5"
77
arch_type: x86
8-
# autopatch_build: "True"
8+
autopatch_build: "True"
99

1010
repository_info:
1111
inference_repository: &INFERENCE_REPOSITORY

pytorch/inference/buildspec-2-6-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.6.0
66
short_version: &SHORT_VERSION "2.6"
77
arch_type: x86
8-
# autopatch_build: "True"
8+
autopatch_build: "True"
99

1010
repository_info:
1111
inference_repository: &INFERENCE_REPOSITORY

pytorch/inference/buildspec-2-6-sm.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.6.0
66
short_version: &SHORT_VERSION "2.6"
77
arch_type: x86
8-
# autopatch_build: "True"
8+
autopatch_build: "True"
99

1010
repository_info:
1111
inference_repository: &INFERENCE_REPOSITORY

pytorch/inference/docker/2.5/py3/Dockerfile.ec2.cpu.core_packages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@
2626
},
2727
"torch-model-archiver": {
2828
"version_specifier": "==0.12.0"
29+
},
30+
"urllib3": {
31+
"version_specifier": ">=2.5.0"
2932
}
3033
}

pytorch/inference/docker/2.5/py3/Dockerfile.sagemaker.cpu.core_packages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@
2929
},
3030
"sagemaker-pytorch-inference": {
3131
"version_specifier": "==2.0.25"
32+
},
33+
"urllib3": {
34+
"version_specifier": ">=2.5.0"
3235
}
3336
}

pytorch/inference/docker/2.5/py3/cu124/Dockerfile.ec2.gpu.core_packages.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,11 @@
2626
},
2727
"torch-model-archiver": {
2828
"version_specifier": "==0.12.0"
29+
},
30+
"urllib3": {
31+
"version_specifier": ">=2.5.0"
32+
},
33+
"triton": {
34+
"version_specifier": "==3.1.0"
2935
}
3036
}

pytorch/inference/docker/2.5/py3/cu124/Dockerfile.sagemaker.gpu.core_packages.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,11 @@
2929
},
3030
"sagemaker-pytorch-inference": {
3131
"version_specifier": "==2.0.25"
32+
},
33+
"urllib3": {
34+
"version_specifier": ">=2.5.0"
35+
},
36+
"triton": {
37+
"version_specifier": "==3.1.0"
3238
}
3339
}

pytorch/inference/docker/2.6/py3/cu124/Dockerfile.ec2.gpu.core_packages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@
3030
},
3131
"torch-model-archiver": {
3232
"version_specifier": "==0.12.0"
33+
},
34+
"triton": {
35+
"version_specifier": "==3.2.0"
3336
}
3437
}

0 commit comments

Comments
 (0)