(self, input)
| 165 | self.w_down = None |
| 166 | |
| 167 | def forward(self, input): |
| 168 | if self.lora_scale is None: |
| 169 | self.lora_scale = 1.0 |
| 170 | if self.lora_linear_layer is None: |
| 171 | return self.regular_linear_layer(input) |
| 172 | return self.regular_linear_layer(input) + (self.lora_scale * self.lora_linear_layer(input)) |
| 173 | |
| 174 | |
| 175 | class LoRALinearLayer(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected