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
c0724fc9
Unverified
Commit
c0724fc9
authored
May 18, 2024
by
alexeykondrat
Committed by
GitHub
May 18, 2024
Browse files
[ROCm][Hardware][AMD] Adding Navi21 to fallback to naive attention if Triton is not used (#4658)
parent
86b45ae0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/attention/backends/rocm_flash_attn.py
vllm/attention/backends/rocm_flash_attn.py
+3
-2
No files found.
vllm/attention/backends/rocm_flash_attn.py
View file @
c0724fc9
...
...
@@ -231,8 +231,9 @@ class ROCmFlashAttentionImpl(AttentionImpl):
self
.
attn_func
=
triton_attention
logger
.
debug
(
"Using Triton FA in ROCmBackend"
)
else
:
# if not using triton, navi3x not use flash-attn either
if
torch
.
cuda
.
get_device_capability
()[
0
]
==
11
:
# if not using triton, navi3x/navi21/navi10 do not use flash-attn
# either
if
torch
.
cuda
.
get_device_capability
()[
0
]
!=
9
:
self
.
use_naive_attn
=
True
else
:
try
:
...
...
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