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
18093084
Unverified
Commit
18093084
authored
Jun 05, 2025
by
vllmellm
Committed by
GitHub
Jun 05, 2025
Browse files
[Misc] Remove unnecessary fallback to prefill-decode attention (#19138)
Signed-off-by:
vllmellm
<
vllm.ellm@embeddedllm.com
>
parent
da403802
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
vllm/v1/attention/backends/triton_attn.py
vllm/v1/attention/backends/triton_attn.py
+1
-4
No files found.
vllm/v1/attention/backends/triton_attn.py
View file @
18093084
...
...
@@ -171,10 +171,7 @@ class TritonAttentionImpl(AttentionImpl):
# Whenever making a change in this method, please benchmark the
# performance to make sure it does not introduce any overhead.
num_queries_per_kv
=
query
.
shape
[
1
]
//
key
.
shape
[
1
]
num_q_is_pow2
=
(
num_queries_per_kv
&
(
num_queries_per_kv
-
1
))
==
0
use_prefill_decode_attn
=
(
self
.
force_prefill_decode_attn
or
not
num_q_is_pow2
)
use_prefill_decode_attn
=
self
.
force_prefill_decode_attn
num_actual_tokens
=
attn_metadata
.
num_actual_tokens
if
use_prefill_decode_attn
:
...
...
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