[Refactor] Remove duplicate find_free_port (#20333)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
Wentao Ye
2025-07-01 22:03:07 -04:00
committed by GitHub
parent a0389e0554
commit 7058d7dd5d
2 changed files with 2 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ from torch.multiprocessing import (
spawn) # pyright: ignore[reportPrivateImportUsage]
from typing_extensions import Concatenate, ParamSpec
from vllm.model_executor.layers.fused_moe.utils import find_free_port
from vllm.utils import get_open_port
has_deep_ep = importlib.util.find_spec("deep_ep") is not None
if has_deep_ep:
@@ -95,7 +95,7 @@ def parallel_launch(
world_size,
world_size,
0,
f"tcp://{os.getenv('LOCALHOST', 'localhost')}:{find_free_port()}",
f"tcp://{os.getenv('LOCALHOST', 'localhost')}:{get_open_port()}",
worker,
) + args,
nprocs=world_size,