Fix draft decode max batch size (#3676)

This commit is contained in:
Ke Bao
2025-02-18 23:03:26 +08:00
committed by GitHub
parent f983213a1f
commit e5ce395a6c
3 changed files with 5 additions and 2 deletions
@@ -635,6 +635,9 @@ def decode_attention_fwd(
logit_cap=0.0,
):
assert num_kv_splits == attn_logits.shape[2]
assert q.shape[0] <= kv_indptr.shape[0] - 1
assert q.shape[0] <= attn_logits.shape[0]
kv_group_num = q.shape[1] // v_buffer.shape[1]
if kv_group_num == 1: