Skip to content

Commit

Permalink
g_idx in _process_quantization
Browse files Browse the repository at this point in the history
  • Loading branch information
horheynm committed Jul 3, 2024
1 parent bea971c commit 3ad3d0b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@ def fasterprune(

elif hasattr(self.layer, "quantization_scheme"):
quant_scheme = self.layer.quantization_scheme
breakpoint()
actorder = quant_scheme.weights.actorder
if quant_scheme.weights is not None:

if quant_scheme.weights is not None:
if actorder:
perm = torch.argsort(torch.diag(self.H), descending=True)
W = W[:, perm]
Expand Down

0 comments on commit 3ad3d0b

Please sign in to comment.