diff --git a/src/sagemaker/image_uri_config/pytorch.json b/src/sagemaker/image_uri_config/pytorch.json index c913ebe0fa..03ade1d58d 100644 --- a/src/sagemaker/image_uri_config/pytorch.json +++ b/src/sagemaker/image_uri_config/pytorch.json @@ -4,7 +4,8 @@ "cpu" ], "version_aliases": { - "1.3": "1.3.1" + "1.3": "1.3.1", + "1.5": "1.5.1" }, "versions": { "1.3.1": { @@ -12,8 +13,6 @@ "py3" ], "registries": { - "af-south-1": "626614931356", - "ap-east-1": "871362719292", "ap-northeast-1": "763104351884", "ap-northeast-2": "763104351884", "ap-northeast-3": "364406365360", @@ -26,16 +25,22 @@ "eu-central-1": "763104351884", "eu-north-1": "763104351884", "eu-west-1": "763104351884", - "eu-west-2": "763104351884", - "eu-west-3": "763104351884", - "eu-south-1": "692866216735", - "me-south-1": "217643126080", - "sa-east-1": "763104351884", "us-east-1": "763104351884", "us-east-2": "763104351884", - "us-gov-west-1": "442386744353", - "us-iso-east-1": "886529160074", - "us-west-1": "763104351884", + "us-west-2": "763104351884" + }, + "repository": "pytorch-inference-eia" + }, + "1.5.1": { + "py_versions": [ + "py3" + ], + "registries": { + "ap-northeast-1": "763104351884", + "ap-northeast-2": "763104351884", + "eu-west-1": "763104351884", + "us-east-1": "763104351884", + "us-east-2": "763104351884", "us-west-2": "763104351884" }, "repository": "pytorch-inference-eia" diff --git a/tests/unit/sagemaker/image_uris/test_dlc_frameworks.py b/tests/unit/sagemaker/image_uris/test_dlc_frameworks.py index bccaf53d14..f09575d5aa 100644 --- a/tests/unit/sagemaker/image_uris/test_dlc_frameworks.py +++ b/tests/unit/sagemaker/image_uris/test_dlc_frameworks.py @@ -42,6 +42,14 @@ "us-gov-west-1": "246785580436", "us-iso-east-1": "744548109606", } +ELASTIC_INFERENCE_REGIONS = [ + "ap-northeast-1", + "ap-northeast-2", + "eu-west-1", + "us-east-1", + "us-east-2", + "us-west-2", +] def _test_image_uris( @@ -385,8 +393,9 @@ def test_pytorch_eia(pytorch_eia_version, pytorch_eia_py_version): ) assert expected == uri - for region, account in DLC_ALTERNATE_REGION_ACCOUNTS.items(): + for region in ELASTIC_INFERENCE_REGIONS: uri = image_uris.retrieve(region=region, **base_args) + account = DLC_ALTERNATE_REGION_ACCOUNTS.get(region, DLC_ACCOUNT) expected = expected_uris.framework_uri( "pytorch-inference-eia",