File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1462,6 +1462,7 @@ def volume_size_supported(instance_type: str) -> bool:
1462
1462
and not family .startswith ("g5" )
1463
1463
and not family .startswith ("g6" )
1464
1464
and not family .startswith ("p5" )
1465
+ and not family .startswith ("trn1" )
1465
1466
)
1466
1467
except Exception as e :
1467
1468
raise ValueError (f"Failed to parse instance type '{ instance_type } ': { str (e )} " )
Original file line number Diff line number Diff line change @@ -1815,6 +1815,8 @@ def test_volume_size_not_supported(self):
1815
1815
"local" ,
1816
1816
"local_gpu" ,
1817
1817
ParameterString (name = "InstanceType" , default_value = "ml.m4.xlarge" ),
1818
+ "ml.trn1.32xlarge" ,
1819
+ "ml.trn1n.32xlarge" ,
1818
1820
]
1819
1821
1820
1822
for instance in instances_that_dont_support_volume_size :
You can’t perform that action at this time.
0 commit comments