[Fix] DO NOT skip save_kv_cache for dllm (#19020)

This commit is contained in:
DarkSharpness
2026-02-20 23:20:29 +08:00
committed by GitHub
parent f23a23cc05
commit 52852404c8

View File

@@ -812,7 +812,7 @@ class FlashInferAttnBackend(AttentionBackend):
or layer.attn_type == AttentionType.ENCODER_ONLY
):
causal = False
if save_kv_cache and layer.attn_type == AttentionType.ENCODER_ONLY:
if not self.is_dllm_model and layer.attn_type == AttentionType.ENCODER_ONLY:
save_kv_cache = False
if self.forward_metadata.extend_no_prefix: