Skip to content
Closed
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
6 changes: 6 additions & 0 deletions vllm/distributed/parallel_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ def init_distributed_environment(
local_rank = rank
global _LOCAL_RANK
_LOCAL_RANK = local_rank

if world_size == 1:
# Avoid to warmup if world size is 1, to be compatible with vGPU.
# See https://github.com/vllm-project/vllm/issues/4587 for details.
return

# A small all_reduce for warmup.
data = torch.zeros(1)
if torch.cuda.is_available():
Expand Down