| 389 | """ |
| 390 | |
| 391 | def __init__(self, *args, lora_layer: Optional[LoRALinearLayer] = None, **kwargs): |
| 392 | deprecation_message = "Use of `LoRACompatibleLinear` is deprecated. Please switch to PEFT backend by installing PEFT: `pip install peft`." |
| 393 | deprecate("LoRACompatibleLinear", "1.0.0", deprecation_message) |
| 394 | |
| 395 | super().__init__(*args, **kwargs) |
| 396 | self.lora_layer = lora_layer |
| 397 | |
| 398 | def set_lora_layer(self, lora_layer: Optional[LoRALinearLayer]): |
| 399 | deprecation_message = "Use of `set_lora_layer()` is deprecated. Please switch to PEFT backend by installing PEFT: `pip install peft`." |