Skip to content

Commit

Permalink
Fix (gptq): typo in name variable (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 authored Jul 31, 2023
1 parent 3c5ca54 commit 461a0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brevitas/graph/gptq.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def single_layer_update(self, percdamp=.01):
perm = permutation_list[group_index]
q = q_groups[group_index] # [OC/groups]
w = weight[group_index, :, perm[i1:i2][i]].to(torch.float32) # [OC/groups]
d = h_inv[group_index, i, i] # [1]
d = h_inv_block[group_index, i, i] # [1]
error = (w - q) / d # [OC/groups]
error_block[group_index, :, i] = error
# We need to update the original weights
Expand Down

0 comments on commit 461a0e0

Please sign in to comment.