Skip to content

Commit 12825ac

Browse files
adtian2Andrew Tian
and
Andrew Tian
authored
changes for PT 2.4 currency upgrade (#4890)
Co-authored-by: Andrew Tian <[email protected]>
1 parent 1c0699d commit 12825ac

File tree

4 files changed

+36
-5
lines changed

4 files changed

+36
-5
lines changed

src/sagemaker/fw_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153
"2.1.2",
154154
"2.2.0",
155155
"2.3.1",
156+
"2.4.1",
156157
]
157158

158159
TRAINIUM_SUPPORTED_DISTRIBUTION_STRATEGIES = ["torch_distributed"]

src/sagemaker/image_uri_config/pytorch-smp.json

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"2.1": "2.1.2",
99
"2.2": "2.3.1",
1010
"2.2.0": "2.3.1",
11-
"2.3.1": "2.5.0"
11+
"2.3.1": "2.5.0",
12+
"2.4.1": "2.6.0"
1213
},
1314
"versions": {
1415
"2.0.1": {
@@ -160,6 +161,31 @@
160161
"us-west-2": "658645717510"
161162
},
162163
"repository": "smdistributed-modelparallel"
164+
},
165+
"2.6.0": {
166+
"py_versions": [
167+
"py311"
168+
],
169+
"registries": {
170+
"ap-northeast-1": "658645717510",
171+
"ap-northeast-2": "658645717510",
172+
"ap-northeast-3": "658645717510",
173+
"ap-south-1": "658645717510",
174+
"ap-southeast-1": "658645717510",
175+
"ap-southeast-2": "658645717510",
176+
"ca-central-1": "658645717510",
177+
"eu-central-1": "658645717510",
178+
"eu-north-1": "658645717510",
179+
"eu-west-1": "658645717510",
180+
"eu-west-2": "658645717510",
181+
"eu-west-3": "658645717510",
182+
"sa-east-1": "658645717510",
183+
"us-east-1": "658645717510",
184+
"us-east-2": "658645717510",
185+
"us-west-1": "658645717510",
186+
"us-west-2": "658645717510"
187+
},
188+
"repository": "smdistributed-modelparallel"
163189
}
164190
}
165191
}

src/sagemaker/image_uris.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,7 @@ def get_training_image_uri(
699699
or "2.1" in framework_version
700700
or "2.2" in framework_version
701701
or "2.3" in framework_version
702+
or "2.4" in framework_version
702703
):
703704
container_version = "cu121"
704705
else:

tests/unit/sagemaker/image_uris/test_smp_v2.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,17 @@ def test_smp_v2(load_config):
3636
for region in ACCOUNTS.keys():
3737
for instance_type in CONTAINER_VERSIONS.keys():
3838
cuda_vers = CONTAINER_VERSIONS[instance_type]
39-
if "2.1" in version or "2.2" in version or "2.3" in version:
39+
if (
40+
"2.1" in version
41+
or "2.2" in version
42+
or "2.3" in version
43+
or "2.4" in version
44+
):
4045
cuda_vers = "cu121"
4146

42-
if "2.3.1" == version:
47+
if "2.3.1" == version or "2.4.1" == version:
4348
py_version = "py311"
4449

45-
print(version, py_version)
46-
4750
uri = image_uris.get_training_image_uri(
4851
region,
4952
framework="pytorch",

0 commit comments

Comments
 (0)