[CI] Fix B200 FusedMoE Layer Kernels hang on NVSHMEM IB setup (#61695)

Signed-off-by: mgoin <mgoin64@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Kevin H. Luu <khluu000@gmail.com>
This commit is contained in:
Misha Goin
2026-10-16 12:00:12 -04:00
committed by GitHub
co-authored by Claude Opus 5.5 Kevin H. Luu
parent 706791d516
commit cffc0cfa31
3 changed files with 28 additions and 4 deletions
+1 -1
View File
@@ -939,7 +939,7 @@ steps:
- label: ":nvidia: (B200) FusedMoE Layer Kernels" - label: ":nvidia: (B200) FusedMoE Layer Kernels"
key: kernels-fusedmoe-layer-test-2-b200s key: kernels-fusedmoe-layer-test-2-b200s
timeout_in_minutes: 90 timeout_in_minutes: 45
device: b200-k8s device: b200-k8s
num_devices: 2 num_devices: 2
source_file_dependencies: source_file_dependencies:
@@ -2,6 +2,7 @@
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import dataclasses import dataclasses
import os import os
import time
import traceback import traceback
from collections.abc import Callable from collections.abc import Callable
from typing import Any, Concatenate from typing import Any, Concatenate
@@ -23,6 +24,8 @@ from vllm.utils.network_utils import get_open_port
P = ParamSpec("P") P = ParamSpec("P")
LAUNCH_TIMEOUT_S = 900
@dataclasses.dataclass @dataclasses.dataclass
class ProcessGroupInfo: class ProcessGroupInfo:
@@ -148,7 +151,7 @@ def parallel_launch_with_config(
*args: P.args, *args: P.args,
**kwargs: P.kwargs, **kwargs: P.kwargs,
) -> None: ) -> None:
spawn( context = spawn(
_worker_parallel_launch, _worker_parallel_launch,
args=( args=(
world_size, world_size,
@@ -162,5 +165,16 @@ def parallel_launch_with_config(
) )
+ args, + args,
nprocs=world_size, nprocs=world_size,
join=True, join=False,
) )
# A worker stuck in communicator setup never exits, so bound the wait.
deadline = time.monotonic() + LAUNCH_TIMEOUT_S
while not context.join(timeout=max(0.0, deadline - time.monotonic())):
if time.monotonic() >= deadline:
for process in context.processes:
process.kill()
for process in context.processes:
process.join()
raise TimeoutError(
f"Parallel workers did not finish within {LAUNCH_TIMEOUT_S}s"
)
+11 -1
View File
@@ -127,6 +127,14 @@ if has_nixl_ep():
BACKENDS += ["nixl_ep"] BACKENDS += ["nixl_ep"]
DEEPEP_BACKENDS = {"deepep_high_throughput", "deepep_low_latency"} DEEPEP_BACKENDS = {"deepep_high_throughput", "deepep_low_latency"}
# These tests run on one node, where NVSHMEM reaches peers over NVLink, so
# keep it off the NICs to avoid depending on IB setup on shared CI hosts.
DEEPEP_SINGLE_NODE_NVSHMEM_ENV = {
"NVSHMEM_REMOTE_TRANSPORT": "none",
# DeepEP forces IBGDA on, so also hide the NICs from it.
"NVSHMEM_HCA_LIST": "none",
}
MORI_BACKENDS = {"mori_high_throughput", "mori_low_latency"} MORI_BACKENDS = {"mori_high_throughput", "mori_low_latency"}
QUANT_METHODS = [ QUANT_METHODS = [
@@ -2187,6 +2195,8 @@ def test_moe_layer(
rocm_deepep = current_platform.is_rocm() and backend in DEEPEP_BACKENDS rocm_deepep = current_platform.is_rocm() and backend in DEEPEP_BACKENDS
parallel_worker = _parallel_worker_rocm_deepep if rocm_deepep else _parallel_worker parallel_worker = _parallel_worker_rocm_deepep if rocm_deepep else _parallel_worker
cuda_deepep = current_platform.is_cuda() and backend in DEEPEP_BACKENDS
env_dict = DEEPEP_SINGLE_NODE_NVSHMEM_ENV if cuda_deepep else None
launch_failures: list[str] = [] launch_failures: list[str] = []
try: try:
@@ -2197,7 +2207,7 @@ def test_moe_layer(
world_size, world_size,
parallel_worker, parallel_worker,
vllm_config, vllm_config,
None, env_dict,
test_config_batch, test_config_batch,
verbosity, verbosity,
failure_report_path=failure_report_path, failure_report_path=failure_report_path,