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
a2d2acb4
Unverified
Commit
a2d2acb4
authored
Jan 14, 2025
by
Chen Zhang
Committed by
GitHub
Jan 14, 2025
Browse files
[Bugfix][Kernel] Give unique name to BlockSparseFlashAttention (#12040)
Signed-off-by:
Chen Zhang
<
zhangch99@outlook.com
>
parent
2e0e0176
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
vllm/attention/backends/blocksparse_attn.py
vllm/attention/backends/blocksparse_attn.py
+1
-2
vllm/platforms/interface.py
vllm/platforms/interface.py
+1
-0
No files found.
vllm/attention/backends/blocksparse_attn.py
View file @
a2d2acb4
...
...
@@ -89,8 +89,7 @@ class BlocksparseFlashAttentionBackend(AttentionBackend):
@
staticmethod
def
get_name
()
->
str
:
# For attention layer compatibility
return
"FLASH_ATTN"
return
"BLOCK_SPARSE_FLASH_ATTN"
@
staticmethod
def
get_impl_cls
()
->
Type
[
"BlocksparseFlashAttentionImpl"
]:
...
...
vllm/platforms/interface.py
View file @
a2d2acb4
...
...
@@ -33,6 +33,7 @@ class _Backend(enum.Enum):
HPU_ATTN
=
enum
.
auto
()
PALLAS
=
enum
.
auto
()
IPEX
=
enum
.
auto
()
BLOCK_SPARSE_FLASH_ATTN
=
enum
.
auto
()
NO_ATTENTION
=
enum
.
auto
()
...
...
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