[Attention][DCP] Enable FlashInfer MLA for DSpark drafting (#54277)

Signed-off-by: Summer Yang <girasoleyang@gmail.com>
This commit is contained in:
Summer Yang
2026-08-28 21:11:28 -07:00
committed by GitHub
parent b2f685834a
commit 6d4562c59b
8 changed files with 98 additions and 28 deletions
+3 -2
View File
@@ -109,7 +109,7 @@ def test_noncausal_decode_metadata_keeps_live_request_buffers():
)
def test_mla_cache_marker_is_promoted_to_group_capability():
def test_mla_cache_marker_is_a_group_property():
kwargs = {
"block_size": 64,
"num_kv_heads": 1,
@@ -120,7 +120,8 @@ def test_mla_cache_marker_is_promoted_to_group_capability():
unmarked = MLAAttentionSpec(**kwargs)
assert MLAAttentionSpec.merge([marked, marked]).non_causal_multi_token_decode
assert MLAAttentionSpec.merge([marked, unmarked]).non_causal_multi_token_decode
assert not MLAAttentionSpec.merge(
[unmarked, unmarked]
).non_causal_multi_token_decode
with pytest.raises(AssertionError, match="non_causal_multi_token_decode"):
MLAAttentionSpec.merge([marked, unmarked])