Skip to content

Commit

Permalink
fix gptq
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Oct 3, 2024
1 parent 1e71a04 commit 9a69ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brevitas/graph/gpxq.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def get_quant_weights(self, i, i1, permutation_list):
index = permutation_list[0][i]
q = self.layer.quant_weight(quant_input=self.quant_metadata).value.unsqueeze(
0) # [1, OC, 1]
q = q[:, :, i:i + 1] # [groups, OC/groups, 1]
q = q[:, :, index:index + 1] # [groups, OC/groups, 1]
else:
index = permutation_list[0][i]
subtensor_slice_list = [None, (index, index + 1)]
Expand Down

0 comments on commit 9a69ca3

Please sign in to comment.