File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
tests/unit/sagemaker/image_uris Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,16 @@ def test_smp_v2(load_config):
32
32
ACCOUNTS = load_config ["training" ]["versions" ][version ]["registries" ]
33
33
PY_VERSIONS = load_config ["training" ]["versions" ][version ]["py_versions" ]
34
34
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
+
35
39
for region in ACCOUNTS .keys ():
36
40
for instance_type in CONTAINER_VERSIONS .keys ():
37
41
cuda_vers = CONTAINER_VERSIONS [instance_type ]
38
42
if "2.1" in version or "2.2" in version or "2.3" in version :
39
43
cuda_vers = "cu121"
40
44
41
- if "2.4" in version :
42
- py_version = "py311"
43
-
44
45
uri = image_uris .get_training_image_uri (
45
46
region ,
46
47
framework = "pytorch" ,
You can’t perform that action at this time.
0 commit comments