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
772a6673
Unverified
Commit
772a6673
authored
Nov 20, 2024
by
youkaichao
Committed by
GitHub
Nov 20, 2024
Browse files
[platforms] restore xpu check for parallel config (#10479)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
63f1fde2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
vllm/platforms/xpu.py
vllm/platforms/xpu.py
+10
-0
No files found.
vllm/platforms/xpu.py
View file @
772a6673
...
@@ -55,3 +55,13 @@ class XPUPlatform(Platform):
...
@@ -55,3 +55,13 @@ class XPUPlatform(Platform):
"CUDA graph is not supported on XPU, fallback to the eager "
"CUDA graph is not supported on XPU, fallback to the eager "
"mode."
)
"mode."
)
model_config
.
enforce_eager
=
True
model_config
.
enforce_eager
=
True
# check and update parallel config
parallel_config
=
vllm_config
.
parallel_config
if
(
parallel_config
.
distributed_executor_backend
is
not
None
and
parallel_config
.
distributed_executor_backend
!=
"ray"
):
logger
.
warning
(
"%s is not supported on XPU, fallback to ray distributed"
" executor backend."
,
parallel_config
.
distributed_executor_backend
)
parallel_config
.
distributed_executor_backend
=
"ray"
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