@@ -631,6 +631,7 @@ def test_dequantize_int8_weight_only_quant_subclass(self, device, dtype):
631631
632632 @parameterized .expand (COMMON_DEVICE_DTYPE )
633633 @unittest .skipIf (not TORCH_VERSION_AFTER_2_3 , "int4 requires torch nightly." )
634+ @unittest .skipIf (TORCH_VERSION_AFTER_2_5 , "int4 skipping 2.5+ for now" )
634635 def test_dequantize_int4_weight_only_quant_subclass (self , device , dtype ):
635636 if dtype != torch .bfloat16 :
636637 self .skipTest ("Currently only supports bfloat16." )
@@ -641,6 +642,7 @@ def test_dequantize_int4_weight_only_quant_subclass(self, device, dtype):
641642
642643 @parameterized .expand (COMMON_DEVICE_DTYPE )
643644 @unittest .skipIf (not TORCH_VERSION_AFTER_2_3 , "int4 requires torch nightly." )
645+ @unittest .skipIf (TORCH_VERSION_AFTER_2_5 , "int4 skipping 2.5+ for now" )
644646 def test_dequantize_int4_weight_only_quant_subclass_grouped (self , device , dtype ):
645647 if dtype != torch .bfloat16 :
646648 self .skipTest ("Currently only supports bfloat16." )
@@ -821,6 +823,7 @@ def test_int8_weight_only_quant_with_freeze(self, device, dtype):
821823
822824 @parameterized .expand (COMMON_DEVICE_DTYPE )
823825 @unittest .skipIf (not TORCH_VERSION_AFTER_2_3 , "int4 requires torch nightly." )
826+ @unittest .skipIf (TORCH_VERSION_AFTER_2_5 , "int4 skipping 2.5+ for now" )
824827 def test_int4_weight_only_quant_subclass_api (self , device , dtype ):
825828 if dtype != torch .bfloat16 :
826829 self .skipTest (f"Fails for { dtype } " )
@@ -835,6 +838,7 @@ def test_int4_weight_only_quant_subclass_api(self, device, dtype):
835838
836839 @parameterized .expand (COMMON_DEVICE_DTYPE )
837840 @unittest .skipIf (not TORCH_VERSION_AFTER_2_3 , "int4 requires torch nightly." )
841+ @unittest .skipIf (TORCH_VERSION_AFTER_2_5 , "int4 skipping 2.5+ for now" )
838842 def test_int4_weight_only_quant_subclass_api_grouped (self , device , dtype ):
839843 if dtype != torch .bfloat16 :
840844 self .skipTest (f"Fails for { dtype } " )
0 commit comments