Skip to content

Commit 9073bed

Browse files
author
Sirut Buasai
committed
update pt2.2 sm training dlc pysdk
1 parent 98108e9 commit 9073bed

File tree

4 files changed

+58
-4
lines changed

4 files changed

+58
-4
lines changed

src/sagemaker/fw_utils.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,18 @@
157157
"2.0.0",
158158
"2.0.1",
159159
"2.1.0",
160+
"2.2.0",
160161
]
161162

162163

163-
TORCH_DISTRIBUTED_GPU_SUPPORTED_FRAMEWORK_VERSIONS = ["1.13.1", "2.0.0", "2.0.1", "2.1.0", "2.1.2"]
164+
TORCH_DISTRIBUTED_GPU_SUPPORTED_FRAMEWORK_VERSIONS = [
165+
"1.13.1",
166+
"2.0.0",
167+
"2.0.1",
168+
"2.1.0",
169+
"2.1.2",
170+
"2.2.0",
171+
]
164172

165173
TRAINIUM_SUPPORTED_DISTRIBUTION_STRATEGIES = ["torch_distributed"]
166174
TRAINIUM_SUPPORTED_TORCH_DISTRIBUTED_FRAMEWORK_VERSIONS = [

src/sagemaker/image_uri_config/pytorch.json

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,8 @@
11901190
"1.12": "1.12.1",
11911191
"1.13": "1.13.1",
11921192
"2.0": "2.0.1",
1193-
"2.1": "2.1.0"
1193+
"2.1": "2.1.0",
1194+
"2.2": "2.2.0"
11941195
},
11951196
"versions": {
11961197
"0.4.0": {
@@ -2113,7 +2114,49 @@
21132114
"ca-west-1": "204538143572"
21142115
},
21152116
"repository": "pytorch-training"
2117+
},
2118+
"2.2.0": {
2119+
"py_versions": [
2120+
"py310"
2121+
],
2122+
"registries": {
2123+
"af-south-1": "626614931356",
2124+
"il-central-1": "780543022126",
2125+
"ap-east-1": "871362719292",
2126+
"ap-northeast-1": "763104351884",
2127+
"ap-northeast-2": "763104351884",
2128+
"ap-northeast-3": "364406365360",
2129+
"ap-south-1": "763104351884",
2130+
"ap-south-2": "772153158452",
2131+
"ap-southeast-1": "763104351884",
2132+
"ap-southeast-2": "763104351884",
2133+
"ap-southeast-3": "907027046896",
2134+
"ap-southeast-4": "457447274322",
2135+
"ca-central-1": "763104351884",
2136+
"cn-north-1": "727897471807",
2137+
"cn-northwest-1": "727897471807",
2138+
"eu-central-1": "763104351884",
2139+
"eu-central-2": "380420809688",
2140+
"eu-north-1": "763104351884",
2141+
"eu-west-1": "763104351884",
2142+
"eu-west-2": "763104351884",
2143+
"eu-west-3": "763104351884",
2144+
"eu-south-1": "692866216735",
2145+
"eu-south-2": "503227376785",
2146+
"me-south-1": "217643126080",
2147+
"sa-east-1": "763104351884",
2148+
"us-east-1": "763104351884",
2149+
"us-east-2": "763104351884",
2150+
"us-gov-east-1": "446045086412",
2151+
"us-gov-west-1": "442386744353",
2152+
"us-iso-east-1": "886529160074",
2153+
"us-isob-east-1": "094389454867",
2154+
"us-west-1": "763104351884",
2155+
"us-west-2": "763104351884",
2156+
"ca-west-1": "204538143572"
2157+
},
2158+
"repository": "pytorch-training"
21162159
}
21172160
}
21182161
}
2119-
}
2162+
}

tests/unit/test_fw_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,7 @@ def test_validate_pytorchddp_not_raises():
998998
"2.0.0",
999999
"2.0.1",
10001000
"2.1.0",
1001+
"2.2.0",
10011002
]
10021003
for framework_version in pytorchddp_supported_fw_versions:
10031004
fw_utils.validate_pytorch_distribution(
@@ -1060,7 +1061,7 @@ def test_validate_torch_distributed_not_raises():
10601061

10611062
# Case 3: Distribution is torch_distributed enabled, supported framework and instances
10621063
torch_distributed_enabled = {"torch_distributed": {"enabled": True}}
1063-
torch_distributed_gpu_supported_fw_versions = ["1.13.1", "2.0.0", "2.0.1", "2.1.0"]
1064+
torch_distributed_gpu_supported_fw_versions = ["1.13.1", "2.0.0", "2.0.1", "2.1.0", "2.2.0"]
10641065
for framework_version in torch_distributed_gpu_supported_fw_versions:
10651066
fw_utils.validate_torch_distributed_distribution(
10661067
instance_type="ml.p3.8xlarge",

tests/unit/test_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ def test_set_nested_value():
384384

385385

386386
def test_get_short_version():
387+
assert sagemaker.utils.get_short_version("2.2.0") == "2.2"
388+
assert sagemaker.utils.get_short_version("2.2") == "2.2"
387389
assert sagemaker.utils.get_short_version("2.1.0") == "2.1"
388390
assert sagemaker.utils.get_short_version("2.1") == "2.1"
389391
assert sagemaker.utils.get_short_version("2.0.1") == "2.0"

0 commit comments

Comments
 (0)