Skip to content

Fix KVCache::Copy() for tiled KV caches. - #1080

Merged
copybara-service[bot] merged 1 commit into
devfrom
test_1016446564
Nov 9, 2026
Merged

copybara-service[bot] merged 1 commit into
devfrom
test_1016446564

Conversation

@copybara-service

Copy link
Copy Markdown

Fix KVCache::Copy() for tiled KV caches.

Copy() never allocated the compact local/global tile storage, so copying a
cache created with any tiled attention_impl aborted in CopyMat(). Allocate and
copy that storage, and point the copy's kv_head_ptrs at it instead of leaving
them empty.

@google-cla

google-cla Bot commented Nov 9, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service
copybara-service Bot force-pushed the test_1016446564 branch 3 times, most recently from 4607664 to 700d3e3 Compare November 9, 2026 19:49
Copy() never allocated the compact local/global tile storage, so copying a
cache created with any tiled attention_impl aborted in CopyMat(). Allocate and
copy that storage, and point the copy's kv_head_ptrs at it instead of leaving
them empty.

PiperOrigin-RevId: 1017521437
@copybara-service
copybara-service Bot merged commit 39c7a93 into dev Nov 9, 2026
5 of 6 checks passed
@copybara-service
copybara-service Bot deleted the test_1016446564 branch November 9, 2026 19:53
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.

1 participant