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

[MooncakeStore][Feature] Introduce two new KVCache interfaces #160

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

stmatengss
Copy link
Collaborator

  1. Add new get/put tensor interfaces
  2. Add new get/put CPU memory interfaces
  3. Add wrapper for Mooncake vLLM Adapter

@stmatengss stmatengss requested a review from alogfans March 21, 2025 03:08
return 1;
}

const char *str = exportSlices(slices, str_length);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An unnecessary memory copy will occur here; it would be more efficient to copy directly to the target address.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can checkout the exportSlices function and copy data to the given user buffer directly.

@stmatengss stmatengss requested a review from xiaguan March 21, 2025 08:03
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.

3 participants