Skip to content

Commit be95f4e

Browse files
authored
feature: Add PT 1.12 support (#3231)
* feature: Add PT 1.12 support * update cgk region
1 parent b27423d commit be95f4e

File tree

3 files changed

+79
-4
lines changed

3 files changed

+79
-4
lines changed

src/sagemaker/fw_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@
101101
"1.10.2",
102102
"1.11",
103103
"1.11.0",
104+
"1.12",
105+
"1.12.0",
104106
],
105107
}
106108

src/sagemaker/image_uri_config/pytorch.json

Lines changed: 74 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@
6666
"1.7": "1.7.1",
6767
"1.8": "1.8.1",
6868
"1.9": "1.9.1",
69-
"1.10": "1.10.0",
70-
"1.11": "1.11.0"
69+
"1.10": "1.10.2",
70+
"1.11": "1.11.0",
71+
"1.12": "1.12.0"
7172
},
7273
"versions": {
7374
"0.4.0": {
@@ -616,6 +617,40 @@
616617
"us-west-2": "763104351884"
617618
},
618619
"repository": "pytorch-inference"
620+
},
621+
"1.12.0": {
622+
"py_versions": [
623+
"py38"
624+
],
625+
"registries": {
626+
"af-south-1": "626614931356",
627+
"ap-east-1": "871362719292",
628+
"ap-northeast-1": "763104351884",
629+
"ap-northeast-2": "763104351884",
630+
"ap-northeast-3": "364406365360",
631+
"ap-south-1": "763104351884",
632+
"ap-southeast-1": "763104351884",
633+
"ap-southeast-2": "763104351884",
634+
"ap-southeast-3": "907027046896",
635+
"ca-central-1": "763104351884",
636+
"cn-north-1": "727897471807",
637+
"cn-northwest-1": "727897471807",
638+
"eu-central-1": "763104351884",
639+
"eu-north-1": "763104351884",
640+
"eu-west-1": "763104351884",
641+
"eu-west-2": "763104351884",
642+
"eu-west-3": "763104351884",
643+
"eu-south-1": "692866216735",
644+
"me-south-1": "217643126080",
645+
"sa-east-1": "763104351884",
646+
"us-east-1": "763104351884",
647+
"us-east-2": "763104351884",
648+
"us-gov-west-1": "442386744353",
649+
"us-iso-east-1": "886529160074",
650+
"us-west-1": "763104351884",
651+
"us-west-2": "763104351884"
652+
},
653+
"repository": "pytorch-inference"
619654
}
620655
}
621656
},
@@ -636,8 +671,9 @@
636671
"1.7": "1.7.1",
637672
"1.8": "1.8.1",
638673
"1.9": "1.9.1",
639-
"1.10": "1.10.0",
640-
"1.11": "1.11.0"
674+
"1.10": "1.10.2",
675+
"1.11": "1.11.0",
676+
"1.12": "1.12.0"
641677
},
642678
"versions": {
643679
"0.4.0": {
@@ -1187,6 +1223,40 @@
11871223
"us-west-2": "763104351884"
11881224
},
11891225
"repository": "pytorch-training"
1226+
},
1227+
"1.12.0": {
1228+
"py_versions": [
1229+
"py38"
1230+
],
1231+
"registries": {
1232+
"af-south-1": "626614931356",
1233+
"ap-east-1": "871362719292",
1234+
"ap-northeast-1": "763104351884",
1235+
"ap-northeast-2": "763104351884",
1236+
"ap-northeast-3": "364406365360",
1237+
"ap-south-1": "763104351884",
1238+
"ap-southeast-1": "763104351884",
1239+
"ap-southeast-2": "763104351884",
1240+
"ap-southeast-3": "907027046896",
1241+
"ca-central-1": "763104351884",
1242+
"cn-north-1": "727897471807",
1243+
"cn-northwest-1": "727897471807",
1244+
"eu-central-1": "763104351884",
1245+
"eu-north-1": "763104351884",
1246+
"eu-west-1": "763104351884",
1247+
"eu-west-2": "763104351884",
1248+
"eu-west-3": "763104351884",
1249+
"eu-south-1": "692866216735",
1250+
"me-south-1": "217643126080",
1251+
"sa-east-1": "763104351884",
1252+
"us-east-1": "763104351884",
1253+
"us-east-2": "763104351884",
1254+
"us-gov-west-1": "442386744353",
1255+
"us-iso-east-1": "886529160074",
1256+
"us-west-1": "763104351884",
1257+
"us-west-2": "763104351884"
1258+
},
1259+
"repository": "pytorch-training"
11901260
}
11911261
}
11921262
}

tests/unit/test_fw_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,8 @@ def test_validate_smdataparallel_args_not_raises():
827827
("ml.p3.16xlarge", "pytorch", "1.10", "py38", smdataparallel_enabled),
828828
("ml.p3.16xlarge", "pytorch", "1.11.0", "py38", smdataparallel_enabled),
829829
("ml.p3.16xlarge", "pytorch", "1.11", "py38", smdataparallel_enabled),
830+
("ml.p3.16xlarge", "pytorch", "1.12.0", "py38", smdataparallel_enabled),
831+
("ml.p3.16xlarge", "pytorch", "1.12", "py38", smdataparallel_enabled),
830832
("ml.p3.16xlarge", "tensorflow", "2.4.1", "py3", smdataparallel_enabled_custom_mpi),
831833
("ml.p3.16xlarge", "tensorflow", "2.4.1", "py37", smdataparallel_enabled_custom_mpi),
832834
("ml.p3.16xlarge", "tensorflow", "2.4.3", "py3", smdataparallel_enabled_custom_mpi),
@@ -842,6 +844,7 @@ def test_validate_smdataparallel_args_not_raises():
842844
("ml.p3.16xlarge", "pytorch", "1.9.1", "py38", smdataparallel_enabled_custom_mpi),
843845
("ml.p3.16xlarge", "pytorch", "1.10.2", "py38", smdataparallel_enabled_custom_mpi),
844846
("ml.p3.16xlarge", "pytorch", "1.11.0", "py38", smdataparallel_enabled_custom_mpi),
847+
("ml.p3.16xlarge", "pytorch", "1.12.0", "py38", smdataparallel_enabled_custom_mpi),
845848
]
846849
for instance_type, framework_name, framework_version, py_version, distribution in good_args:
847850
fw_utils._validate_smdataparallel_args(

0 commit comments

Comments
 (0)