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

Method load

lightx2v/utils/ltx2_utils.py:174–175  ·  view source on GitHub ↗

Load state dict from path or paths (for sharded model storage) and apply sd_ops

(self, path: str | list[str], sd_ops: SDOps | None = None, device: torch.device | None = None)

Source from the content-addressed store, hash-verified

172 """Load metadata from path"""
173
174 def load(self, path: str | list[str], sd_ops: SDOps | None = None, device: torch.device | None = None) -> StateDict:
175 """Load state dict from path or paths (for sharded model storage) and apply sd_ops"""
176
177
178class SafetensorsStateDictLoader(StateDictLoader):

Callers 15

_load_trace_eventsFunction · 0.45
load_model_weightsFunction · 0.45
load_lora_weightsFunction · 0.45
load_model_weightsFunction · 0.45
load_model_weightsFunction · 0.45
mainFunction · 0.45
convert_weightsFunction · 0.45
load_checkpointFunction · 0.45
run_depth_midas_smallFunction · 0.45
set_infer_config_jsonMethod · 0.45
load_tensorMethod · 0.45

Calls

no outgoing calls

Tested by 4

mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36