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
965934b8
Commit
965934b8
authored
Jan 05, 2026
by
zhuwenwen
Browse files
support sinks
parent
8b1077ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/v1/attention/backends/flash_attn.py
vllm/v1/attention/backends/flash_attn.py
+3
-2
No files found.
vllm/v1/attention/backends/flash_attn.py
View file @
965934b8
...
...
@@ -453,6 +453,7 @@ class FlashAttentionImpl(AttentionImpl):
self
.
sinks
=
sinks
if
self
.
sinks
is
not
None
:
if
not
current_platform
.
is_rocm
():
assert
self
.
vllm_flash_attn_version
==
3
,
(
"Sinks are only supported in FlashAttention 3"
)
assert
self
.
sinks
.
shape
[
0
]
==
num_heads
,
(
...
...
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