[Refactor]: clean up diffusion scheduler interfaces (#5216)

Signed-off-by: Huang, Zeyu <11222265+fhfuih@users.noreply.github.com>
Signed-off-by: Zeyu Huang | 黃澤宇 <11222265+fhfuih@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
authored and GitHub committed 2026-07-22 14:05:49 +08:00
1 parent e2115fb642
commit e39f4dddfb
31 files changed
+319 -338

No files matched your search

@@ -48,7 +48,7 @@ from vllm_omni.diffusion.worker.request_batch import DiffusionRequestBatch, spli
if TYPE_CHECKING:
from vllm_omni.diffusion.worker.input_batch import InputBatch
from vllm_omni.diffusion.worker.utils import DiffusionRequestState
from vllm_omni.diffusion.worker.utils import StepRequestState
from vllm_omni.model_executor.model_loader.weight_utils import (
download_weights_from_hf_specific,
@@ -770,9 +770,9 @@ class QwenImagePipeline(
def prepare_encode(
self,
state: "DiffusionRequestState",
state: "StepRequestState",
**kwargs: Any,
) -> "DiffusionRequestState":
) -> "StepRequestState":
"""Populate *state* with encoded prompts, latents, timesteps, and CFG config."""
sampling = state.sampling
prompt, negative_prompt = self._extract_prompts([state.prompt] if state.prompt is not None else [])
@@ -959,7 +959,7 @@ class QwenImagePipeline(
def step_scheduler(
self,
state: "DiffusionRequestState",
state: "StepRequestState",
noise_pred: torch.Tensor,
**kwargs: Any,
) -> None:
@@ -980,7 +980,7 @@ class QwenImagePipeline(
def post_decode(
self,
state: "DiffusionRequestState",
state: "StepRequestState",
**kwargs: Any,
) -> DiffusionOutput:
"""Decode final latents from *state*."""