mirror of
https://github.com/wassname/peft.git
synced 2026-09-09 11:28:32 +08:00
revert
This commit is contained in:
@@ -401,9 +401,7 @@ class Linear(nn.Linear, LoraLayer):
|
||||
)
|
||||
self.merged = False
|
||||
|
||||
result = F.linear(x, transpose(self.weight, self.fan_in_fan_out), bias=self.bias)
|
||||
|
||||
return result
|
||||
return F.linear(x, transpose(self.weight, self.fan_in_fan_out), bias=self.bias)
|
||||
elif self.r > 0 and not self.merged:
|
||||
result = F.linear(x, transpose(self.weight, self.fan_in_fan_out), bias=self.bias)
|
||||
if self.r > 0:
|
||||
|
||||
Reference in New Issue
Block a user