Skip to content

Commit bf135a0

Browse files
wip
Signed-off-by: wenxindongwork <[email protected]>
1 parent 9a6fae6 commit bf135a0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

vllm/entrypoints/llm.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
RequestOutput,
6767
ScoringRequestOutput,
6868
)
69+
from vllm.platforms import current_platform
6970
from vllm.pooling_params import PoolingParams
7071
from vllm.sampling_params import BeamSearchParams, RequestOutputKind, SamplingParams
7172
from vllm.tasks import PoolingTask
@@ -80,7 +81,6 @@
8081
from vllm.v1.engine import EngineCoreRequest
8182
from vllm.v1.engine.llm_engine import LLMEngine
8283
from vllm.v1.sample.logits_processor import LogitsProcessor
83-
from vllm.platforms import current_platform
8484

8585
if TYPE_CHECKING:
8686
from vllm.v1.metrics.reader import Metric
@@ -289,7 +289,11 @@ def __init__(
289289
# warn about single-process data parallel usage.
290290
_dp_size = int(kwargs.get("data_parallel_size", 1))
291291
_distributed_executor_backend = kwargs.get("distributed_executor_backend")
292-
if _dp_size > 1 and not _distributed_executor_backend == "external_launcher" and not current_platform.is_tpu():
292+
if (
293+
_dp_size > 1
294+
and not _distributed_executor_backend == "external_launcher"
295+
and not current_platform.is_tpu()
296+
):
293297
raise ValueError(
294298
f"LLM(data_parallel_size={_dp_size}) is not supported for single-"
295299
"process usage and may hang. Please use "

0 commit comments

Comments
 (0)