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
04741337
Unverified
Commit
04741337
authored
Jan 15, 2026
by
Matthias Gehre
Committed by
GitHub
Jan 15, 2026
Browse files
[Attention][AMD] Make flash-attn optional (#30361)
Signed-off-by:
Matthias Gehre
<
matthias.gehre@amd.com
>
parent
74e4bb1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
vllm/v1/attention/backends/fa_utils.py
vllm/v1/attention/backends/fa_utils.py
+7
-5
No files found.
vllm/v1/attention/backends/fa_utils.py
View file @
04741337
...
@@ -23,11 +23,13 @@ elif current_platform.is_xpu():
...
@@ -23,11 +23,13 @@ elif current_platform.is_xpu():
elif
current_platform
.
is_rocm
():
elif
current_platform
.
is_rocm
():
try
:
try
:
from
flash_attn
import
flash_attn_varlen_func
# noqa: F401
from
flash_attn
import
flash_attn_varlen_func
# noqa: F401
except
ImportError
as
e
:
except
ImportError
:
raise
ImportError
(
"Rocm platform requires upstream flash-attn "
def
flash_attn_varlen_func
(
*
args
,
**
kwargs
):
"to be installed. Please install flash-attn first."
raise
ImportError
(
)
from
e
"ROCm platform requires upstream flash-attn "
"to be installed. Please install flash-attn first."
)
def
get_flash_attn_version
(
requires_alibi
:
bool
=
False
)
->
int
|
None
:
def
get_flash_attn_version
(
requires_alibi
:
bool
=
False
)
->
int
|
None
:
...
...
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