Unverified Commit bca55b55 authored by Random Fly's avatar Random Fly Committed by GitHub
Browse files

[Bugfix] fix adding bias twice in ipex GPTQ quantization (#18363)


Signed-off-by: default avatarrand-fly <randfly@outlook.com>
parent d9813967
......@@ -181,8 +181,6 @@ class IPEXGPTQLinearMethod(GPTQLinearMethod):
bias: Optional[torch.Tensor] = None) -> torch.Tensor:
reshaped_x = x.reshape(-1, x.shape[-1])
out = layer.ipex_qlinear(reshaped_x)
if bias is not None:
out.add_(bias)
return out.reshape(x.shape[:-1] + (layer.ipex_output_size, ))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment