Skip to content

Commit

Permalink
fixed errors with backup_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ljaljushkin committed Oct 21, 2024
1 parent 1214ce8 commit 2dc74db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nncf/quantization/quantize_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def compress_weights(
)

if backup_mode is not None:
raise AttributeError("Torch backend does not support backup_mode option.")
raise nncf.ParameterNotSupportedError("Torch backend does not support backup_mode option.")

if is_wrapped_model(model):
if not model.nncf.trace_parameters:
Expand Down Expand Up @@ -513,7 +513,7 @@ def compress_weights(
)

if backup_mode is not None:
raise AttributeError("TorchFX backend does not support backup_mode option.")
raise nncf.ParameterNotSupportedError("TorchFX backend does not support backup_mode option.")

if any((awq, scale_estimation, gptq, lora_correction)):
raise nncf.ParameterNotSupportedError(
Expand Down

0 comments on commit 2dc74db

Please sign in to comment.