Skip to content

Commit

Permalink
fix post merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mobicham committed Sep 30, 2024
1 parent 3b56533 commit a8843cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/transformers/quantizers/quantizer_hqq.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _process_model_after_weight_loading(self, model: "PreTrainedModel", **kwargs
return model

def is_serializable(self, safe_serialization=None):
return False
return True

@property
def is_trainable(self) -> bool:
Expand Down
4 changes: 3 additions & 1 deletion src/transformers/utils/quantization_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ def __init__(

for deprecated_key in ["quant_zero", "quant_scale", "offload_meta"]:
if deprecated_key in kwargs:
logger.info(deprecated_key + " is deprecated. This parameter will be ignored in quantization settings.")
logger.info(
deprecated_key + " is deprecated. This parameter will be ignored in quantization settings."
)

if axis is None:
axis = 1
Expand Down

0 comments on commit a8843cf

Please sign in to comment.