Skip to content

Commit e59f957

Browse files
committed
fix
1 parent 886ea47 commit e59f957

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

tests/quantization/bnb/test_4bit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ def test_fp4_double_safe(self):
873873

874874
@require_torch_version_greater("2.7.1")
875875
@require_bitsandbytes_version_greater("0.45.5")
876-
class Bnb4BitCompileTests(QuantCompileTests):
876+
class Bnb4BitCompileTests(QuantCompileTests, unittest.TestCase):
877877
@property
878878
def quantization_config(self):
879879
return PipelineQuantizationConfig(

tests/quantization/bnb/test_mixed_int8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ def test_serialization_sharded(self):
838838

839839
@require_torch_version_greater_equal("2.6.0")
840840
@require_bitsandbytes_version_greater("0.45.5")
841-
class Bnb8BitCompileTests(QuantCompileTests):
841+
class Bnb8BitCompileTests(QuantCompileTests, unittest.TestCase):
842842
@property
843843
def quantization_config(self):
844844
return PipelineQuantizationConfig(

tests/quantization/gguf/test_gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def get_dummy_inputs(self):
654654

655655

656656
@require_torch_version_greater("2.7.1")
657-
class GGUFCompileTests(QuantCompileTests):
657+
class GGUFCompileTests(QuantCompileTests, unittest.TestCase):
658658
torch_dtype = torch.bfloat16
659659
gguf_ckpt = "https://huggingface.co/city96/FLUX.1-dev-gguf/blob/main/flux1-dev-Q2_K.gguf"
660660

tests/quantization/test_torch_compile_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
import gc
16-
import unittest
1716

1817
import torch
1918

@@ -23,7 +22,7 @@
2322

2423
@require_torch_gpu
2524
@slow
26-
class QuantCompileTests(unittest.TestCase):
25+
class QuantCompileTests:
2726
@property
2827
def quantization_config(self):
2928
raise NotImplementedError(

tests/quantization/torchao/test_torchao.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def test_int_a16w8_cpu(self):
630630

631631

632632
@require_torchao_version_greater_or_equal("0.7.0")
633-
class TorchAoCompileTest(QuantCompileTests):
633+
class TorchAoCompileTest(QuantCompileTests, unittest.TestCase):
634634
@property
635635
def quantization_config(self):
636636
return PipelineQuantizationConfig(

0 commit comments

Comments
 (0)