Skip to content

Commit bf66e1b

Browse files
Merge branch 'master' into master
2 parents 6194300 + fa68f1f commit bf66e1b

File tree

6 files changed

+17
-3
lines changed

6 files changed

+17
-3
lines changed

src/sagemaker/fw_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@
152152
"2.1.0",
153153
"2.1.2",
154154
"2.2.0",
155-
"2.3.0",
156155
"2.3.1",
157156
]
158157

src/sagemaker/image_uri_config/pytorch-smp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"2.1": "2.1.2",
99
"2.2": "2.3.1",
1010
"2.2.0": "2.3.1",
11-
"2.3": "2.4.0"
11+
"2.3.1": "2.4.0"
1212
},
1313
"versions": {
1414
"2.0.1": {

src/sagemaker/image_uri_config/pytorch.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,7 @@
10081008
"us-gov-west-1": "442386744353",
10091009
"us-iso-east-1": "886529160074",
10101010
"us-isob-east-1": "094389454867",
1011+
"us-isof-east-1": "303241398832",
10111012
"us-isof-south-1": "454834333376",
10121013
"us-west-1": "763104351884",
10131014
"us-west-2": "763104351884"
@@ -1052,6 +1053,7 @@
10521053
"us-gov-west-1": "442386744353",
10531054
"us-iso-east-1": "886529160074",
10541055
"us-isob-east-1": "094389454867",
1056+
"us-isof-east-1": "303241398832",
10551057
"us-isof-south-1": "454834333376",
10561058
"us-west-1": "763104351884",
10571059
"us-west-2": "763104351884"
@@ -2331,6 +2333,7 @@
23312333
"us-gov-west-1": "442386744353",
23322334
"us-iso-east-1": "886529160074",
23332335
"us-isob-east-1": "094389454867",
2336+
"us-isof-east-1": "303241398832",
23342337
"us-isof-south-1": "454834333376",
23352338
"us-west-1": "763104351884",
23362339
"us-west-2": "763104351884"
@@ -2419,6 +2422,7 @@
24192422
"us-gov-west-1": "442386744353",
24202423
"us-iso-east-1": "886529160074",
24212424
"us-isob-east-1": "094389454867",
2425+
"us-isof-east-1": "303241398832",
24222426
"us-isof-south-1": "454834333376",
24232427
"us-west-1": "763104351884",
24242428
"us-west-2": "763104351884"

src/sagemaker/image_uri_config/tensorflow.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,6 +2140,7 @@
21402140
"us-gov-west-1": "442386744353",
21412141
"us-iso-east-1": "886529160074",
21422142
"us-isob-east-1": "094389454867",
2143+
"us-isof-east-1": "303241398832",
21432144
"us-isof-south-1": "454834333376",
21442145
"us-west-1": "763104351884",
21452146
"us-west-2": "763104351884"
@@ -2181,6 +2182,7 @@
21812182
"us-gov-west-1": "442386744353",
21822183
"us-iso-east-1": "886529160074",
21832184
"us-isob-east-1": "094389454867",
2185+
"us-isof-east-1": "303241398832",
21842186
"us-isof-south-1": "454834333376",
21852187
"us-west-1": "763104351884",
21862188
"us-west-2": "763104351884"
@@ -4354,6 +4356,7 @@
43544356
"us-gov-west-1": "442386744353",
43554357
"us-iso-east-1": "886529160074",
43564358
"us-isob-east-1": "094389454867",
4359+
"us-isof-east-1": "303241398832",
43574360
"us-isof-south-1": "454834333376",
43584361
"us-west-1": "763104351884",
43594362
"us-west-2": "763104351884"

src/sagemaker/session.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8348,7 +8348,9 @@ def _logs_for_job( # noqa: C901 - suppress complexity warning for this method
83488348
"""
83498349
sagemaker_client = sagemaker_session.sagemaker_client
83508350
request_end_time = time.time() + timeout if timeout else None
8351-
description = sagemaker_client.describe_training_job(TrainingJobName=job_name)
8351+
description = _wait_until(
8352+
lambda: sagemaker_client.describe_training_job(TrainingJobName=job_name)
8353+
)
83528354
print(secondary_training_status_message(description, None), end="")
83538355

83548356
instance_count, stream_names, positions, client, log_group, dot, color_wrap = _logs_init(

tests/unit/sagemaker/image_uris/test_smp_v2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_smp_v2(load_config):
2727
"torch_distributed": {"enabled": True},
2828
"smdistributed": {"modelparallel": {"enabled": True}},
2929
}
30+
3031
for processor in PROCESSORS:
3132
for version in VERSIONS:
3233
ACCOUNTS = load_config["training"]["versions"][version]["registries"]
@@ -38,6 +39,11 @@ def test_smp_v2(load_config):
3839
if "2.1" in version or "2.2" in version or "2.3" in version:
3940
cuda_vers = "cu121"
4041

42+
if "2.3.1" == version:
43+
py_version = "py311"
44+
45+
print(version, py_version)
46+
4147
uri = image_uris.get_training_image_uri(
4248
region,
4349
framework="pytorch",

0 commit comments

Comments
 (0)