Fix KV sharing fast prefill with cudagraph enabled (#28537)

Signed-off-by: Yong Hoon Shin <yhshin@meta.com>
Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
Yong Hoon Shin
2025-11-14 11:53:42 +00:00
committed by GitHub
co-authored by Cyrus Leung
parent 4516d44b7f
commit 9324e10275
3 changed files with 17 additions and 57 deletions
+1 -1
View File
@@ -1314,7 +1314,7 @@ class GPUModelRunner(
:return: tuple[attn_metadata, spec_decode_common_attn_metadata]
"""
logits_indices_padded = None
num_logits_indices = 0
num_logits_indices = None
if logits_indices is not None:
num_logits_indices = logits_indices.size(0)
if self.cache_config.kv_sharing_fast_prefill: