Skip to content

Commit 94e0283

Browse files
committed
changing logic around for unit test
1 parent 6b0c115 commit 94e0283

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/unit/sagemaker/image_uris/test_smp_v2.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ def test_smp_v2(load_config):
3232
ACCOUNTS = load_config["training"]["versions"][version]["registries"]
3333
PY_VERSIONS = load_config["training"]["versions"][version]["py_versions"]
3434
for py_version in PY_VERSIONS:
35+
# py311 is only for smp version 2.4.0
36+
if py_version == "py311" and "2.4" not in version:
37+
continue
38+
3539
for region in ACCOUNTS.keys():
3640
for instance_type in CONTAINER_VERSIONS.keys():
3741
cuda_vers = CONTAINER_VERSIONS[instance_type]
3842
if "2.1" in version or "2.2" in version or "2.3" in version:
3943
cuda_vers = "cu121"
4044

41-
if "2.4" in version:
42-
py_version = "py311"
43-
4445
uri = image_uris.get_training_image_uri(
4546
region,
4647
framework="pytorch",

0 commit comments

Comments
 (0)