[Model] Make the dummy-run recipe feature-neutral

Per review, the warmup recipe is a property of the model's request
geometry, not of distributed layerwise offload: rename
dlo_dummy_run_recipe to dummy_run_recipe and drop the DLO gate in
_make_dummy_request. A model whose geometry needs recipe-specific sampling
arguments warms up at startup whatever features are enabled — under DLO
the generation also primes the component cache-retention budget; without
it, the same warmup covers any other first-request cost. Validated both
ways on L20X: DLO boot unchanged (releases stay in the startup window) and
a non-DLO MiniMax-H3 boot now runs the warmup and serves normally.

Signed-off-by: hsliuustc0106 <liuhongsheng4@huawei.com>
This commit is contained in:
hsliuustc0106 committed 2026-08-26 15:48:07 +08:00
1 parent 33297bdb9d
commit e1c4b6153a
6 files changed
+53 -49

No files matched your search

@@ -704,14 +704,14 @@ class MiniMaxH3Pipeline(
"post_decode",
]
dummy_run_num_frames: ClassVar[int] = 0
# Startup warmup used only when distributed layerwise offload is enabled:
# the generic dummy run cannot satisfy t2va's required sampling arguments
# (explicit aspect ratio, bounded duration). Duration is the only workload
# variable at the fixed 768 short edge, so warming at the maximum makes the
# learned cache-retention peak dominate every production request and moves
# all cold-start flushes ahead of real traffic, at the cost of one
# max-length generation in boot time.
dlo_dummy_run_recipe: ClassVar[Mapping[str, Any] | None] = {
# Startup warmup recipe: the generic dummy run cannot satisfy t2va's
# required sampling arguments (explicit aspect ratio, bounded duration).
# Duration is the only workload variable at the fixed 768 short edge, so
# warming at the maximum covers every production request — under DLO this
# makes the learned cache-retention peak dominate, moving all cold-start
# flushes ahead of real traffic. The cost is one max-length generation in
# boot time whatever features are enabled.
dummy_run_recipe: ClassVar[Mapping[str, Any] | None] = {
"task": "t2va",
"duration": MINIMAX_H3_MAX_OUTPUT_SECONDS,
"aspect_ratio": "16:9",