[Bugfix][MRV2] Keep GDN prefill checkpoint metadata local to each cache group (#59536)
Signed-off-by: Jingqiao Zhang <ai-jz@users.noreply.github.com> Signed-off-by: zjy0516 <riverclouds.zhu@qq.com> Co-authored-by: Jingqiao Zhang <ai-jz@users.noreply.github.com> Co-authored-by: zjy0516 <riverclouds.zhu@qq.com>
This commit is contained in:
co-authored by
Jingqiao Zhang
zjy0516
parent
5d9214d6b2
commit
b538d807ff
@@ -621,6 +621,11 @@ class GDNAttentionMetadataBuilder(AttentionMetadataBuilder[GDNAttentionMetadata]
|
||||
"""Re-gather this group's state indices. The other fields are
|
||||
batch-level and stay shared with ``metadata``."""
|
||||
m = metadata
|
||||
checkpoint = (
|
||||
m.checkpoint.regather_state_indices(blk_table)
|
||||
if m.checkpoint is not None
|
||||
else None
|
||||
)
|
||||
if self.vllm_config.cache_config.mamba_cache_mode == "align":
|
||||
assert self.mamba_aligned_state_indices is not None
|
||||
blk_table = self.mamba_aligned_state_indices
|
||||
@@ -662,6 +667,7 @@ class GDNAttentionMetadataBuilder(AttentionMetadataBuilder[GDNAttentionMetadata]
|
||||
spec_state_indices_tensor=spec_indices,
|
||||
non_spec_state_indices_tensor=non_spec_indices,
|
||||
prefill_state_indices=prefill_indices,
|
||||
checkpoint=checkpoint,
|
||||
)
|
||||
|
||||
def build_for_cudagraph_capture(
|
||||
|
||||
Reference in New Issue
Block a user