@@ -631,7 +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" )
634+ # @unittest.skipIf(TORCH_VERSION_AFTER_2_5, "int4 skipping 2.5+ for now")
635635 def test_dequantize_int4_weight_only_quant_subclass (self , device , dtype ):
636636 if dtype != torch .bfloat16 :
637637 self .skipTest ("Currently only supports bfloat16." )
@@ -642,7 +642,7 @@ def test_dequantize_int4_weight_only_quant_subclass(self, device, dtype):
642642
643643 @parameterized .expand (COMMON_DEVICE_DTYPE )
644644 @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" )
645+ # @unittest.skipIf(TORCH_VERSION_AFTER_2_5, "int4 skipping 2.5+ for now")
646646 def test_dequantize_int4_weight_only_quant_subclass_grouped (self , device , dtype ):
647647 if dtype != torch .bfloat16 :
648648 self .skipTest ("Currently only supports bfloat16." )
@@ -737,7 +737,7 @@ def test_aq_int8_weight_only_quant_3_subclass(self, device, dtype):
737737
738738 @parameterized .expand (COMMON_DEVICE_DTYPE )
739739 @unittest .skipIf (not TORCH_VERSION_AFTER_2_3 , "int4 requires torch nightly." )
740- @unittest .skipIf (TORCH_VERSION_AFTER_2_5 , "int4 skipping 2.5+ for now" )
740+ # @unittest.skipIf(TORCH_VERSION_AFTER_2_5, "int4 skipping 2.5+ for now")
741741 def test_int4_weight_only_quant_subclass (self , device , dtype ):
742742 if dtype != torch .bfloat16 :
743743 self .skipTest (f"Fails for { dtype } " )
@@ -748,7 +748,7 @@ def test_int4_weight_only_quant_subclass(self, device, dtype):
748748
749749 @parameterized .expand (COMMON_DEVICE_DTYPE )
750750 @unittest .skipIf (not TORCH_VERSION_AFTER_2_3 , "int4 requires torch nightly." )
751- @unittest .skipIf (TORCH_VERSION_AFTER_2_5 , "int4 skipping 2.5+ for now" )
751+ # @unittest.skipIf(TORCH_VERSION_AFTER_2_5, "int4 skipping 2.5+ for now")
752752 def test_int4_weight_only_quant_subclass_grouped (self , device , dtype ):
753753 if dtype != torch .bfloat16 :
754754 self .skipTest (f"Fails for { dtype } " )
@@ -823,7 +823,7 @@ def test_int8_weight_only_quant_with_freeze(self, device, dtype):
823823
824824 @parameterized .expand (COMMON_DEVICE_DTYPE )
825825 @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" )
826+ # @unittest.skipIf(TORCH_VERSION_AFTER_2_5, "int4 skipping 2.5+ for now")
827827 def test_int4_weight_only_quant_subclass_api (self , device , dtype ):
828828 if dtype != torch .bfloat16 :
829829 self .skipTest (f"Fails for { dtype } " )
@@ -838,7 +838,7 @@ def test_int4_weight_only_quant_subclass_api(self, device, dtype):
838838
839839 @parameterized .expand (COMMON_DEVICE_DTYPE )
840840 @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" )
841+ # @unittest.skipIf(TORCH_VERSION_AFTER_2_5, "int4 skipping 2.5+ for now")
842842 def test_int4_weight_only_quant_subclass_api_grouped (self , device , dtype ):
843843 if dtype != torch .bfloat16 :
844844 self .skipTest (f"Fails for { dtype } " )
@@ -1028,7 +1028,7 @@ def test_save_load_int8woqtensors(self, device, dtype):
10281028
10291029 @parameterized .expand (COMMON_DEVICE_DTYPE )
10301030 @unittest .skipIf (not TORCH_VERSION_AFTER_2_3 , "int4 requires torch 2.3+." )
1031- @unittest .skipIf (TORCH_VERSION_AFTER_2_5 , "int4 doesn't work for 2.5+ right now" )
1031+ # @unittest.skipIf(TORCH_VERSION_AFTER_2_5, "int4 doesn't work for 2.5+ right now")
10321032 @torch .no_grad ()
10331033 def test_save_load_int4woqtensors (self , device , dtype ):
10341034 if dtype != torch .bfloat16 :
@@ -1488,7 +1488,7 @@ def test_get_model_size_autoquant(self, device, dtype):
14881488 @parameterized .expand (
14891489 list (itertools .product (TENSOR_SUBCLASS_APIS , COMMON_DEVICES , COMMON_DTYPES )),
14901490 )
1491- @unittest .skipIf (TORCH_VERSION_AFTER_2_5 , "int4 skipping 2.5+ for now" )
1491+ # @unittest.skipIf(TORCH_VERSION_AFTER_2_5, "int4 skipping 2.5+ for now")
14921492 def test_get_model_size_aqt (self , api , test_device , test_dtype ):
14931493 if test_dtype != torch .bfloat16 :
14941494 self .skipTest (f"{ api } in { test_dtype } is not supported yet" )
0 commit comments