Skip to content

Commit f8f1a88

Browse files
dongbo910220DarkLight1337
authored andcommitted
[Chore] Separate out system utilities from vllm.utils (vllm-project#27201)
Signed-off-by: dongbo910220 <1275604947@qq.com> Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
1 parent 861d534 commit f8f1a88

25 files changed

+203
-159
lines changed

tests/compile/test_async_tp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
initialize_model_parallel,
2626
)
2727
from vllm.platforms import current_platform
28-
from vllm.utils import update_environment_variables
28+
from vllm.utils.system_utils import update_environment_variables
2929

3030
from ..models.registry import HF_EXAMPLE_MODELS
3131
from ..utils import (

tests/compile/test_fusion_all_reduce.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
GroupShape,
3232
)
3333
from vllm.platforms import current_platform
34-
from vllm.utils import update_environment_variables
34+
from vllm.utils.system_utils import update_environment_variables
3535

3636
from ..utils import has_module_attribute, multi_gpu_test
3737
from .backend import TestBackend

tests/compile/test_sequence_parallelism.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from vllm.model_executor.layers.layernorm import RMSNorm
3030
from vllm.model_executor.layers.quantization.utils.w8a8_utils import Fp8LinearOp
3131
from vllm.platforms import current_platform
32-
from vllm.utils import update_environment_variables
32+
from vllm.utils.system_utils import update_environment_variables
3333

3434
from ..utils import multi_gpu_test
3535
from .backend import TestBackend

tests/distributed/test_eplb_execute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
get_tp_group,
1616
init_distributed_environment,
1717
)
18-
from vllm.utils import update_environment_variables
18+
from vllm.utils.system_utils import update_environment_variables
1919

2020

2121
def distributed_run(fn, world_size):

tests/distributed/test_nccl_symm_mem_allreduce.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
initialize_model_parallel,
2424
)
2525
from vllm.platforms import current_platform
26-
from vllm.utils import update_environment_variables
26+
from vllm.utils.system_utils import update_environment_variables
2727

2828
torch.manual_seed(42)
2929
random.seed(44)

tests/distributed/test_pynccl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
graph_capture,
1919
init_distributed_environment,
2020
)
21-
from vllm.utils import update_environment_variables
21+
from vllm.utils.system_utils import update_environment_variables
2222

2323

2424
def distributed_run(fn, world_size):

tests/distributed/test_shm_broadcast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
from vllm.distributed.device_communicators.shm_broadcast import MessageQueue
1212
from vllm.distributed.utils import StatelessProcessGroup
13-
from vllm.utils import update_environment_variables
1413
from vllm.utils.network_utils import get_open_port
14+
from vllm.utils.system_utils import update_environment_variables
1515

1616

1717
def get_arrays(n: int, seed: int = 0) -> list[np.ndarray]:

tests/distributed/test_symm_mem_allreduce.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from vllm.engine.arg_utils import EngineArgs
2424
from vllm.engine.llm_engine import LLMEngine
2525
from vllm.platforms import current_platform
26-
from vllm.utils import update_environment_variables
26+
from vllm.utils.system_utils import update_environment_variables
2727

2828
torch.manual_seed(42)
2929
random.seed(44)

tests/distributed/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
import vllm.envs as envs
1111
from vllm.distributed.device_communicators.pynccl import PyNcclCommunicator
1212
from vllm.distributed.utils import StatelessProcessGroup
13-
from vllm.utils import update_environment_variables
1413
from vllm.utils.network_utils import get_open_port
14+
from vllm.utils.system_utils import update_environment_variables
1515
from vllm.utils.torch_utils import cuda_device_count_stateless
1616

1717
from ..utils import multi_gpu_test

tests/kernels/mamba/test_mamba_mixer2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
)
1414
from vllm.model_executor.layers.mamba.mamba_mixer2 import Mixer2RMSNormGated
1515
from vllm.platforms import current_platform
16-
from vllm.utils import update_environment_variables
16+
from vllm.utils.system_utils import update_environment_variables
1717

1818

1919
@multi_gpu_test(num_gpus=2)

0 commit comments

Comments
 (0)