@@ -1222,7 +1222,7 @@ def test_autoquant_one_input(self, device, dtype, m, k, n):
1222
1222
(1 , 32 , 128 , 128 ),
1223
1223
(32 , 32 , 128 , 128 ),
1224
1224
]))
1225
- @unittest .skipIf (not TORCH_VERSION_AT_LEAST_2_3 , "autoquant requires 2.3 +." )
1225
+ @unittest .skipIf (not TORCH_VERSION_AT_LEAST_2_4 , "autoquant requires 2.4 +." )
1226
1226
def test_autoquant_compile (self , device , dtype , m1 , m2 , k , n ):
1227
1227
undo_recommended_configs ()
1228
1228
if device != "cuda" or not torch .cuda .is_available ():
@@ -1254,7 +1254,7 @@ def test_autoquant_compile(self, device, dtype, m1, m2, k, n):
1254
1254
self .assertTrue (sqnr >= 30 )
1255
1255
1256
1256
@parameterized .expand (COMMON_DEVICE_DTYPE )
1257
- @unittest .skipIf (not TORCH_VERSION_AT_LEAST_2_3 , "autoquant requires 2.3 +." )
1257
+ @unittest .skipIf (not TORCH_VERSION_AT_LEAST_2_4 , "autoquant requires 2.4 +." )
1258
1258
def test_autoquant_manual (self , device , dtype ):
1259
1259
undo_recommended_configs ()
1260
1260
if device != "cuda" or not torch .cuda .is_available ():
@@ -1295,7 +1295,7 @@ def test_autoquant_manual(self, device, dtype):
1295
1295
(1 , 32 , 128 , 128 ),
1296
1296
(32 , 32 , 128 , 128 ),
1297
1297
]))
1298
- @unittest .skipIf (not TORCH_VERSION_AT_LEAST_2_3 , "autoquant requires 2.3 +." )
1298
+ @unittest .skipIf (not TORCH_VERSION_AT_LEAST_2_4 , "autoquant requires 2.4 +." )
1299
1299
def test_autoquant_kwargs (self , device , dtype , m1 , m2 , k , n ):
1300
1300
undo_recommended_configs ()
1301
1301
if device != "cuda" or not torch .cuda .is_available ():
@@ -1478,7 +1478,7 @@ def forward(self, x):
1478
1478
1479
1479
class TestUtils (unittest .TestCase ):
1480
1480
@parameterized .expand (COMMON_DEVICE_DTYPE )
1481
- @unittest .skipIf (not TORCH_VERSION_AT_LEAST_2_3 , "autoquant requires 2.3 +." )
1481
+ @unittest .skipIf (not TORCH_VERSION_AT_LEAST_2_4 , "autoquant requires 2.4 +." )
1482
1482
def test_get_model_size_autoquant (self , device , dtype ):
1483
1483
if device != "cuda" and dtype != torch .bfloat16 :
1484
1484
self .skipTest (f"autoquant currently does not support { device } " )
0 commit comments