From 977703aa94fa946e19a70de4c105625600255b66 Mon Sep 17 00:00:00 2001 From: SandishKumarHN Date: Fri, 22 May 2026 19:19:24 +0000 Subject: [PATCH] [RFC][EPLB][#32028] Remove dead torch.accelerator.synchronize() from sync path (#40733) Signed-off-by: SandishKumarHN <3078999+SandishKumarHN@users.noreply.github.com> Co-authored-by: SandishKumarHN <3078999+SandishKumarHN@users.noreply.github.com> --- vllm/distributed/eplb/rebalance_execute.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vllm/distributed/eplb/rebalance_execute.py b/vllm/distributed/eplb/rebalance_execute.py index cf8db92648..50b7013295 100644 --- a/vllm/distributed/eplb/rebalance_execute.py +++ b/vllm/distributed/eplb/rebalance_execute.py @@ -584,10 +584,6 @@ def rearrange_expert_weights_inplace( # have the same shape. weights_buffer = [torch.empty_like(w) for w in first_layer_weights] - # NOTE(bowen): We need this synchronize to run, but I don't know why. - # If you figure out the reason, please let me know -- thank you! - torch.accelerator.synchronize() - old_global_expert_indices_cpu = old_global_expert_indices.cpu().numpy() new_global_expert_indices_cpu = new_global_expert_indices.cpu().numpy()