(self)
| 54 | for _, parameter in self._parameters.items(): |
| 55 | if hasattr(parameter, "register_lora"): |
| 56 | parameter.register_lora(weight_dict, strength) |
| 57 | |
| 58 | def update_lora(self, weight_dict, strength): |
| 59 | for _, module in self._modules.items(): |
| 60 | if hasattr(module, "update_lora"): |
| 61 | module.update_lora(weight_dict, strength) |
| 62 | |
| 63 | for _, parameter in self._parameters.items(): |
| 64 | if hasattr(parameter, "update_lora"): |
| 65 | parameter.update_lora(weight_dict, strength) |
| 66 |