support conv1d
This commit is contained in:
parent
ac41f68532
commit
c1b7c7647d
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class GPTQ:
|
|||
W = layer.weight.data.clone()
|
||||
if isinstance(self.layer, nn.Conv2d):
|
||||
W = W.flatten(1)
|
||||
if isinstance(self.layer, transformers.Conv1D):
|
||||
if isinstance(self.layer, transformers.pytorch_utils.Conv1D):
|
||||
W = W.t()
|
||||
self.rows = W.shape[0]
|
||||
self.columns = W.shape[1]
|
||||
|
|
Loading…
Add table
Reference in a new issue