[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:
@@ -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.",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user