Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions vllm/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1627,9 +1627,18 @@ def _get_or_set_default() -> str:
"VLLM_DEEPEP_LOW_LATENCY_USE_MNNVL": lambda: bool(
int(os.getenv("VLLM_DEEPEP_LOW_LATENCY_USE_MNNVL", "0"))
),
# The number of SMs to allocate for communication kernels when running DBO
# the rest of the SMs on the device will be allocated to compute
"VLLM_DBO_COMM_SMS": lambda: int(os.getenv("VLLM_DBO_COMM_SMS", "20")),
# The number of SMs/CUs to allocate for communication kernels when
# running DBO; the rest will be allocated to compute.
# Default: 20 on CUDA (SMs), 64 on ROCm (CUs).
"VLLM_DBO_COMM_SMS": lambda: int(
os.getenv(
"VLLM_DBO_COMM_SMS",
"64"
if hasattr(__import__("torch").version, "hip")
and __import__("torch").version.hip is not None
else "20",
)
),
# Enable max_autotune & coordinate_descent_tuning in inductor_config
# to compile static shapes passed from compile_sizes in compilation_config
# If set to 1, enable max_autotune; By default, this is enabled (1)
Expand Down
4 changes: 2 additions & 2 deletions vllm/v1/worker/gpu_ubatch_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def __init__(
A function that sets the number of SMs for computation.
"""

assert current_platform.is_cuda(), (
"SM control is currently only supported on CUDA"
assert current_platform.is_cuda() or current_platform.is_rocm(), (
"SM/CU control is supported on CUDA and ROCm platforms"
)
device = torch.accelerator.current_device_index()
total_sms = num_compute_units(device)
Expand Down
Loading