@@ -817,6 +817,9 @@ def test_int8_dynamic_quant_subclass_api(self, device, dtype):
817817 @parameterized .expand (COMMON_DEVICE_DTYPE )
818818 @unittest .skipIf (is_fbcode (), "broken in fbcode" )
819819 def test_int8_weight_only_quant_subclass_api (self , device , dtype ):
820+ if TORCH_VERSION_AT_LEAST_2_5 and device == "cpu" :
821+ self .skipTest ("Regression introduced in PT nightlies" )
822+
820823 undo_recommended_configs ()
821824 self ._test_lin_weight_subclass_api_impl (
822825 _int8wo_api , device , 40 , test_dtype = dtype
@@ -826,6 +829,9 @@ def test_int8_weight_only_quant_subclass_api(self, device, dtype):
826829 @torch ._inductor .config .patch ({"freezing" : True })
827830 @unittest .skipIf (not TORCH_VERSION_AT_LEAST_2_4 , "freeze requires torch 2.4 and after." )
828831 def test_int8_weight_only_quant_with_freeze (self , device , dtype ):
832+ if TORCH_VERSION_AT_LEAST_2_5 and device == "cpu" :
833+ self .skipTest ("Regression introduced in PT nightlies" )
834+
829835 self ._test_lin_weight_subclass_api_impl (
830836 _int8wo_api , device , 40 , test_dtype = dtype
831837 )
@@ -1039,7 +1045,10 @@ def test_save_load_dqtensors(self, device, dtype):
10391045 @parameterized .expand (COMMON_DEVICE_DTYPE )
10401046 @torch .no_grad ()
10411047 @unittest .skipIf (is_fbcode (), "broken in fbcode" )
1042- def test_save_load_int8woqtensors (self , device , dtype ):
1048+ def test_save_load_int8woqtensors (self , device , dtype ):
1049+ if TORCH_VERSION_AT_LEAST_2_5 and device == "cpu" :
1050+ self .skipTest (f"Regression introduced in PT nightlies" )
1051+
10431052 undo_recommended_configs ()
10441053 self ._test_handle_save_load_meta_impl (_int8wo_api , device , test_dtype = dtype )
10451054
0 commit comments