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

[Llama] Do not allow configurable partitions for KVCache #856

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

Conversation

Groverkss
Copy link
Contributor

This has been inconsistent in multiple places. KVCache generally only needs 2 partitions, one for Key and another for Value. Some places assume there are two partitions, other allow multiple partitions. This PR makes it that the cache is always partitioned into 2.

Copy link
Member

@dan-garvey dan-garvey left a comment

Choose a reason for hiding this comment

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

small nit, otherwise great simplification

sharktank/sharktank/layers/kv_cache.py Show resolved Hide resolved
@Groverkss Groverkss force-pushed the change-kv-cache-layout branch from f0e624d to 396bf6f Compare January 23, 2025 19:22
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