Skip to content

Commit

Permalink
Update base_blockwise_quantization.py (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
gushiqiao authored Jan 14, 2025
1 parent 74387fe commit 9943e79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ def scaling_input(self, x, scales, is_gqa):
batch_scale = scales_tmp.view(1, -1)
x_tmp[i] = batch / batch_scale
else:
x_tmp = x / scales.view(1, -1)
x_tmp = x / scales_tmp.view(1, -1)
return x_tmp

@torch.no_grad()
Expand Down

0 comments on commit 9943e79

Please sign in to comment.