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
1f9aadcf
Commit
1f9aadcf
authored
Sep 10, 2025
by
zhuwenwen
Browse files
update the conditions for pad_v on v0
parent
5f09420d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
vllm/attention/backends/mla/common.py
vllm/attention/backends/mla/common.py
+6
-3
No files found.
vllm/attention/backends/mla/common.py
View file @
1f9aadcf
...
@@ -957,9 +957,12 @@ class MLACommonImpl(MLAAttentionImpl[T], Generic[T]):
...
@@ -957,9 +957,12 @@ class MLACommonImpl(MLAAttentionImpl[T], Generic[T]):
# v with 0s to match the qk head dim for attention backends that do
# v with 0s to match the qk head dim for attention backends that do
# not support different headdims
# not support different headdims
# We don't need to pad V if we are on a hopper system with FA3
# We don't need to pad V if we are on a hopper system with FA3
self
.
_pad_v
=
self
.
vllm_flash_attn_version
is
None
or
torch
.
cuda
.
get_device_properties
(
torch
.
cuda
.
current_device
()).
multi_processor_count
==
120
or
not
(
if
not
current_platform
.
is_rocm
():
self
.
vllm_flash_attn_version
==
3
self
.
_pad_v
=
self
.
vllm_flash_attn_version
is
None
or
not
(
and
current_platform
.
get_device_capability
()[
0
]
==
9
)
self
.
vllm_flash_attn_version
==
3
and
current_platform
.
get_device_capability
()[
0
]
==
9
)
else
:
self
.
_pad_v
=
torch
.
cuda
.
get_device_properties
(
torch
.
cuda
.
current_device
()).
multi_processor_count
==
120
def
_flash_attn_varlen_diff_headdims
(
self
,
q
,
k
,
v
,
softmax_scale
,
def
_flash_attn_varlen_diff_headdims
(
self
,
q
,
k
,
v
,
softmax_scale
,
return_softmax_lse
,
**
kwargs
):
return_softmax_lse
,
**
kwargs
):
...
...
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