Skip to content

Commit

Permalink
fix for quant config from model (axolotl-ai-cloud#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian authored Sep 10, 2023
1 parent 60556de commit c42ff1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def load_model(
model_kwargs["revision"] = cfg.model_revision
if cfg.gptq:
model_config = load_model_config(cfg)
if hasattr(model_config, "quantization_config"):
if not hasattr(model_config, "quantization_config"):
LOG.warning("model config does not contain quantization_config information")
else:
model_kwargs["quantization_config"] = GPTQConfig(
Expand Down

0 comments on commit c42ff1f

Please sign in to comment.