[Attention][DCP] Support DCP with query length > 1 (MTP) with FA3 (#25049)

Signed-off-by: Ming Yang <minos.future@gmail.com>
This commit is contained in:
Ming Yang
2025-10-09 08:06:29 -07:00
committed by GitHub
parent 2c1c7dfb35
commit 3b736e1c38
8 changed files with 45 additions and 13 deletions
+3
View File
@@ -93,6 +93,9 @@ class CommonAttentionMetadata:
# Needed by CrossAttentionBuilder
encoder_seq_lens: Optional[np.ndarray] = None
dcp_local_seq_lens: Optional[torch.Tensor] = None
"""Sequence lengths of the local rank in decode context parallelism world"""
def slice_query_start_locs(
query_start_loc: torch.Tensor,