Skip to content

batchsize dim for flashinfer api #927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
arthursunbao opened this issue Mar 10, 2025 · 0 comments
Open

batchsize dim for flashinfer api #927

arthursunbao opened this issue Mar 10, 2025 · 0 comments

Comments

@arthursunbao
Copy link

Hi,

I am trying to figure out how to replace the interface from flash attention to flashinfer

In flashattention, the q,k,v in flash_attn_func has the batchsize dimension: q: (batch_size, seqlen, nheads, headdim). However, I found that in flashinfer, it seems that it only has [kv_len, num_kv_heads, head_dim] for both prefill and decode api.

So how can I replace the flash_attn_func to FlashInfer Python API?

Jason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant