From 6adcc34e1b8f5313faa0f0884fe7a8de430e38b1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 11 Jul 2026 06:49:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/core/inference/video.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/studio/backend/core/inference/video.py b/studio/backend/core/inference/video.py index f25c794634..35dcce802c 100644 --- a/studio/backend/core/inference/video.py +++ b/studio/backend/core/inference/video.py @@ -275,18 +275,27 @@ def compile_prewarm_decision( # speed=max compiles dynamic=False: a graph is keyed to the exact shape, # so a tiny warmup shape would compile a graph the user's request never # runs and the real shape would still pay its own compile. - return False, "skipped: speed=max compiles static per-shape graphs a warmup shape cannot serve" + return ( + False, + "skipped: speed=max compiles static per-shape graphs a warmup shape cannot serve", + ) if not bool(getattr(fam, "supports_compile_prewarm", True)): return False, "family opted out (supports_compile_prewarm=False)" if offload_policy != "none": # Offload wraps block forwards in disabled onload hooks (the compiled-inner # arming skips them) and every warmup forward would stream the full DiT # over PCIe -- all cost, none of the measured warmup benefit. - return False, "skipped: offload streams weights per forward; the warmup would only churn transfers" + return ( + False, + "skipped: offload streams weights per forward; the warmup would only churn transfers", + ) if cfg_parallel_active: # The CFG-parallel proxy serialises compile-sensitive runs through its own # per-(shape, steps, cache) planner; an unplanned warmup would bypass it. - return False, "skipped: CFG parallel plans compile-sensitive runs through its own dispatcher" + return ( + False, + "skipped: CFG parallel plans compile-sensitive runs through its own dispatcher", + ) return True, ( "background warmup generation absorbs the first-generation compile hitch " "(measured 11.3s -> 2.1s warm-cache, ~54s cold, HunyuanVideo-1.5-480p on B200)"