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

[POC] [Do not merge] BatchPrefill without custom mask support non-cont kv-cache #508

Conversation

reyoung
Copy link
Contributor

@reyoung reyoung commented Sep 25, 2024

Related issue #506

@@ -76,10 +76,13 @@ std::vector<torch::Tensor> BatchPrefillWithPagedKVCachePyTorchWrapper::Run(
CHECK_INPUT(q);
CHECK_INPUT(qo_indptr);
if (paged_kv_defined) {
CHECK_INPUT(paged_kv_cache.value());
CHECK_CUDA(paged_kv_cache.value());
CHECK_LAST_DIM_CONTIGUOUS(paged_kv_cache.value());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe we need a new macro here, like CHECK_INPUT_LAST_DIM_CONTIGUOUS()?

@yzh119

@yzh119
Copy link
Collaborator

yzh119 commented Oct 9, 2024

Closed as #513 was merged.

@yzh119 yzh119 closed this Oct 9, 2024
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