Skip to content

Commit

Permalink
disable_exllamav2
Browse files Browse the repository at this point in the history
  • Loading branch information
SunMarc committed Oct 24, 2023
1 parent aba7f46 commit 3b78b15
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions optimum/gptq/quantizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,18 +457,19 @@ def tmp(_, input, output):
"Found modules on cpu/disk. Using Exllama backend requires all the modules to be on GPU. Setting `disable_exllama=True`"
)
self.disable_exllama = True
if not self.disable_exllamav2:
logger.warning(
"Found modules on cpu/disk. Using Exllamav2 backend requires all the modules to be on GPU. Setting `disable_exllamav2=True`"
)
self.disable_exllamav2 = True
# act order and exllama
elif self.desc_act and not self.disable_exllama:
logger.warning(
"Using Exllama backend with act_order will reorder the weights offline, thus you will not be able to save the model with the right weights."
"Setting `disable_exllama=True`. You should only use Exllama backend with act_order for inference. "
)
self.disable_exllama = True
elif not self.disable_exllamav2:
logger.warning(
"Using Exllamav2 backend will reorder the weights offline, thus you will not be able to save the model with the right weights."
"Setting `disable_exllamav2=True`. You should only use Exllamav2 backend for inference. "
)
self.disable_exllamav2 = True
# Step 4: Pack the model at the end (Replacing the layers)
self.pack_model(model=model, quantizers=quantizers)

Expand Down

0 comments on commit 3b78b15

Please sign in to comment.