(self, destination=None)
| 63 | for _, parameter in self._parameters.items(): |
| 64 | if hasattr(parameter, "update_lora"): |
| 65 | parameter.update_lora(weight_dict, strength) |
| 66 | |
| 67 | def remove_lora(self): |
| 68 | for _, module in self._modules.items(): |
| 69 | if hasattr(module, "remove_lora"): |
| 70 | module.remove_lora() |
| 71 | |
| 72 | for _, parameter in self._parameters.items(): |
| 73 | if hasattr(parameter, "remove_lora"): |
| 74 | parameter.remove_lora() |
| 75 | |
| 76 | def state_dict(self, destination=None): |
| 77 | if destination is None: |