[feat] Streaming diffusion video generation output (#3737)

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-06-23 09:57:53 +00:00
1 parent b84c99c122
commit 3901ad8165
42 files changed
+4322 -65

No files matched your search

+8
View File
@@ -689,6 +689,9 @@ class OmniDiffusionConfig:
# Step mode settings
step_execution: bool = False
# Streaming mode settings
streaming_output: bool = False # Start (video) generation with initial prompt, but streaming output in chunks
# Maximum number of sequences to generate in a batch
max_num_seqs: int = 1
@@ -1164,6 +1167,11 @@ class DiffusionOutput:
# logged timings info, directly from Req.timings
# timings: Optional["RequestTimings"] = None
# Streaming info (the defaults should make sense for non-streaming mode)
finished: bool = True
chunk_index: int = 0
total_chunks: int = 1
# logged duration of stages
stage_durations: dict[str, float] = field(default_factory=dict)