vllm_omni.diffusion.model_loader.host_weight_plan ¶
Loader-owned host-weight plans shared with diffusion offload backends.
HostWeightPlan dataclass ¶
Complete, prevalidated host backing consumed by an offload backend.
lease_carrier class-attribute instance-attribute ¶
lease_carrier: HostWeightLeaseCarrier | None = None
HostWeightPlanResult dataclass ¶
A complete plan or a fail-closed reason to use the ordinary loader.
TensorBinding dataclass ¶
build_checkpoint_mmap_plan ¶
build_checkpoint_mmap_plan(
pipeline: Module,
*,
dit_modules: Sequence[tuple[str, Module]],
sources: Sequence[object],
model_path: str | None,
tensor_parallel_size: int,
use_hsdp: bool,
online_quantization: bool,
has_distilled_lora: bool = False,
) -> HostWeightPlanResult
Build a complete direct-checkpoint plan or return a fallback reason.