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

Method load_state_dict

lightx2v/common/modules/weight_module.py:76–85  ·  view source on GitHub ↗
(self, destination, block_index, adapter_block_index=None)

Source from the content-addressed store, hash-verified

74 parameter.remove_lora()
75
76 def state_dict(self, destination=None):
77 if destination is None:
78 destination = {}
79 for _, param in self._parameters.items():
80 if param is not None and hasattr(param, "state_dict"):
81 param.state_dict(destination)
82 for _, module in self._modules.items():
83 if module is not None:
84 module.state_dict(destination)
85 return destination
86
87 def load_state_dict(self, destination, block_index, adapter_block_index=None):
88 if destination is None:

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected