Skip to content

Commit

Permalink
raise error
Browse files Browse the repository at this point in the history
  • Loading branch information
SunMarc committed Oct 16, 2023
1 parent d3b92e4 commit 7f8962d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions optimum/gptq/quantizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,9 @@ def __init__(
if not (0 < self.damp_percent < 1):
raise ValueError("damp_percent must between 0 and 1.")
if not self.disable_exllamav2 and not self.disable_exllama:
logger.warning(
"You have activated exllama and exllamav2 backend. Setting `disable_exllama=True` and keeping `disable_exllamav2=False`"
raise ValueError(
"disable_exllamav2 and disable_exllama are both set to `False`. Please disable one of the kernels."
)
self.disable_exllama = True

def to_dict(self):
"""
Expand Down

0 comments on commit 7f8962d

Please sign in to comment.