Skip to content

Commit c9cc3a1

Browse files
author
ilmarkov
committed
Rename env
Signed-off-by: ilmarkov <imarkov@redhat.com>
1 parent 9f87514 commit c9cc3a1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

vllm/distributed/device_communicators/cuda_communicator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(self,
7272
# currently be an MI300 series.
7373
self.qr_comm = QuickAllReduce(group=self.cpu_group,
7474
device=self.device)
75-
if envs.VLLM_USE_SYMM_MEM and current_platform.is_cuda():
75+
if envs.VLLM_ALLREDUCE_USE_SYMM_MEM and current_platform.is_cuda():
7676
self.symm_mem_comm = SymmMemCommunicator(
7777
group=self.cpu_group,
7878
device=self.device,

vllm/distributed/device_communicators/custom_all_reduce.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(self,
117117
# now `device` is a `torch.device` object
118118
assert isinstance(device, torch.device)
119119
self.device = device
120-
if current_platform.is_cuda() and envs.VLLM_USE_SYMM_MEM:
120+
if current_platform.is_cuda() and envs.VLLM_ALLREDUCE_USE_SYMM_MEM:
121121
max_size = CustomAllreduce._MAX_SIZES[world_size]
122122

123123
cuda_visible_devices = envs.CUDA_VISIBLE_DEVICES

vllm/envs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
VLLM_ROCM_QUICK_REDUCE_CAST_BF16_TO_FP16: bool = True
140140
VLLM_ROCM_QUICK_REDUCE_MAX_SIZE_BYTES_MB: Optional[int] = None
141141
VLLM_NIXL_ABORT_REQUEST_TIMEOUT: int = 120
142-
VLLM_USE_SYMM_MEM: bool = False
142+
VLLM_ALLREDUCE_USE_SYMM_MEM: bool = False
143143

144144

145145
def get_default_cache_root():
@@ -965,8 +965,8 @@ def get_vllm_port() -> Optional[int]:
965965
lambda: int(os.getenv("VLLM_NIXL_ABORT_REQUEST_TIMEOUT", "120")),
966966

967967
# Whether to use pytorch symmetric memory for allreduce
968-
"VLLM_USE_SYMM_MEM":
969-
lambda: bool(int(os.getenv("VLLM_USE_SYMM_MEM", "0"))),
968+
"VLLM_ALLREDUCE_USE_SYMM_MEM":
969+
lambda: bool(int(os.getenv("VLLM_ALLREDUCE_USE_SYMM_MEM", "0"))),
970970
}
971971

972972
# --8<-- [end:env-vars-definition]

0 commit comments

Comments
 (0)