Skip to content

Commit

Permalink
Add WOQ int8 test with Inductor Freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
leslie-fang-intel committed Jun 15, 2024
1 parent bc2f8b7 commit 34f38ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/integration/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,14 @@ def test_int8_weight_only_quant_subclass_api(self, device, dtype):
_int8wo_api, device, 40, test_dtype=dtype
)

@parameterized.expand(COMMON_DEVICE_DTYPE)
@torch._inductor.config.patch({"freezing": True})
@unittest.skipIf(not TORCH_VERSION_AFTER_2_4, "freeze requires torch 2.4 and after.")
def test_int8_weight_only_quant_with_freeze(self, device, dtype):
self._test_lin_weight_subclass_api_impl(
_int8wo_api, device, 40, test_dtype=dtype
)

@parameterized.expand(COMMON_DEVICE_DTYPE)
@unittest.skipIf(not TORCH_VERSION_AFTER_2_3, "int4 requires torch nightly.")
def test_int4_weight_only_quant_subclass_api(self, device, dtype):
Expand Down

0 comments on commit 34f38ca

Please sign in to comment.