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
29799dda
Unverified
Commit
29799dda
authored
Sep 11, 2025
by
Li, Jiang
Committed by
GitHub
Sep 10, 2025
Browse files
[Bugfix] Add missing VIT backend dispatch on CPU (#24623)
Signed-off-by:
jiang1.li
<
jiang1.li@intel.com
>
parent
f17a6aa4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/attention/layer.py
vllm/attention/layer.py
+2
-1
No files found.
vllm/attention/layer.py
View file @
29799dda
...
...
@@ -399,7 +399,8 @@ class MultiHeadAttention(nn.Module):
key
,
value
,
scale
=
self
.
scale
)
elif
self
.
attn_backend
==
_Backend
.
TORCH_SDPA
:
elif
(
self
.
attn_backend
==
_Backend
.
TORCH_SDPA
or
self
.
attn_backend
==
_Backend
.
TORCH_SDPA_VLLM_V1
):
query
,
key
,
value
=
(
x
.
transpose
(
1
,
2
)
for
x
in
(
query
,
key
,
value
))
out
=
F
.
scaled_dot_product_attention
(
query
,
...
...
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