[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:
31 files changed
+319
-338
No files matched your search
@@ -33,7 +33,7 @@ def consume_pipeline_stage_durations(pipeline: Any) -> dict[str, float]:
|
||||
|
||||
|
||||
def merge_stage_durations(
|
||||
state: DiffusionRequestState,
|
||||
state: StepRequestState,
|
||||
stage_durations: dict[str, float],
|
||||
) -> None:
|
||||
if not stage_durations:
|
||||
@@ -43,7 +43,7 @@ def merge_stage_durations(
|
||||
|
||||
|
||||
def attach_stage_durations(
|
||||
state: DiffusionRequestState,
|
||||
state: StepRequestState,
|
||||
output: DiffusionOutput,
|
||||
) -> None:
|
||||
if state.stage_durations:
|
||||
@@ -51,7 +51,7 @@ def attach_stage_durations(
|
||||
|
||||
|
||||
@dataclass
|
||||
class DiffusionRequestState:
|
||||
class StepRequestState:
|
||||
"""Per-request mutable state across all pipeline stages.
|
||||
|
||||
Owned by Runner and passed through all step-execution stages:
|
||||
|
||||
Reference in new issue
Block a user