From ca7b8efd874a2d5b03c58ec6539dab095e323495 Mon Sep 17 00:00:00 2001 From: Mohammad Miadh Angkad <176301910+mmangkad@users.noreply.github.com> Date: Fri, 4 Sep 2026 13:07:04 +0800 Subject: [PATCH] [CI] Fix handle_platform_cp_compatibility reading legacy CP flags off the record (#37930) Co-authored-by: Mohammad Angkad --- python/sglang/srt/arg_groups/parallel_hook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/sglang/srt/arg_groups/parallel_hook.py b/python/sglang/srt/arg_groups/parallel_hook.py index a76111a59..c293c193d 100644 --- a/python/sglang/srt/arg_groups/parallel_hook.py +++ b/python/sglang/srt/arg_groups/parallel_hook.py @@ -566,8 +566,8 @@ def handle_platform_cp_compatibility(server_args: Any): is_protected_platform = platform.is_hip or platform.is_npu if not is_protected_platform: if ( - server_args.enable_prefill_context_parallel - or server_args.enable_dsa_prefill_context_parallel + cfg.enable_prefill_context_parallel + or cfg.enable_dsa_prefill_context_parallel ): raise ValueError( "Legacy prefill context-parallel options are supported only "