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
e046b382
Commit
e046b382
authored
Jun 13, 2025
by
zhuwenwen
Browse files
update triton_mla.py
parent
f54ad7b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/attention/backends/triton_mla.py
vllm/attention/backends/triton_mla.py
+3
-2
No files found.
vllm/attention/backends/triton_mla.py
View file @
e046b382
...
@@ -120,8 +120,9 @@ class TritonMLAImpl(MLACommonImpl[MLACommonMetadata]):
...
@@ -120,8 +120,9 @@ class TritonMLAImpl(MLACommonImpl[MLACommonMetadata]):
match_seq_len
=
int
((
decode_meta
.
seq_lens_tensor
.
sum
()
/
max
(
1
,
B
)).
item
())
match_seq_len
=
int
((
decode_meta
.
seq_lens_tensor
.
sum
()
/
max
(
1
,
B
)).
item
())
else
:
else
:
match_seq_len
=
max_seq_len
match_seq_len
=
max_seq_len
best_config
=
self
.
attn_configs
[
min
(
self
.
attn_configs
.
keys
(),
key
=
lambda
x
:
abs
(
int
(
x
)
-
match_seq_len
))]
if
envs
.
VLLM_USE_TRITON_OPT_MLA
:
best_config
=
self
.
attn_configs
[
min
(
self
.
attn_configs
.
keys
(),
key
=
lambda
x
:
abs
(
int
(
x
)
-
match_seq_len
))]
# Run MQA
# Run MQA
decode_attention_fwd
(
q
,
kv_c_and_k_pe_cache
,
kv_c_cache
,
o
,
decode_attention_fwd
(
q
,
kv_c_and_k_pe_cache
,
kv_c_cache
,
o
,
...
...
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