Skip to content

Commit eb9a18a

Browse files
committed
feature: add support for PyTorch 1.8.0 training, inference, SMDDP, SMDMP
1 parent 06b57c1 commit eb9a18a

File tree

3 files changed

+72
-3
lines changed

3 files changed

+72
-3
lines changed

src/sagemaker/fw_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
)
6161
SM_DATAPARALLEL_SUPPORTED_FRAMEWORK_VERSIONS = {
6262
"tensorflow": ["2.3.0", "2.3.1", "2.4.1"],
63-
"pytorch": ["1.6.0", "1.7.1"],
63+
"pytorch": ["1.6.0", "1.7.1", "1.8.0"],
6464
}
6565
SMDISTRIBUTED_SUPPORTED_STRATEGIES = ["dataparallel", "modelparallel"]
6666

src/sagemaker/image_uri_config/pytorch.json

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
"1.4": "1.4.0",
5656
"1.5": "1.5.0",
5757
"1.6": "1.6.0",
58-
"1.7": "1.7.1"
58+
"1.7": "1.7.1",
59+
"1.8": "1.8.0"
5960
},
6061
"versions": {
6162
"0.4.0": {
@@ -352,6 +353,39 @@
352353
"us-west-2": "763104351884"
353354
},
354355
"repository": "pytorch-inference"
356+
},
357+
"1.8.0": {
358+
"py_versions": [
359+
"py3",
360+
"py36"
361+
],
362+
"registries": {
363+
"af-south-1": "626614931356",
364+
"ap-east-1": "871362719292",
365+
"ap-northeast-1": "763104351884",
366+
"ap-northeast-2": "763104351884",
367+
"ap-south-1": "763104351884",
368+
"ap-southeast-1": "763104351884",
369+
"ap-southeast-2": "763104351884",
370+
"ca-central-1": "763104351884",
371+
"cn-north-1": "727897471807",
372+
"cn-northwest-1": "727897471807",
373+
"eu-central-1": "763104351884",
374+
"eu-north-1": "763104351884",
375+
"eu-west-1": "763104351884",
376+
"eu-west-2": "763104351884",
377+
"eu-west-3": "763104351884",
378+
"eu-south-1": "692866216735",
379+
"me-south-1": "217643126080",
380+
"sa-east-1": "763104351884",
381+
"us-east-1": "763104351884",
382+
"us-east-2": "763104351884",
383+
"us-gov-west-1": "442386744353",
384+
"us-iso-east-1": "886529160074",
385+
"us-west-1": "763104351884",
386+
"us-west-2": "763104351884"
387+
},
388+
"repository": "pytorch-inference"
355389
}
356390
}
357391
},
@@ -369,7 +403,8 @@
369403
"1.4": "1.4.0",
370404
"1.5": "1.5.0",
371405
"1.6": "1.6.0",
372-
"1.7": "1.7.1"
406+
"1.7": "1.7.1",
407+
"1.8": "1.8.0"
373408
},
374409
"versions": {
375410
"0.4.0": {
@@ -667,6 +702,39 @@
667702
"us-west-2": "763104351884"
668703
},
669704
"repository": "pytorch-training"
705+
},
706+
"1.8.0": {
707+
"py_versions": [
708+
"py3",
709+
"py36"
710+
],
711+
"registries": {
712+
"af-south-1": "626614931356",
713+
"ap-east-1": "871362719292",
714+
"ap-northeast-1": "763104351884",
715+
"ap-northeast-2": "763104351884",
716+
"ap-south-1": "763104351884",
717+
"ap-southeast-1": "763104351884",
718+
"ap-southeast-2": "763104351884",
719+
"ca-central-1": "763104351884",
720+
"cn-north-1": "727897471807",
721+
"cn-northwest-1": "727897471807",
722+
"eu-central-1": "763104351884",
723+
"eu-north-1": "763104351884",
724+
"eu-west-1": "763104351884",
725+
"eu-west-2": "763104351884",
726+
"eu-west-3": "763104351884",
727+
"eu-south-1": "692866216735",
728+
"me-south-1": "217643126080",
729+
"sa-east-1": "763104351884",
730+
"us-east-1": "763104351884",
731+
"us-east-2": "763104351884",
732+
"us-gov-west-1": "442386744353",
733+
"us-iso-east-1": "886529160074",
734+
"us-west-1": "763104351884",
735+
"us-west-2": "763104351884"
736+
},
737+
"repository": "pytorch-training"
670738
}
671739
}
672740
}

tests/unit/test_fw_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ def test_validate_smdataparallel_args_not_raises():
634634
("ml.p3.16xlarge", "tensorflow", "2.4.1", "py3", smdataparallel_enabled),
635635
("ml.p3.16xlarge", "pytorch", "1.6.0", "py3", smdataparallel_enabled),
636636
("ml.p3.16xlarge", "pytorch", "1.7.1", "py3", smdataparallel_enabled),
637+
("ml.p3.16xlarge", "pytorch", "1.8.0", "py3", smdataparallel_enabled),
637638
]
638639
for instance_type, framework_name, framework_version, py_version, distribution in good_args:
639640
fw_utils._validate_smdataparallel_args(

0 commit comments

Comments
 (0)