[Misc]Fix BitAndBytes exception messages (#7626)
This commit is contained in:
parent
832163b875
commit
1ef13cf92f
@ -883,11 +883,11 @@ class BitsAndBytesModelLoader(BaseModelLoader):
|
|||||||
if not hasattr(model, 'load_weights'):
|
if not hasattr(model, 'load_weights'):
|
||||||
raise AttributeError(
|
raise AttributeError(
|
||||||
"The required method 'load_weights' is not defined in class"
|
"The required method 'load_weights' is not defined in class"
|
||||||
f" {type(self).__name__}.")
|
f" {type(model).__name__}.")
|
||||||
|
|
||||||
if not hasattr(model, 'bitsandbytes_stacked_params_mapping'):
|
if not hasattr(model, 'bitsandbytes_stacked_params_mapping'):
|
||||||
raise AttributeError(
|
raise AttributeError(
|
||||||
f"Model {type(self).__name__} does not support BitsAndBytes "
|
f"Model {type(model).__name__} does not support BitsAndBytes "
|
||||||
"quantization yet.")
|
"quantization yet.")
|
||||||
|
|
||||||
logger.info("Loading weights with BitsAndBytes quantization. "
|
logger.info("Loading weights with BitsAndBytes quantization. "
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user