You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "masahi (via GitHub)" <gi...@apache.org> on 2024/01/26 03:02:35 UTC
[PR] Update flash attention to integrate flash decoding with paged KV cache [tvm]
masahi opened a new pull request, #16474:
URL: https://github.com/apache/tvm/pull/16474
Flash attention recently added support for loading from paged KV cache in https://github.com/Dao-AILab/flash-attention/commit/54e80a3829c6d2337570d01e78ebd9529c02d342. The support was added to Flash-Decoding kernel, which we haven't used so far.
This PR let's us use Flash Decoding with paged KV cache support from TVM. We already use other kernels from Flash attention via BYOC, but due to the specialized nature of this kernel, it is supported as a contrib kernel (similar to vllm).
@vinx13 @sunggg
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Update flash attention to integrate flash decoding with paged KV cache [tvm]
Posted by "vinx13 (via GitHub)" <gi...@apache.org>.
vinx13 commented on PR #16474:
URL: https://github.com/apache/tvm/pull/16474#issuecomment-1915215166
we can move gpu builder to larger cpu instance if needed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Update flash attention to integrate flash decoding with paged KV cache [tvm]
Posted by "masahi (via GitHub)" <gi...@apache.org>.
masahi commented on PR #16474:
URL: https://github.com/apache/tvm/pull/16474#issuecomment-1912749542
@vinx13 Does this CI failure seem like a compilation timeout https://ci.tlcpack.ai/blue/organizations/jenkins/tvm-gpu/detail/PR-16474/30/pipeline? I remember you hit something like this before.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Update flash attention to integrate flash decoding with paged KV cache [tvm]
Posted by "masahi (via GitHub)" <gi...@apache.org>.
masahi commented on PR #16474:
URL: https://github.com/apache/tvm/pull/16474#issuecomment-1912677068
> LGTM! When passing paged kv cache, is there any assumption there? e.g., layout
Yes, I added shape and dtype requirements as comments.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Update flash attention to integrate flash decoding with paged KV cache [tvm]
Posted by "vinx13 (via GitHub)" <gi...@apache.org>.
vinx13 commented on PR #16474:
URL: https://github.com/apache/tvm/pull/16474#issuecomment-1912754133
@masahi this is probably the case, it didn't happen for this kernel before though
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Update flash attention to integrate flash decoding with paged KV cache [tvm]
Posted by "masahi (via GitHub)" <gi...@apache.org>.
masahi commented on PR #16474:
URL: https://github.com/apache/tvm/pull/16474#issuecomment-1912756112
oof. It's not surprising, since I added a new variant of kernel (flash decoding) with yet another many explicit template instantiations https://github.com/tlc-pack/libflash_attn/pull/9
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Update flash attention to integrate flash decoding with paged KV cache [tvm]
Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen closed pull request #16474: Update flash attention to integrate flash decoding with paged KV cache
URL: https://github.com/apache/tvm/pull/16474
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org