From 2c036f1eb120b3e175380ef15feef5a49aaea19b Mon Sep 17 00:00:00 2001 From: linhaifeng <1371675203@qq.com> Date: Sun, 1 Feb 2026 15:35:11 +0800 Subject: [PATCH] [Bugfix] fix the display error (inconsistent context) (#17699) Signed-off-by: linhaifeng <1371675203@qq.com> --- python/sglang/srt/multimodal/processors/step3_vl.py | 2 +- python/sglang/srt/multiplex/pdmux_context.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/sglang/srt/multimodal/processors/step3_vl.py b/python/sglang/srt/multimodal/processors/step3_vl.py index b6720fc5c..658ba5882 100644 --- a/python/sglang/srt/multimodal/processors/step3_vl.py +++ b/python/sglang/srt/multimodal/processors/step3_vl.py @@ -102,7 +102,7 @@ class ImagePatcher: steps: list[tuple[int, int]], img_rate_thr: float = 0.6, ) -> tuple[list[tuple[int, int, int, int]], tuple[int, int]]: - assert 1 >= img_rate_thr >= 0, "The `in_rate_thr` should lie in 0~1" + assert 1 >= img_rate_thr >= 0, "The `img_rate_thr` should lie in 0~1" windows = [] # Sliding windows. for size, step in zip(sizes, steps): diff --git a/python/sglang/srt/multiplex/pdmux_context.py b/python/sglang/srt/multiplex/pdmux_context.py index 81cc6e26a..05cde1371 100644 --- a/python/sglang/srt/multiplex/pdmux_context.py +++ b/python/sglang/srt/multiplex/pdmux_context.py @@ -33,7 +33,7 @@ def load_pdmux_config(config_path: str) -> PDMuxConfig: raise ValueError("Missing required field: sm_group_num") if raw["sm_group_num"] < 3: - raise ValueError("sm_group_num must greater than 3") + raise ValueError("sm_group_num must be >= 3") manual_divisions = raw.get("manual_divisions", [])