MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / remove_lora

Method remove_lora

lightx2v/common/modules/weight_module.py:56–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected