From da0c0260841ebc3eb3094e530551665459c4c40d Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Sat, 26 Jul 2025 18:20:39 +0800 Subject: [PATCH] Tiny assert EPLB is used together with expert parallel (#8381) --- python/sglang/srt/server_args.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/sglang/srt/server_args.py b/python/sglang/srt/server_args.py index 6fec17bc0..27091dc23 100644 --- a/python/sglang/srt/server_args.py +++ b/python/sglang/srt/server_args.py @@ -458,6 +458,9 @@ class ServerArgs: "EPLB is enabled or init_expert_location is provided. ep_dispatch_algorithm is configured." ) + if self.enable_eplb: + assert self.enable_ep_moe or self.enable_deepep_moe + if self.enable_expert_distribution_metrics and ( self.expert_distribution_recorder_mode is None ):