Skip to content

Commit f82de33

Browse files
committed
updates
1 parent ea6c364 commit f82de33

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

src/diffusers/quantizers/auto.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
from .bitsandbytes import BnB4BitDiffusersQuantizer, BnB8BitDiffusersQuantizer
2323
from .gguf import GGUFQuantizer
24+
from .higgs import HiggsQuantizer
2425
from .quantization_config import (
2526
BitsAndBytesConfig,
2627
GGUFQuantizationConfig,
@@ -40,7 +41,7 @@
4041
"gguf": GGUFQuantizer,
4142
"quanto": QuantoQuantizer,
4243
"torchao": TorchAoHfQuantizer,
43-
"higgs": 1,
44+
"higgs": HiggsQuantizer,
4445
}
4546

4647
AUTO_QUANTIZATION_CONFIG_MAPPING = {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .higgs_quantizer import HiggsQuantizer

src/diffusers/quantizers/higgs/higgs_quantizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
logger = logging.get_logger(__name__)
3636

3737

38-
class HiggsHfQuantizer(DiffusersQuantizer):
38+
class HiggsQuantizer(DiffusersQuantizer):
3939
"""
4040
Quantizer of the HIGGS method. Enables the loading of prequantized models and in-flight quantization of
4141
full-precision models.

src/diffusers/quantizers/quantization_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class QuantizationMethod(str, Enum):
4646
GGUF = "gguf"
4747
TORCHAO = "torchao"
4848
QUANTO = "quanto"
49+
HIGGS = "higgs"
4950

5051

5152
if is_torchao_available():

0 commit comments

Comments
 (0)