We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Definition: std::vector<void*> block_pointers(batch_size * 2 * maxBlocksPerSeq, nullptr);
... auto kv_cache = device_->allocateBuffer( {DataType::TYPE_UINT64, {(size_t)batch_size, maxBlocksPerSeq}, AllocationType::HOST}, {});
Copy size larger than dst size: std::memcpy(kv_cache->data(), block_pointers.data(), block_pointers.size() * sizeof(void*));
block_pointers.size() * sizeof(void*) = batch_size * 2 * maxBlocksPerSeq * sizeof(void*) kv_cache size() = batch_size * maxBlocksPerSeq * sizeof(unsigned long)
The text was updated successfully, but these errors were encountered:
Hi, thank you for your comment on this bug. we are working on a fix now. btw, how did you find this ?
Sorry, something went wrong.
No branches or pull requests
Definition:
std::vector<void*> block_pointers(batch_size * 2 * maxBlocksPerSeq, nullptr);
...
auto kv_cache = device_->allocateBuffer(
{DataType::TYPE_UINT64, {(size_t)batch_size, maxBlocksPerSeq}, AllocationType::HOST}, {});
Copy size larger than dst size:
std::memcpy(kv_cache->data(), block_pointers.data(), block_pointers.size() * sizeof(void*));
block_pointers.size() * sizeof(void*) = batch_size * 2 * maxBlocksPerSeq * sizeof(void*)
kv_cache size() = batch_size * maxBlocksPerSeq * sizeof(unsigned long)
The text was updated successfully, but these errors were encountered: