File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 6666 RequestOutput ,
6767 ScoringRequestOutput ,
6868)
69+ from vllm .platforms import current_platform
6970from vllm .pooling_params import PoolingParams
7071from vllm .sampling_params import BeamSearchParams , RequestOutputKind , SamplingParams
7172from vllm .tasks import PoolingTask
8081from vllm .v1 .engine import EngineCoreRequest
8182from vllm .v1 .engine .llm_engine import LLMEngine
8283from vllm .v1 .sample .logits_processor import LogitsProcessor
83- from vllm .platforms import current_platform
8484
8585if 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 "
You can’t perform that action at this time.
0 commit comments