[Diffusion] Integrate no-AllGather DLO with Host Weight Runtime (#6486)

Signed-off-by: Hongsheng Liu <liuhongsheng4@huawei.com>
Signed-off-by: hsliuustc0106 <hsliuustc0106@users.noreply.github.com>
Co-authored-by: hsliuustc0106 <hsliuustc0106@users.noreply.github.com>
This commit is contained in:
Hongsheng Liuandhsliuustc0106 authored and GitHub committed 2026-08-25 08:03:53 +08:00
1 parent 8fdb719a41
commit 8360346a66
27 files changed
+1640 -51

No files matched your search

@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""Loader-owned host-weight plans shared with diffusion offload backends."""
from __future__ import annotations
@@ -9,6 +9,7 @@ import json
import os
from collections.abc import Callable, Sequence
from dataclasses import dataclass
from typing import TYPE_CHECKING
import torch
from safetensors import safe_open
@@ -21,6 +22,9 @@ from vllm_omni.diffusion.model_loader.checkpoint_adapters import (
logger = init_logger(__name__)
if TYPE_CHECKING:
from vllm_omni.host_weight_runtime import HostWeightLeaseCarrier
TensorTransform = Callable[[torch.Tensor], torch.Tensor]
@@ -40,6 +44,7 @@ class HostWeightPlan:
backing_kind: str
bindings: dict[str, TensorBinding]
planned_source_prefixes: frozenset[str] = frozenset()
lease_carrier: HostWeightLeaseCarrier | None = None
@dataclass(frozen=True)