Skip to content

Commit 7901f6b

Browse files
authored
Onboard PT 2.6 ARM64 Inference EC2 to autopatch (#4621)
* turn on autopatch and test * revert temp changes
1 parent 5322713 commit 7901f6b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pytorch/inference/buildspec-arm64-2-6-ec2.yml

+1-1
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: arm64
8-
# autopatch_build: "True"
8+
autopatch_build: "True"
99

1010
repository_info:
1111
inference_repository: &INFERENCE_REPOSITORY

test/test_utils/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ def get_ami_id_boto3(region_name, ami_name_pattern, IncludeDeprecated=False):
5858
Owners=["amazon"],
5959
IncludeDeprecated=IncludeDeprecated,
6060
)
61+
if not ami_list["Images"]:
62+
raise RuntimeError(f"Unable to find AMI with pattern {ami_name_pattern}")
6163

6264
# NOTE: Hotfix for fetching latest DLAMI before certain creation date.
6365
# replace `ami_list["Images"]` with `filtered_images` in max() if needed.

0 commit comments

Comments
 (0)