Skip to content

Commit c2e75b3

Browse files
authored
remove duplicate code within cleanup_dist_env_and_memory (#22147)
Signed-off-by: Andy Xie <andy.xning@gmail.com>
1 parent 0d7db16 commit c2e75b3

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)