Skip to content

Commit

Permalink
Update vqlinear.py (#103)
Browse files Browse the repository at this point in the history
fix index unpack size
  • Loading branch information
laomao0 authored Oct 31, 2024
1 parent fde03de commit ace1393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vptq/layers/vqlinear.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,9 @@ def dequant(self):
indices, res_indices = self.unpack_index_tensor(
pack_tensor=self.indices,
index_bits=index_bits,
num_elements=self.in_features,
num_elements=self.group_size,
res_bits=index_res_bits,
num_res_elements=self.in_features,
num_res_elements=self.group_size,
index_dtype=torch.uint16,
)

Expand Down

0 comments on commit ace1393

Please sign in to comment.