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
202f147c
Unverified
Commit
202f147c
authored
Mar 31, 2026
by
ElizaWszola
Committed by
GitHub
Mar 31, 2026
Browse files
Fix MLA runs when use_inductor_graph_partition=True (#38631)
Signed-off-by:
ElizaWszola
<
ewszola@redhat.com
>
parent
ea7bfde6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
vllm/model_executor/layers/attention/mla_attention.py
vllm/model_executor/layers/attention/mla_attention.py
+6
-4
No files found.
vllm/model_executor/layers/attention/mla_attention.py
View file @
202f147c
...
...
@@ -929,13 +929,15 @@ def unified_mla_kv_cache_update(
the data dependency between them to ensure torch.compile preserves ordering.
"""
forward_context
=
get_forward_context
()
if
forward_context
.
attn_metadata
is
None
:
# Dummy/profile forwards should not update live KV cache pages.
return
torch
.
empty
(
0
,
device
=
kv_c_normed
.
device
,
dtype
=
kv_c_normed
.
dtype
)
attn_layer
=
forward_context
.
no_compile_layers
[
layer_name
]
kv_cache
=
attn_layer
.
kv_cache
# This needs to run even when we don't have metadata yet, so that the op
# is correctly captured.
if
kv_cache
.
numel
()
==
0
:
# Can't update an empty KV cache.
return
torch
.
empty
(
0
,
device
=
kv_c_normed
.
device
,
dtype
=
kv_c_normed
.
dtype
)
slot_mapping
=
forward_context
.
slot_mapping
assert
isinstance
(
slot_mapping
,
dict
),
(
f
"Expected slot_mapping to be a dict, got
{
type
(
slot_mapping
)
}
. "
...
...
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