[UT][Hardware] let torchrun example tests use the default backend (#39879)

Signed-off-by: zhenwei-intel <zhenwei.liu@intel.com>
This commit is contained in:
liuzhenwei
2026-04-23 16:22:28 +08:00
committed by GitHub
parent 3ed5231c6a
commit 4a79262e0f
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ import torch.distributed as dist
from vllm import LLM, SamplingParams
from vllm.distributed.parallel_state import get_world_group
dist.init_process_group(backend="gloo")
# Let PyTorch choose the WORLD backend for the current device type.
dist.init_process_group()
# Create prompts
prompts = [
@@ -10,7 +10,8 @@ import torch.distributed as dist
from vllm import LLM, SamplingParams
from vllm.distributed.parallel_state import get_tp_group, get_world_group
dist.init_process_group(backend="gloo")
# Let PyTorch choose the WORLD backend for the current device type.
dist.init_process_group()
# Create prompts
prompts = [