Skip to content

Commit c62ce81

Browse files
jbarz1John Barbozaajaykarpurahsan-z-khan
authored
feature: add pytorch 1.5.1 eia configuration (#2441)
Co-authored-by: John Barboza <[email protected]> Co-authored-by: Ajay Karpur <[email protected]> Co-authored-by: Ahsan Khan <[email protected]>
1 parent e521b87 commit c62ce81

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

src/sagemaker/image_uri_config/pytorch.json

+16-11
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
44
"cpu"
55
],
66
"version_aliases": {
7-
"1.3": "1.3.1"
7+
"1.3": "1.3.1",
8+
"1.5": "1.5.1"
89
},
910
"versions": {
1011
"1.3.1": {
1112
"py_versions": [
1213
"py3"
1314
],
1415
"registries": {
15-
"af-south-1": "626614931356",
16-
"ap-east-1": "871362719292",
1716
"ap-northeast-1": "763104351884",
1817
"ap-northeast-2": "763104351884",
1918
"ap-northeast-3": "364406365360",
@@ -26,16 +25,22 @@
2625
"eu-central-1": "763104351884",
2726
"eu-north-1": "763104351884",
2827
"eu-west-1": "763104351884",
29-
"eu-west-2": "763104351884",
30-
"eu-west-3": "763104351884",
31-
"eu-south-1": "692866216735",
32-
"me-south-1": "217643126080",
33-
"sa-east-1": "763104351884",
3428
"us-east-1": "763104351884",
3529
"us-east-2": "763104351884",
36-
"us-gov-west-1": "442386744353",
37-
"us-iso-east-1": "886529160074",
38-
"us-west-1": "763104351884",
30+
"us-west-2": "763104351884"
31+
},
32+
"repository": "pytorch-inference-eia"
33+
},
34+
"1.5.1": {
35+
"py_versions": [
36+
"py3"
37+
],
38+
"registries": {
39+
"ap-northeast-1": "763104351884",
40+
"ap-northeast-2": "763104351884",
41+
"eu-west-1": "763104351884",
42+
"us-east-1": "763104351884",
43+
"us-east-2": "763104351884",
3944
"us-west-2": "763104351884"
4045
},
4146
"repository": "pytorch-inference-eia"

tests/unit/sagemaker/image_uris/test_dlc_frameworks.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@
4242
"us-gov-west-1": "246785580436",
4343
"us-iso-east-1": "744548109606",
4444
}
45+
ELASTIC_INFERENCE_REGIONS = [
46+
"ap-northeast-1",
47+
"ap-northeast-2",
48+
"eu-west-1",
49+
"us-east-1",
50+
"us-east-2",
51+
"us-west-2",
52+
]
4553

4654

4755
def _test_image_uris(
@@ -385,8 +393,9 @@ def test_pytorch_eia(pytorch_eia_version, pytorch_eia_py_version):
385393
)
386394
assert expected == uri
387395

388-
for region, account in DLC_ALTERNATE_REGION_ACCOUNTS.items():
396+
for region in ELASTIC_INFERENCE_REGIONS:
389397
uri = image_uris.retrieve(region=region, **base_args)
398+
account = DLC_ALTERNATE_REGION_ACCOUNTS.get(region, DLC_ACCOUNT)
390399

391400
expected = expected_uris.framework_uri(
392401
"pytorch-inference-eia",

0 commit comments

Comments
 (0)