diff --git a/python/sglang/multimodal_gen/configs/sample/flux.py b/python/sglang/multimodal_gen/configs/sample/flux.py index 657142f2f..7f95cd98d 100644 --- a/python/sglang/multimodal_gen/configs/sample/flux.py +++ b/python/sglang/multimodal_gen/configs/sample/flux.py @@ -8,9 +8,6 @@ from sglang.multimodal_gen.configs.sample.sampling_params import SamplingParams @dataclass class FluxSamplingParams(SamplingParams): - # Video parameters - # height: int = 1024 - # width: int = 1024 num_frames: int = 1 # Denoising stage guidance_scale: float = 1.0 diff --git a/python/sglang/multimodal_gen/configs/sample/qwenimage.py b/python/sglang/multimodal_gen/configs/sample/qwenimage.py index c32703955..9bec1b172 100644 --- a/python/sglang/multimodal_gen/configs/sample/qwenimage.py +++ b/python/sglang/multimodal_gen/configs/sample/qwenimage.py @@ -8,9 +8,6 @@ from sglang.multimodal_gen.configs.sample.sampling_params import SamplingParams @dataclass class QwenImageSamplingParams(SamplingParams): - # Video parameters - # height: int = 1024 - # width: int = 1024 negative_prompt: str = " " num_frames: int = 1 # Denoising stage diff --git a/python/sglang/multimodal_gen/configs/sample/sampling_params.py b/python/sglang/multimodal_gen/configs/sample/sampling_params.py index 3a7a8ad49..07ab8950d 100644 --- a/python/sglang/multimodal_gen/configs/sample/sampling_params.py +++ b/python/sglang/multimodal_gen/configs/sample/sampling_params.py @@ -192,10 +192,8 @@ class SamplingParams: if self.width is None: self.width_not_provided = True - self.width = 1280 if self.height is None: self.height_not_provided = True - self.height = 720 def check_sampling_param(self): if self.prompt_path and not self.prompt_path.endswith(".txt"): diff --git a/python/sglang/multimodal_gen/runtime/entrypoints/utils.py b/python/sglang/multimodal_gen/runtime/entrypoints/utils.py index 74171a865..7d84602a9 100644 --- a/python/sglang/multimodal_gen/runtime/entrypoints/utils.py +++ b/python/sglang/multimodal_gen/runtime/entrypoints/utils.py @@ -35,7 +35,9 @@ def prepare_request( req = Req(**filtered_params, VSA_sparsity=server_args.VSA_sparsity) req.adjust_size(server_args) - if req.width <= 0 or req.height <= 0: + if (req.width is not None and req.width <= 0) or ( + req.height is not None and req.height <= 0 + ): raise ValueError( f"Height, width must be positive integers, got " f"height={req.height}, width={req.width}" diff --git a/python/sglang/multimodal_gen/runtime/pipelines_core/schedule_batch.py b/python/sglang/multimodal_gen/runtime/pipelines_core/schedule_batch.py index ec75af00f..ef871b1cc 100644 --- a/python/sglang/multimodal_gen/runtime/pipelines_core/schedule_batch.py +++ b/python/sglang/multimodal_gen/runtime/pipelines_core/schedule_batch.py @@ -219,9 +219,7 @@ class Req: self.guidance_scale_2 = self.guidance_scale def adjust_size(self, server_args: ServerArgs): - if self.height is None or self.width is None: - self.width = 1280 - self.height = 720 + pass def __str__(self): return pprint.pformat(asdict(self), indent=2, width=120)