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(