Skip to content
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

[Runtime] Use preferred host memory (pinned memory) in KV cache #17036

Merged

Conversation

MasterJH5574
Copy link
Contributor

This PR updates the PagedKVCache with the pinned memory support, which can reduce the copy overhead between CPU and GPU.

This PR also bumps FlashInfer version, which now supports

  • specifying kernels to build via cmake,
  • pinned memory as host memory.

We also update CMakeLists.txt and config.cmake to include the FlashInfer compile options. Prior to this PR, the kernels being built is hardcoded in FlashInfer header files.

This PR updates the PagedKVCache with the pinned memory support,
which can reduce the copy overhead between CPU and GPU.

This PR also bumps FlashInfer version, which now supports
* specifying kernels to build via cmake,
* pinned memory as host memory.

We also update CMakeLists.txt and config.cmake to include the
FlashInfer compile options. Prior to this PR, the kernels being
built is hardcoded in FlashInfer header files.
@tqchen
Copy link
Member

tqchen commented May 29, 2024

@tvm-bot rerun

@tqchen tqchen merged commit 71f7af7 into apache:main May 29, 2024
18 checks passed
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

Successfully merging this pull request may close these issues.

2 participants