Skip to content

Commit

Permalink
Fix double bias (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
casper-hansen authored Mar 2, 2024
1 parent 68c727a commit d9dc8e5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion awq/modules/linear/gemm.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ def forward(self, x):
if input_dtype != torch.float16:
out = out.to(dtype=input_dtype)

out = out + self.bias if self.bias is not None else out
return out.reshape(out_shape)

def extra_repr(self) -> str:
Expand Down

0 comments on commit d9dc8e5

Please sign in to comment.