forked from EngineX-Cambricon/enginex-mlu370-vllm
add qwen3
This commit is contained in:
13
vllm-v0.6.2/tests/distributed/test_same_node.py
Normal file
13
vllm-v0.6.2/tests/distributed/test_same_node.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
|
||||
import torch.distributed as dist
|
||||
|
||||
from vllm.distributed.parallel_state import in_the_same_node_as
|
||||
|
||||
if __name__ == "__main__":
|
||||
dist.init_process_group(backend="gloo")
|
||||
test_result = all(in_the_same_node_as(dist.group.WORLD, source_rank=0))
|
||||
|
||||
expected = os.environ.get("VLLM_TEST_SAME_HOST", "1") == "1"
|
||||
assert test_result == expected, f"Expected {expected}, got {test_result}"
|
||||
print("Same node test passed!")
|
||||
Reference in New Issue
Block a user