vllm_omni.diffusion.request ¶
OmniDiffusionRequest dataclass ¶
Input payload for a single diffusion request.
This dataclass contains the prompt and sampling parameters for the diffusion pipeline execution. It also contains a request_id for other components to trace this request and its outputs. The runner wraps one or more requests into a DiffusionRequestBatch before pipeline execution.
batch_compatibility_key class-attribute instance-attribute ¶
diffusion_kv_requests class-attribute instance-attribute ¶
diffusion_kv_requests: (
tuple[DiffusionKVRequest, ...] | None
) = None
kv_transfer_params class-attribute instance-attribute ¶
payload_sender_info class-attribute instance-attribute ¶
resolve_video_num_frames ¶
resolve_video_num_frames(
num_frames: int | None,
*,
default_num_frames: int,
is_dummy_run: bool,
) -> int
Resolve the shared image-model frame sentinel for a video pipeline.
OmniDiffusionSamplingParams defaults num_frames to one for image models, so an omitted video API field reaches model code as 1. Video pipelines with a different default must materialize it at their boundary. Startup profiling intentionally requests one frame, however, and must stay lightweight.