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
7ea3cd7c
Unverified
Commit
7ea3cd7c
authored
Nov 25, 2024
by
Mengqing Cao
Committed by
GitHub
Nov 25, 2024
Browse files
[Refactor][MISC] del redundant code in ParallelConfig.postinit (#10614)
Signed-off-by:
MengqingCao
<
cmq0113@163.com
>
parent
214efc2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
vllm/config.py
vllm/config.py
+5
-10
No files found.
vllm/config.py
View file @
7ea3cd7c
...
@@ -998,20 +998,15 @@ class ParallelConfig:
...
@@ -998,20 +998,15 @@ class ParallelConfig:
raise
ValueError
(
f
"worker-use-ray can't be used with "
raise
ValueError
(
f
"worker-use-ray can't be used with "
f
"distributed executor backend "
f
"distributed executor backend "
f
"'
{
self
.
distributed_executor_backend
}
'."
)
f
"'
{
self
.
distributed_executor_backend
}
'."
)
ray_only_devices
=
[
"tpu"
,
"hpu"
]
if
current_platform
.
is_tpu
()
and
self
.
world_size
>
1
:
if
(
current_platform
.
device_type
in
ray_only_devices
if
self
.
distributed_executor_backend
is
None
:
and
self
.
world_size
>
1
):
self
.
distributed_executor_backend
=
"ray"
if
self
.
distributed_executor_backend
!=
"ray"
:
raise
ValueError
(
"TPU backend only supports Ray for distributed inference."
)
if
current_platform
.
is_hpu
()
and
self
.
world_size
>
1
:
if
self
.
distributed_executor_backend
is
None
:
if
self
.
distributed_executor_backend
is
None
:
self
.
distributed_executor_backend
=
"ray"
self
.
distributed_executor_backend
=
"ray"
if
self
.
distributed_executor_backend
!=
"ray"
:
if
self
.
distributed_executor_backend
!=
"ray"
:
raise
ValueError
(
raise
ValueError
(
"HPU backend only supports Ray for distributed inference."
)
f
"
{
current_platform
.
device_type
.
upper
()
}
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
...
...
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