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
0628e4b4
Commit
0628e4b4
authored
Jul 31, 2025
by
zhuwenwen
Browse files
update common.py
parent
2ae3fdba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vllm/v1/attention/backends/mla/common.py
vllm/v1/attention/backends/mla/common.py
+4
-1
No files found.
vllm/v1/attention/backends/mla/common.py
View file @
0628e4b4
...
@@ -1138,7 +1138,10 @@ class MLACommonImpl(MLAAttentionImpl[M], Generic[M]):
...
@@ -1138,7 +1138,10 @@ class MLACommonImpl(MLAAttentionImpl[M], Generic[M]):
)
->
torch
.
Tensor
:
)
->
torch
.
Tensor
:
assert
attn_metadata
.
prefill
is
not
None
assert
attn_metadata
.
prefill
is
not
None
has_context
=
attn_metadata
.
prefill
.
chunked_context
is
not
None
if
envs
.
VLLM_HAS_CONTEXT_DEFAULT
:
has_context
=
attn_metadata
.
prefill
.
chunked_context
is
not
None
else
:
has_context
=
False
kv_nope
=
self
.
kv_b_proj
(
kv_c_normed
)[
0
].
view
(
\
kv_nope
=
self
.
kv_b_proj
(
kv_c_normed
)[
0
].
view
(
\
-
1
,
self
.
num_heads
,
self
.
qk_nope_head_dim
+
self
.
v_head_dim
)
-
1
,
self
.
num_heads
,
self
.
qk_nope_head_dim
+
self
.
v_head_dim
)
k_nope
,
v
=
kv_nope
\
k_nope
,
v
=
kv_nope
\
...
...
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