Skip to content

Commit b7734ca

Browse files
feature: add support for pytorch 1.10.0 (#2795)
Co-authored-by: Ahsan Khan <[email protected]>
1 parent a8323a9 commit b7734ca

File tree

3 files changed

+85
-3
lines changed

3 files changed

+85
-3
lines changed

src/sagemaker/fw_utils.py

+14-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,20 @@
7575
"2.6.0",
7676
"2.6.2",
7777
],
78-
"pytorch": ["1.6", "1.6.0", "1.7", "1.7.1", "1.8", "1.8.0", "1.8.1", "1.9", "1.9.0", "1.9.1"],
78+
"pytorch": [
79+
"1.6",
80+
"1.6.0",
81+
"1.7",
82+
"1.7.1",
83+
"1.8",
84+
"1.8.0",
85+
"1.8.1",
86+
"1.9",
87+
"1.9.0",
88+
"1.9.1",
89+
"1.10",
90+
"1.10.0",
91+
],
7992
}
8093
SMDISTRIBUTED_SUPPORTED_STRATEGIES = ["dataparallel", "modelparallel"]
8194

src/sagemaker/image_uri_config/pytorch.json

+70-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
"1.6": "1.6.0",
6464
"1.7": "1.7.1",
6565
"1.8": "1.8.1",
66-
"1.9": "1.9.1"
66+
"1.9": "1.9.1",
67+
"1.10": "1.10.0"
6768
},
6869
"versions": {
6970
"0.4.0": {
@@ -500,6 +501,39 @@
500501
"us-west-2": "763104351884"
501502
},
502503
"repository": "pytorch-inference"
504+
},
505+
"1.10.0": {
506+
"py_versions": [
507+
"py38"
508+
],
509+
"registries": {
510+
"af-south-1": "626614931356",
511+
"ap-east-1": "871362719292",
512+
"ap-northeast-1": "763104351884",
513+
"ap-northeast-2": "763104351884",
514+
"ap-northeast-3": "364406365360",
515+
"ap-south-1": "763104351884",
516+
"ap-southeast-1": "763104351884",
517+
"ap-southeast-2": "763104351884",
518+
"ca-central-1": "763104351884",
519+
"cn-north-1": "727897471807",
520+
"cn-northwest-1": "727897471807",
521+
"eu-central-1": "763104351884",
522+
"eu-north-1": "763104351884",
523+
"eu-west-1": "763104351884",
524+
"eu-west-2": "763104351884",
525+
"eu-west-3": "763104351884",
526+
"eu-south-1": "692866216735",
527+
"me-south-1": "217643126080",
528+
"sa-east-1": "763104351884",
529+
"us-east-1": "763104351884",
530+
"us-east-2": "763104351884",
531+
"us-gov-west-1": "442386744353",
532+
"us-iso-east-1": "886529160074",
533+
"us-west-1": "763104351884",
534+
"us-west-2": "763104351884"
535+
},
536+
"repository": "pytorch-inference"
503537
}
504538
}
505539
},
@@ -519,7 +553,8 @@
519553
"1.6": "1.6.0",
520554
"1.7": "1.7.1",
521555
"1.8": "1.8.1",
522-
"1.9": "1.9.1"
556+
"1.9": "1.9.1",
557+
"1.10": "1.10.0"
523558
},
524559
"versions": {
525560
"0.4.0": {
@@ -957,6 +992,39 @@
957992
"us-west-2": "763104351884"
958993
},
959994
"repository": "pytorch-training"
995+
},
996+
"1.10.0": {
997+
"py_versions": [
998+
"py38"
999+
],
1000+
"registries": {
1001+
"af-south-1": "626614931356",
1002+
"ap-east-1": "871362719292",
1003+
"ap-northeast-1": "763104351884",
1004+
"ap-northeast-2": "763104351884",
1005+
"ap-northeast-3": "364406365360",
1006+
"ap-south-1": "763104351884",
1007+
"ap-southeast-1": "763104351884",
1008+
"ap-southeast-2": "763104351884",
1009+
"ca-central-1": "763104351884",
1010+
"cn-north-1": "727897471807",
1011+
"cn-northwest-1": "727897471807",
1012+
"eu-central-1": "763104351884",
1013+
"eu-north-1": "763104351884",
1014+
"eu-west-1": "763104351884",
1015+
"eu-west-2": "763104351884",
1016+
"eu-west-3": "763104351884",
1017+
"eu-south-1": "692866216735",
1018+
"me-south-1": "217643126080",
1019+
"sa-east-1": "763104351884",
1020+
"us-east-1": "763104351884",
1021+
"us-east-2": "763104351884",
1022+
"us-gov-west-1": "442386744353",
1023+
"us-iso-east-1": "886529160074",
1024+
"us-west-1": "763104351884",
1025+
"us-west-2": "763104351884"
1026+
},
1027+
"repository": "pytorch-training"
9601028
}
9611029
}
9621030
}

tests/unit/test_fw_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ def test_validate_smdataparallel_args_not_raises():
693693
("ml.p3.16xlarge", "pytorch", "1.8", "py3", smdataparallel_enabled),
694694
("ml.p3.16xlarge", "pytorch", "1.9.1", "py38", smdataparallel_enabled),
695695
("ml.p3.16xlarge", "pytorch", "1.9", "py38", smdataparallel_enabled),
696+
("ml.p3.16xlarge", "pytorch", "1.10", "py38", smdataparallel_enabled),
696697
("ml.p3.16xlarge", "tensorflow", "2.4.1", "py3", smdataparallel_enabled_custom_mpi),
697698
("ml.p3.16xlarge", "tensorflow", "2.4.1", "py37", smdataparallel_enabled_custom_mpi),
698699
("ml.p3.16xlarge", "tensorflow", "2.5.1", "py37", smdataparallel_enabled_custom_mpi),

0 commit comments

Comments
 (0)