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
3bc18127
Unverified
Commit
3bc18127
authored
Sep 18, 2025
by
Chaojun Zhang
Committed by
GitHub
Sep 18, 2025
Browse files
[XPU] Whisper model support on XPU Platform (#25123)
Signed-off-by:
chzhang
<
chaojun.zhang@intel.com
>
parent
bec060fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
vllm/attention/layer.py
vllm/attention/layer.py
+2
-2
vllm/v1/worker/utils.py
vllm/v1/worker/utils.py
+1
-1
No files found.
vllm/attention/layer.py
View file @
3bc18127
...
@@ -391,8 +391,8 @@ class MultiHeadAttention(nn.Module):
...
@@ -391,8 +391,8 @@ class MultiHeadAttention(nn.Module):
backend
=
_Backend
.
FLASH_ATTN
backend
=
_Backend
.
FLASH_ATTN
use_upstream_fa
=
True
use_upstream_fa
=
True
if
current_platform
.
is_rocm
():
if
current_platform
.
is_rocm
()
or
current_platform
.
is_xpu
()
:
# currently, only torch_sdpa is supported on rocm
# currently, only torch_sdpa is supported on rocm
/xpu
self
.
attn_backend
=
_Backend
.
TORCH_SDPA
self
.
attn_backend
=
_Backend
.
TORCH_SDPA
else
:
else
:
...
...
vllm/v1/worker/utils.py
View file @
3bc18127
...
@@ -282,7 +282,7 @@ def bind_kv_cache(
...
@@ -282,7 +282,7 @@ def bind_kv_cache(
# TODO - analyze where runner_kv_caches is used and the right
# TODO - analyze where runner_kv_caches is used and the right
# way to ensure it properly reflects multiple attention layers
# way to ensure it properly reflects multiple attention layers
# in the same decoder block.
# in the same decoder block.
if
current_platform
.
is_cuda
():
if
current_platform
.
is_cuda
()
or
current_platform
.
is_xpu
()
:
# We know that the GPU runner is not impacted by this
# We know that the GPU runner is not impacted by this
# case. Some test code depends on runner_kv_caches, but
# case. Some test code depends on runner_kv_caches, but
# not in a way that's impacted by ignoring this.
# not in a way that's impacted by ignoring this.
...
...
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