Open yangchengtest opened 3 months ago
This issue has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this issue should remain open. Thank you!
Your current environment
code review
🐛 Describe the bug
flash_attn.py forward func
code: else:
prefix-enabled attention
in this case,flash_attn_varlen_func input params order may be wrong.
cu_seqlens_q=prefill_meta.query_start_loc, max_seqlen_q=prefill_meta.max_query_len, cu_seqlens_k=prefill_meta.seq_start_loc, max_seqlen_k=max_seq_len,
the input order should be cu_s,cu_q,max_s,max_q?