Skip to content

Commit a7d1bae

Browse files
author
Jonathan Makunga
committed
EBS Volue
1 parent 4d0d1d3 commit a7d1bae

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/sagemaker/utils.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,10 +1454,15 @@ def volume_size_supported(instance_type: str) -> bool:
14541454
if len(parts) != 2:
14551455
raise ValueError(f"Failed to parse instance type '{instance_type}'")
14561456

1457-
# Any instance type with a "d" in the instance family (i.e. c5d, p4d, etc) + g5
1458-
# does not support attaching an EBS volume.
1457+
# Any instance type with a "d" in the instance family (i.e. c5d, p4d, etc)
1458+
# + g5 or g6 or p5 does not support attaching an EBS volume.
14591459
family = parts[0]
1460-
return "d" not in family and not family.startswith("g5")
1460+
return (
1461+
"d" not in family
1462+
and not family.startswith("g5")
1463+
and not family.startswith("g6")
1464+
and not family.startswith("p5")
1465+
)
14611466
except Exception as e:
14621467
raise ValueError(f"Failed to parse instance type '{instance_type}': {str(e)}")
14631468

0 commit comments

Comments
 (0)