hqq - fix weight check in check_quantized_param (#30748)
* hqq - fix weight check in check_quantized_param * ruff format
This commit is contained in:
parent
8ce4fefc52
commit
e0c3cee170
|
@ -101,7 +101,7 @@ class HqqHfQuantizer(HfQuantizer):
|
|||
) -> bool:
|
||||
module, tensor_name = get_module_from_name(model, param_name)
|
||||
|
||||
return isinstance(module, torch.nn.Linear)
|
||||
return isinstance(module, torch.nn.Linear) and (tensor_name == "weight")
|
||||
|
||||
def create_quantized_param(
|
||||
self,
|
||||
|
|
Loading…
Reference in New Issue