From 7b707c9222f1c39bd4faa0b97cbe54cf07618c5d Mon Sep 17 00:00:00 2001 From: Cheng Wan <54331508+ch-wan@users.noreply.github.com> Date: Fri, 8 May 2026 14:27:35 -0700 Subject: [PATCH] =?UTF-8?q?disable=20the=20combination=20of=20--enable-two?= =?UTF-8?q?-batch-overlap=20and=20--enforce-s=E2=80=A6=20(#24720)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/sglang/srt/server_args.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/sglang/srt/server_args.py b/python/sglang/srt/server_args.py index fe375d6f7..5da9e4337 100644 --- a/python/sglang/srt/server_args.py +++ b/python/sglang/srt/server_args.py @@ -7022,6 +7022,11 @@ class ServerArgs: "When enabling two batch overlap, moe_a2a_backend cannot be 'none'." ) + if self.enable_two_batch_overlap and self.enforce_shared_experts_fusion: + raise ValueError( + "--enable-two-batch-overlap and --enforce-shared-experts-fusion cannot be used together." + ) + # Check communications compression if self.enable_quant_communications and self.tp_size == 1: raise ValueError(