Skip to content

Commit 32318ec

Browse files
support for PT1.12.1
1 parent 885423c commit 32318ec

File tree

3 files changed

+71
-7
lines changed

3 files changed

+71
-7
lines changed

src/sagemaker/fw_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"1.11",
123123
"1.11.0",
124124
"1.12",
125-
"1.12.0",
125+
"1.12.1",
126126
],
127127
}
128128

@@ -133,7 +133,7 @@
133133
"1.11",
134134
"1.11.0",
135135
"1.12",
136-
"1.12.0",
136+
"1.12.1",
137137
]
138138

139139

src/sagemaker/image_uri_config/pytorch.json

+66-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"1.9": "1.9.1",
6969
"1.10": "1.10.2",
7070
"1.11": "1.11.0",
71-
"1.12": "1.12.0"
71+
"1.12": "1.12.1"
7272
},
7373
"versions": {
7474
"0.4.0": {
@@ -650,6 +650,38 @@
650650
"us-west-1": "763104351884",
651651
"us-west-2": "763104351884"
652652
},
653+
"1.12.1": {
654+
"py_versions": [
655+
"py38"
656+
],
657+
"registries": {
658+
"af-south-1": "626614931356",
659+
"ap-east-1": "871362719292",
660+
"ap-northeast-1": "763104351884",
661+
"ap-northeast-2": "763104351884",
662+
"ap-northeast-3": "364406365360",
663+
"ap-south-1": "763104351884",
664+
"ap-southeast-1": "763104351884",
665+
"ap-southeast-2": "763104351884",
666+
"ap-southeast-3": "907027046896",
667+
"ca-central-1": "763104351884",
668+
"cn-north-1": "727897471807",
669+
"cn-northwest-1": "727897471807",
670+
"eu-central-1": "763104351884",
671+
"eu-north-1": "763104351884",
672+
"eu-west-1": "763104351884",
673+
"eu-west-2": "763104351884",
674+
"eu-west-3": "763104351884",
675+
"eu-south-1": "692866216735",
676+
"me-south-1": "217643126080",
677+
"sa-east-1": "763104351884",
678+
"us-east-1": "763104351884",
679+
"us-east-2": "763104351884",
680+
"us-gov-west-1": "442386744353",
681+
"us-iso-east-1": "886529160074",
682+
"us-west-1": "763104351884",
683+
"us-west-2": "763104351884"
684+
},
653685
"repository": "pytorch-inference"
654686
}
655687
}
@@ -718,7 +750,7 @@
718750
"1.9": "1.9.1",
719751
"1.10": "1.10.2",
720752
"1.11": "1.11.0",
721-
"1.12": "1.12.0"
753+
"1.12": "1.12.1"
722754
},
723755
"versions": {
724756
"0.4.0": {
@@ -1301,6 +1333,38 @@
13011333
"us-west-1": "763104351884",
13021334
"us-west-2": "763104351884"
13031335
},
1336+
"1.12.1": {
1337+
"py_versions": [
1338+
"py38"
1339+
],
1340+
"registries": {
1341+
"af-south-1": "626614931356",
1342+
"ap-east-1": "871362719292",
1343+
"ap-northeast-1": "763104351884",
1344+
"ap-northeast-2": "763104351884",
1345+
"ap-northeast-3": "364406365360",
1346+
"ap-south-1": "763104351884",
1347+
"ap-southeast-1": "763104351884",
1348+
"ap-southeast-2": "763104351884",
1349+
"ap-southeast-3": "907027046896",
1350+
"ca-central-1": "763104351884",
1351+
"cn-north-1": "727897471807",
1352+
"cn-northwest-1": "727897471807",
1353+
"eu-central-1": "763104351884",
1354+
"eu-north-1": "763104351884",
1355+
"eu-west-1": "763104351884",
1356+
"eu-west-2": "763104351884",
1357+
"eu-west-3": "763104351884",
1358+
"eu-south-1": "692866216735",
1359+
"me-south-1": "217643126080",
1360+
"sa-east-1": "763104351884",
1361+
"us-east-1": "763104351884",
1362+
"us-east-2": "763104351884",
1363+
"us-gov-west-1": "442386744353",
1364+
"us-iso-east-1": "886529160074",
1365+
"us-west-1": "763104351884",
1366+
"us-west-2": "763104351884"
1367+
},
13041368
"repository": "pytorch-training"
13051369
}
13061370
}

tests/unit/test_fw_utils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ def test_validate_smdataparallel_args_not_raises():
863863
("ml.p3.16xlarge", "pytorch", "1.10", "py38", smdataparallel_enabled),
864864
("ml.p3.16xlarge", "pytorch", "1.11.0", "py38", smdataparallel_enabled),
865865
("ml.p3.16xlarge", "pytorch", "1.11", "py38", smdataparallel_enabled),
866-
("ml.p3.16xlarge", "pytorch", "1.12.0", "py38", smdataparallel_enabled),
866+
("ml.p3.16xlarge", "pytorch", "1.12.1", "py38", smdataparallel_enabled),
867867
("ml.p3.16xlarge", "pytorch", "1.12", "py38", smdataparallel_enabled),
868868
("ml.p3.16xlarge", "tensorflow", "2.4.1", "py3", smdataparallel_enabled_custom_mpi),
869869
("ml.p3.16xlarge", "tensorflow", "2.4.1", "py37", smdataparallel_enabled_custom_mpi),
@@ -881,7 +881,7 @@ def test_validate_smdataparallel_args_not_raises():
881881
("ml.p3.16xlarge", "pytorch", "1.9.1", "py38", smdataparallel_enabled_custom_mpi),
882882
("ml.p3.16xlarge", "pytorch", "1.10.2", "py38", smdataparallel_enabled_custom_mpi),
883883
("ml.p3.16xlarge", "pytorch", "1.11.0", "py38", smdataparallel_enabled_custom_mpi),
884-
("ml.p3.16xlarge", "pytorch", "1.12.0", "py38", smdataparallel_enabled_custom_mpi),
884+
("ml.p3.16xlarge", "pytorch", "1.12.1", "py38", smdataparallel_enabled_custom_mpi),
885885
]
886886
for instance_type, framework_name, framework_version, py_version, distribution in good_args:
887887
fw_utils._validate_smdataparallel_args(
@@ -916,7 +916,7 @@ def test_validate_pytorchddp_not_raises():
916916
"1.11",
917917
"1.11.0",
918918
"1.12",
919-
"1.12.0",
919+
"1.12.1",
920920
]
921921
for framework_version in pytorchddp_supported_fw_versions:
922922
fw_utils.validate_pytorch_distribution(

0 commit comments

Comments
 (0)