Skip to content

Commit c362f3c

Browse files
andyxningjinzhen-lin
authored andcommitted
remove duplicate code within cleanup_dist_env_and_memory (vllm-project#22147)
Signed-off-by: Andy Xie <[email protected]> Signed-off-by: Jinzhen Lin <[email protected]>
1 parent a2b02eb commit c362f3c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

vllm/distributed/parallel_state.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,8 +1238,6 @@ def destroy_distributed_environment():
12381238
def cleanup_dist_env_and_memory(shutdown_ray: bool = False):
12391239
destroy_model_parallel()
12401240
destroy_distributed_environment()
1241-
with contextlib.suppress(AssertionError):
1242-
torch.distributed.destroy_process_group()
12431241
if shutdown_ray:
12441242
import ray # Lazy import Ray
12451243
ray.shutdown()

0 commit comments

Comments
 (0)