From 6d7b6696d425190c96234eb59c7d4844f72f2c7c Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Tue, 3 Jun 2025 02:13:33 +0800 Subject: [PATCH] Tiny fix EPLB assertion about rebalancing period and recorder window size (#6813) --- python/sglang/srt/managers/eplb_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/sglang/srt/managers/eplb_manager.py b/python/sglang/srt/managers/eplb_manager.py index fd136df20..44fcd4555 100644 --- a/python/sglang/srt/managers/eplb_manager.py +++ b/python/sglang/srt/managers/eplb_manager.py @@ -24,8 +24,8 @@ class EPLBManager: # Otherwise, the circular buffer will contain stale data. If the case is needed, it can be implemented. assert ( self._server_args.eplb_rebalance_num_iterations - <= self._server_args.expert_distribution_recorder_buffer_size - ), "eplb_rebalance_num_iterations must be less than expert_distribution_recorder_buffer_size" + >= self._server_args.expert_distribution_recorder_buffer_size + ), "eplb_rebalance_num_iterations must be greater than expert_distribution_recorder_buffer_size" if not get_global_expert_distribution_recorder().recording: get_global_expert_distribution_recorder().start_record()