[Chore] Separate out system utilities from vllm.utils (#27201)

Signed-off-by: dongbo910220 <1275604947@qq.com>
Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
dongbo910220
2025-10-22 20:25:25 +00:00
committed by GitHub
co-authored by Cyrus Leung
parent 5beacce2ea
commit a0003b56b0
25 changed files with 199 additions and 155 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ from vllm.distributed.parallel_state import (
get_tp_group,
init_distributed_environment,
)
from vllm.utils import update_environment_variables
from vllm.utils.system_utils import update_environment_variables
def distributed_run(fn, world_size):
@@ -23,7 +23,7 @@ from vllm.distributed.parallel_state import (
initialize_model_parallel,
)
from vllm.platforms import current_platform
from vllm.utils import update_environment_variables
from vllm.utils.system_utils import update_environment_variables
torch.manual_seed(42)
random.seed(44)
+1 -1
View File
@@ -18,7 +18,7 @@ from vllm.distributed.parallel_state import (
graph_capture,
init_distributed_environment,
)
from vllm.utils import update_environment_variables
from vllm.utils.system_utils import update_environment_variables
def distributed_run(fn, world_size):
+1 -1
View File
@@ -10,8 +10,8 @@ import torch.distributed as dist
from vllm.distributed.device_communicators.shm_broadcast import MessageQueue
from vllm.distributed.utils import StatelessProcessGroup
from vllm.utils import update_environment_variables
from vllm.utils.network_utils import get_open_port
from vllm.utils.system_utils import update_environment_variables
def get_arrays(n: int, seed: int = 0) -> list[np.ndarray]:
+1 -1
View File
@@ -23,7 +23,7 @@ from vllm.distributed.parallel_state import (
from vllm.engine.arg_utils import EngineArgs
from vllm.engine.llm_engine import LLMEngine
from vllm.platforms import current_platform
from vllm.utils import update_environment_variables
from vllm.utils.system_utils import update_environment_variables
torch.manual_seed(42)
random.seed(44)
+1 -1
View File
@@ -10,8 +10,8 @@ import torch
import vllm.envs as envs
from vllm.distributed.device_communicators.pynccl import PyNcclCommunicator
from vllm.distributed.utils import StatelessProcessGroup
from vllm.utils import update_environment_variables
from vllm.utils.network_utils import get_open_port
from vllm.utils.system_utils import update_environment_variables
from vllm.utils.torch_utils import cuda_device_count_stateless
from ..utils import multi_gpu_test