Skip to content

Conversation

@yzh119
Copy link
Collaborator

@yzh119 yzh119 commented Jul 18, 2024

In our previous design, k-cache and v-cache are coupled together as a (num_pages, 2, page_size, num_heads, head_dim) or a (num_pages, 2, num_heads, page_size, head_dim) tensor.

In this PR, we decouple the k-cache and v-cache storage to enable more flexible kv-cache storage. Note that the original coupled layout is still supported, but we also supports standalone k-cache and k-cache.

@yzh119 yzh119 merged commit d68a408 into main Jul 18, 2024
yzh119 added a commit that referenced this pull request Jul 20, 2024
@yzh119 yzh119 deleted the decouple-kv-cache branch July 24, 2024 10:38
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