Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
af6e19f5
Unverified
Commit
af6e19f5
authored
Nov 01, 2025
by
wenxindongwork
Committed by
GitHub
Nov 01, 2025
Browse files
[Core][TPU] Support TPU Data Parallalism (#27365)
Signed-off-by:
wenxindongwork
<
wenxindong@google.com
>
parent
99d69af9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
vllm/entrypoints/llm.py
vllm/entrypoints/llm.py
+6
-1
No files found.
vllm/entrypoints/llm.py
View file @
af6e19f5
...
...
@@ -67,6 +67,7 @@ from vllm.outputs import (
RequestOutput
,
ScoringRequestOutput
,
)
from
vllm.platforms
import
current_platform
from
vllm.pooling_params
import
PoolingParams
from
vllm.sampling_params
import
BeamSearchParams
,
RequestOutputKind
,
SamplingParams
from
vllm.tasks
import
PoolingTask
...
...
@@ -289,7 +290,11 @@ class LLM:
# warn about single-process data parallel usage.
_dp_size
=
int
(
kwargs
.
get
(
"data_parallel_size"
,
1
))
_distributed_executor_backend
=
kwargs
.
get
(
"distributed_executor_backend"
)
if
_dp_size
>
1
and
not
_distributed_executor_backend
==
"external_launcher"
:
if
(
_dp_size
>
1
and
not
_distributed_executor_backend
==
"external_launcher"
and
not
current_platform
.
is_tpu
()
):
raise
ValueError
(
f
"LLM(data_parallel_size=
{
_dp_size
}
) is not supported for single-"
"process usage and may hang. Please use "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment