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] Update kv cache to have read/write functions #280

Merged
merged 7 commits into from
Oct 29, 2024

Conversation

rsuderman
Copy link
Contributor

Made the interfaces of both caches line up. This allows us to interface with the caches via their utility functions instead of modifying the model behavior. Some roughness still exists in their parameters but the irrelevant details are ignored for each implementation.

Need to still add some slicing / ignoring on the page ids to make more flexible.

@rsuderman rsuderman force-pushed the kv_cache_refactor branch 2 times, most recently from 372d8f1 to 3444f6d Compare October 16, 2024 19:56
@dan-garvey
Copy link
Member

We needed this so badly, thanks Rob

Made the interfaces of both caches line up. This allows us to interface
with the caches via their utility functions instead of modifying the
model behavior. Some roughness still exists in their parameters but the
irrelevant details are ignored for each implementation.

Need to still add some slicing / ignoring on the page ids to make more
flexible.
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.

LGTM

@dan-garvey dan-garvey merged commit 89e26c0 into nod-ai:main Oct 29, 2024
3 checks passed
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.

3 participants