register the weight and bias

This commit is contained in:
marcoyang 2024-03-14 12:20:45 +08:00
parent 6806810666
commit c0924f0a2f

View File

@ -1764,6 +1764,8 @@ class ActivationDropoutAndLinear_lora(torch.nn.Module):
initial_scale=initial_scale,
bias=bias,
)
self.weight = self.l.weight
self.register_parameter("bias", self.l.bias)
if activation == "SwooshL":
self.activation = SwooshL()