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

Method named_parameters

lightx2v/common/modules/weight_module.py:95–101  ·  view source on GitHub ↗
(self, prefix="")

Source from the content-addressed store, hash-verified

93 for _, module in self._modules.items():
94 if module is not None:
95 module.load_state_dict(destination, block_index, adapter_block_index)
96 return destination
97
98 def load_state_dict_from_disk(self, block_index, adapter_block_index=None):
99 for _, param in self._parameters.items():
100 if param is not None and hasattr(param, "load_state_dict_from_disk"):
101 param.load_state_dict_from_disk(block_index, adapter_block_index)
102 for _, module in self._modules.items():
103 if module is not None:
104 module.load_state_dict_from_disk(block_index, adapter_block_index)

Callers 5

set_lora_trainableMethod · 0.80
param_groupsMethod · 0.80

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected