Enable or disable LoRA layers without unloading weights. Args: enabled: If True, LoRA layers are active; if False, only base model is used.
(self, enabled: bool)
| 339 | self.tts_model.reset_lora_weights() |
| 340 | |
| 341 | def set_lora_enabled(self, enabled: bool): |
| 342 | """Enable or disable LoRA layers without unloading weights. |
| 343 | |
| 344 | Args: |
| 345 | enabled: If True, LoRA layers are active; if False, only base model is used. |
| 346 | """ |
| 347 | self.tts_model.set_lora_enabled(enabled) |
| 348 | |
| 349 | def get_lora_state_dict(self) -> dict: |
| 350 | """Get current LoRA parameters state dict. |
no outgoing calls