[Bugfix][HiSparse] Drop the unaccounted, write-only prefill mirror staging buffer (#60429)

Signed-off-by: Matthew Bonanni <mbonanni@redhat.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Matthew Bonanni
2026-10-08 14:00:49 +00:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 194da61de1
commit 4ed4c4433b
6 changed files with 5 additions and 81 deletions
@@ -802,18 +802,6 @@ class MLAAttention(nn.Module, AttentionLayerBase):
kv_cache_dtype,
k_scale,
)
if cache is not None:
mirror_target = cache.mirror_write_target(kv_c_normed.shape[0])
if mirror_target is not None:
mirror_cache, mirror_slots = mirror_target
self.impl.do_kv_cache_update( # type: ignore[attr-defined]
kv_c_normed,
k_pe,
mirror_cache,
mirror_slots,
kv_cache_dtype,
k_scale,
)
def prepare_kv_cache_update(
self, attn_metadata: "MLACommonMetadata | None"