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

Method add_module

lightx2v/common/modules/weight_module.py:12–14  ·  view source on GitHub ↗
(self, name, module)

Source from the content-addressed store, hash-verified

10 def register_offload_group(self, blocks, device_slots, checkpoint_prefixes):
11 from lightx2v.common.offload.block_loader import OffloadGroup
12
13 if self.offload_group is not None:
14 raise ValueError("A weight container can register only one offload group")
15 self.offload_group = OffloadGroup(blocks, device_slots, tuple(checkpoint_prefixes))
16
17 def is_empty(self):

Callers 15

appendMethod · 0.80
__setitem__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected