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
51e5b3e3
Unverified
Commit
51e5b3e3
authored
Dec 15, 2025
by
Matthew Bonanni
Committed by
GitHub
Dec 15, 2025
Browse files
[Bugfix] Fix ViT with FlashAttention on ROCm (#30703)
Signed-off-by:
Matthew Bonanni
<
mbonanni@redhat.com
>
parent
ec154c36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vllm/attention/layer.py
vllm/attention/layer.py
+4
-1
No files found.
vllm/attention/layer.py
View file @
51e5b3e3
...
@@ -464,7 +464,10 @@ class MultiHeadAttention(nn.Module):
...
@@ -464,7 +464,10 @@ class MultiHeadAttention(nn.Module):
}
}
self
.
fa_version
=
None
self
.
fa_version
=
None
if
self
.
attn_backend
==
AttentionBackendEnum
.
FLASH_ATTN
:
if
(
self
.
attn_backend
==
AttentionBackendEnum
.
FLASH_ATTN
and
current_platform
.
is_cuda
()
):
self
.
fa_version
=
get_flash_attn_version
()
self
.
fa_version
=
get_flash_attn_version
()
assert
self
.
_flash_attn_varlen_func
is
not
None
assert
self
.
_flash_attn_varlen_func
is
not
None
self
.
_flash_attn_varlen_func
=
functools
.
partial
(
self
.
_flash_attn_varlen_func
=
functools
.
partial
(
...
...
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