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

Method state_dict

lightx2v/common/modules/weight_module.py:65–74  ·  view source on GitHub ↗
(self, destination=None)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected