[Bugfix][CPU][DiffusionGemma] Support narrower canvas w/ sync scheduling (#59107)

Signed-off-by: ojeda-e <estefania.b.ojeda@gmail.com>
This commit is contained in:
Mia Ojeda
2026-09-29 23:28:50 -04:00
committed by GitHub
parent 1b77cc3d67
commit e006d761a5
7 changed files with 78 additions and 41 deletions
-10
View File
@@ -15,7 +15,6 @@ def validate_diffusion_sampling_params(
*,
canvas_length: int | None,
vocab_size: int,
async_scheduling: bool | None,
) -> None:
"""Validate request options and normalize one-canvas reads at admission."""
extra = params.extra_args
@@ -105,12 +104,3 @@ def validate_diffusion_sampling_params(
bool(params.logprob_token_ids),
"diffusion_constrained needs logprob_token_ids: they are the allowed set.",
)
check(
bool(async_scheduling)
or width is None
or canvas_length is None
or width == canvas_length,
"A diffusion_canvas_length smaller than the served canvas "
"requires --async-scheduling.",
)