Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubitium authored Jul 23, 2024
1 parent 2c20b76 commit 8810bbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gptqmodel/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,7 @@ def save_quantized(
):
"""save quantized model and configs to local disk"""
if self.from_quantized:
raise NotImplementedError("Saving a quantized model again is not supported. \n"
"If you need to shard the model file, refer to shard_quantized().")
raise NotImplementedError("Saving a loaded quantized model is not supported. If you need to re-shard the model, please use `GPTQModel.shard_quantized()` api.")

os.makedirs(save_dir, exist_ok=True)

Expand Down

0 comments on commit 8810bbb

Please sign in to comment.