From 06992c92ad4494fe9f9636e75be3e35040512447 Mon Sep 17 00:00:00 2001 From: Bojiang Li <327132355+bojiang-li@users.noreply.github.com> Date: Mon, 14 Sep 2026 23:25:46 -0700 Subject: [PATCH] [Fix] Aggregate all IPC weight update responses (#39534) Signed-off-by: bojiang-li <327132355+bojiang-li@users.noreply.github.com> Co-authored-by: hnyls2002 Co-authored-by: Liangsheng Yin --- python/sglang/srt/managers/tokenizer_control_mixin.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python/sglang/srt/managers/tokenizer_control_mixin.py b/python/sglang/srt/managers/tokenizer_control_mixin.py index dca687eb3..69ef86803 100644 --- a/python/sglang/srt/managers/tokenizer_control_mixin.py +++ b/python/sglang/srt/managers/tokenizer_control_mixin.py @@ -556,13 +556,12 @@ class TokenizerControlMixin: async with self.is_pause_cond: is_paused = self.is_pause if is_paused: - result = (await self.update_weights_from_ipc_communicator(obj))[0] - success, message = result.success, result.message + results = await self.update_weights_from_ipc_communicator(obj) if not is_paused: async with self.model_update_lock.writer_lock: - result = (await self.update_weights_from_ipc_communicator(obj))[0] - success, message = result.success, result.message + results = await self.update_weights_from_ipc_communicator(obj) + success, message = FanOutCommunicator.merge_results(results) except Exception as e: error_msg = f"IPC weight update failed: {str(e)}" logger.error(error_msg)