[Feat] Add support for per GPU worker RDMA NIC selection (#42083)

Signed-off-by: Raj Joshi <rajjoshi@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Raj Joshi
2026-05-28 12:45:23 -07:00
committed by GitHub
co-authored by Cursor
parent 085ac221a3
commit 9090368b65
7 changed files with 365 additions and 0 deletions
+4
View File
@@ -16,6 +16,7 @@ from vllm.platforms import current_platform
from vllm.utils.network_utils import get_distributed_init_method, get_ip, get_open_port
from vllm.v1.core.sched.output import GrammarOutput, SchedulerOutput
from vllm.v1.executor.abstract import Executor
from vllm.v1.executor.vllm_net_devices import set_worker_net_device
from vllm.v1.outputs import AsyncModelRunnerOutput, DraftTokenIds, ModelRunnerOutput
from vllm.v1.serial_utils import run_method
from vllm.v1.worker.worker_base import WorkerWrapperBase
@@ -56,6 +57,9 @@ class UniProcExecutor(Executor):
shared_worker_lock=Lock(),
)
# Set net device env vars for the worker if VLLM_GPU_NIC_PCIE_MAPPING is set
set_worker_net_device(local_rank, self.vllm_config)
self.driver_worker.init_worker(all_kwargs=[kwargs])
self.driver_worker.init_device()