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
dbfbf9f3
Unverified
Commit
dbfbf9f3
authored
Oct 23, 2025
by
Matthew Bonanni
Committed by
GitHub
Oct 23, 2025
Browse files
[Attention] Fix FlashMLA metadata builder arguments for q_len > 1 (#27368)
Signed-off-by:
Matthew Bonanni
<
mbonanni@redhat.com
>
parent
ca76486a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vllm/v1/attention/backends/mla/flashmla.py
vllm/v1/attention/backends/mla/flashmla.py
+5
-1
No files found.
vllm/v1/attention/backends/mla/flashmla.py
View file @
dbfbf9f3
...
...
@@ -120,9 +120,13 @@ class FlashMLAMetadataBuilder(MLACommonMetadataBuilder[FlashMLAMetadata]):
num_decode_tokens
:
int
,
dcp_tot_seq_lens_device
:
torch
.
Tensor
|
None
,
)
->
FlashMLADecodeMetadata
:
query_lens_cpu
=
query_start_loc_cpu
[
1
:]
-
query_start_loc_cpu
[:
-
1
]
# we use the max but all should be the same due to uniform length requirement
max_query_len
=
query_lens_cpu
.
max
().
item
()
num_q_tokens_per_head_k
=
max_query_len
*
self
.
num_q_heads
//
1
tile_scheduler_metadata
,
num_splits
=
get_mla_metadata
(
seq_lens_device
,
self
.
num_q_head
s
,
num_q_
tokens_per_
head
_k
,
1
,
# MQA for the decode path
is_fp8_kvcache
=
self
.
is_fp8_kvcache
,
)
...
...
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