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
b71c956d
Unverified
Commit
b71c956d
authored
Sep 11, 2024
by
Woosuk Kwon
Committed by
GitHub
Sep 11, 2024
Browse files
[TPU] Use Ray for default distributed backend (#8389)
parent
f842a7af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
vllm/config.py
vllm/config.py
+7
-0
No files found.
vllm/config.py
View file @
b71c956d
...
@@ -869,6 +869,13 @@ class ParallelConfig:
...
@@ -869,6 +869,13 @@ class ParallelConfig:
f
"distributed executor backend "
f
"distributed executor backend "
f
"'
{
self
.
distributed_executor_backend
}
'."
)
f
"'
{
self
.
distributed_executor_backend
}
'."
)
if
current_platform
.
is_tpu
()
and
self
.
world_size
>
1
:
if
self
.
distributed_executor_backend
is
None
:
self
.
distributed_executor_backend
=
"ray"
if
self
.
distributed_executor_backend
!=
"ray"
:
raise
ValueError
(
"TPU backend only supports Ray for distributed inference."
)
if
self
.
distributed_executor_backend
is
None
and
self
.
world_size
>
1
:
if
self
.
distributed_executor_backend
is
None
and
self
.
world_size
>
1
:
# We use multiprocessing by default if world_size fits on the
# We use multiprocessing by default if world_size fits on the
# current node and we aren't in a ray placement group.
# current node and we aren't in a ray placement group.
...
...
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