Skip to content

Commit 9b3e2a1

Browse files
authored
feature: Add other Neo supported regions for Inferentia inference images (aws#2140)
1 parent d170f19 commit 9b3e2a1

File tree

4 files changed

+67
-4
lines changed

4 files changed

+67
-4
lines changed

src/sagemaker/image_uri_config/inferentia-mxnet.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,29 @@
55
"1.5.1": {
66
"py_versions": ["py3"],
77
"registries": {
8+
"af-south-1": "774647643957",
9+
"ap-east-1": "110948597952",
10+
"ap-northeast-1": "941853720454",
11+
"ap-northeast-2": "151534178276",
12+
"ap-south-1": "763008648453",
13+
"ap-southeast-1": "324986816169",
14+
"ap-southeast-2": "355873309152",
15+
"ca-central-1": "464438896020",
16+
"cn-north-1": "472730292857",
17+
"cn-northwest-1": "474822919863",
18+
"eu-central-1": "746233611703",
19+
"eu-north-1": "601324751636",
20+
"eu-south-1": "966458181534",
21+
"eu-west-1": "802834080501",
22+
"eu-west-2": "205493899709",
23+
"eu-west-3": "254080097072",
24+
"me-south-1": "836785723513",
25+
"sa-east-1": "756306329178",
826
"us-east-1": "785573368785",
9-
"us-west-2": "301217895009"
27+
"us-east-2": "007439368137",
28+
"us-gov-west-1": "263933020539",
29+
"us-west-1": "710691900526",
30+
"us-west-2": "301217895009"
1031
},
1132
"repository": "sagemaker-neo-mxnet"
1233
}

src/sagemaker/image_uri_config/inferentia-pytorch.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,28 @@
55
"1.5.1": {
66
"py_versions": ["py3"],
77
"registries": {
8+
"af-south-1": "774647643957",
9+
"ap-east-1": "110948597952",
10+
"ap-northeast-1": "941853720454",
11+
"ap-northeast-2": "151534178276",
12+
"ap-south-1": "763008648453",
13+
"ap-southeast-1": "324986816169",
14+
"ap-southeast-2": "355873309152",
15+
"ca-central-1": "464438896020",
16+
"cn-north-1": "472730292857",
17+
"cn-northwest-1": "474822919863",
18+
"eu-central-1": "746233611703",
19+
"eu-north-1": "601324751636",
20+
"eu-south-1": "966458181534",
21+
"eu-west-1": "802834080501",
22+
"eu-west-2": "205493899709",
23+
"eu-west-3": "254080097072",
24+
"me-south-1": "836785723513",
25+
"sa-east-1": "756306329178",
826
"us-east-1": "785573368785",
27+
"us-east-2": "007439368137",
28+
"us-gov-west-1": "263933020539",
29+
"us-west-1": "710691900526",
930
"us-west-2": "301217895009"
1031
},
1132
"repository": "sagemaker-neo-pytorch"

src/sagemaker/image_uri_config/inferentia-tensorflow.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,29 @@
55
"1.15.0": {
66
"py_versions": ["py3"],
77
"registries": {
8+
"af-south-1": "774647643957",
9+
"ap-east-1": "110948597952",
10+
"ap-northeast-1": "941853720454",
11+
"ap-northeast-2": "151534178276",
12+
"ap-south-1": "763008648453",
13+
"ap-southeast-1": "324986816169",
14+
"ap-southeast-2": "355873309152",
15+
"ca-central-1": "464438896020",
16+
"cn-north-1": "472730292857",
17+
"cn-northwest-1": "474822919863",
18+
"eu-central-1": "746233611703",
19+
"eu-north-1": "601324751636",
20+
"eu-south-1": "966458181534",
21+
"eu-west-1": "802834080501",
22+
"eu-west-2": "205493899709",
23+
"eu-west-3": "254080097072",
24+
"me-south-1": "836785723513",
25+
"sa-east-1": "756306329178",
826
"us-east-1": "785573368785",
9-
"us-west-2": "301217895009"
27+
"us-east-2": "007439368137",
28+
"us-gov-west-1": "263933020539",
29+
"us-west-1": "710691900526",
30+
"us-west-2": "301217895009"
1031
},
1132
"repository": "sagemaker-neo-tensorflow"
1233
}

tests/unit/sagemaker/image_uris/test_neo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
from sagemaker import image_uris
1818
from tests.unit.sagemaker.image_uris import expected_uris, regions
1919

20-
21-
INFERENTIA_REGIONS = ("us-east-1", "us-west-2")
2220
NEO_ALGOS = ("image-classification-neo", "xgboost-neo")
2321

2422
ACCOUNTS = {
@@ -47,6 +45,8 @@
4745
"us-west-2": "301217895009",
4846
}
4947

48+
INFERENTIA_REGIONS = ACCOUNTS.keys()
49+
5050

5151
@pytest.mark.parametrize("algo", NEO_ALGOS)
5252
def test_algo_uris(algo):

0 commit comments

Comments
 (0)