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
5c796324
Unverified
Commit
5c796324
authored
Dec 24, 2024
by
Mengqing Cao
Committed by
GitHub
Dec 24, 2024
Browse files
[attn][tiny fix] fix attn backend in MultiHeadAttention (#11463)
Signed-off-by:
Mengqing Cao
<
cmq0113@163.com
>
parent
461cde20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
vllm/attention/layer.py
vllm/attention/layer.py
+1
-0
No files found.
vllm/attention/layer.py
View file @
5c796324
...
@@ -191,6 +191,7 @@ class MultiHeadAttention(nn.Module):
...
@@ -191,6 +191,7 @@ class MultiHeadAttention(nn.Module):
kv_cache_dtype
=
None
,
kv_cache_dtype
=
None
,
block_size
=
16
,
block_size
=
16
,
is_attention_free
=
False
)
is_attention_free
=
False
)
attn_backend
=
backend_name_to_enum
(
attn_backend
.
get_name
())
if
attn_backend
in
{
_Backend
.
FLASH_ATTN
,
_Backend
.
FLASH_ATTN_VLLM_V1
}:
if
attn_backend
in
{
_Backend
.
FLASH_ATTN
,
_Backend
.
FLASH_ATTN_VLLM_V1
}:
attn_backend
=
_Backend
.
XFORMERS
attn_backend
=
_Backend
.
XFORMERS
...
...
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