Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions auto_round/compressors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,10 +1310,11 @@ def _quantize_rtn(self) -> tuple[torch.nn.Module, dict[str, Any]]:
self.model.to("cpu")

enable_imatrix = False
if has_gguf_k and not self.disable_opt_rtn:
enable_imatrix = True
if self.data_type == "int" and self.sym:
enable_imatrix = True
if not self.disable_opt_rtn:
if has_gguf_k:
enable_imatrix = True
elif self.data_type == "int" and self.sym:
enable_imatrix = True

if enable_imatrix:
self._quant_rtn_with_imatrix(all_to_quantized_module_names)
Expand Down