-
Notifications
You must be signed in to change notification settings - Fork 224
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
Chunked prefill support #392
Comments
Hi, I don't see why do we need special support for chunked prefill, the paper that proposes chunked prefill (sarashi-serve) uses flashinfer and I suppose we already support this feature? |
Thanks for your kind reply. I'm sorry I've experienced a bad misaligned result when using chunked prefill + flashinfer in vLLM? Further investigation is needed. |
Thanks for letting me know, there might be some misconfiguration on vLLM side for chunked prefill and I'd love to help fix the issue. Can you point me to the implementation to chunked prefill in vLLM? cc @LiuXiaoxuanPKU as lily might provide some useful insights. |
https://github.com/vllm-project/vllm/blob/main/vllm/attention/backends/flashinfer.py#L197 & https://github.com/vllm-project/vllm/blob/main/vllm/worker/model_runner.py searching |
Hello @Juelianqvq there is an ongoing effort to unify vLLM's use of flash attention as it currently calls prefill and decode kernels separately. I suspect that a similar situation is happening for flash-infer, will investigate. |
What is the status of this? I have a pending PR for supporting chunked-prefill with FlashInfer but I sometimes hit Illegal Memory Access issue with FlashInfer's BatchDecodeWithKvCache kernel when running mixed batch of prefill + decode tokens (issue is flaky). I'm wondering if anyone had the same issue and maybe we can collaborate on debugging. |
I think it supports. We use FlashInfer in SGLang, and we support chunked prefill. |
Any plan on this?
The text was updated successfully, but these errors were encountered: