ByteDance-Seed / ByteDance-Seed/ShadowKV

[QUESTION] Cache Policy Code

Open
#17 1 comment 0 reactions 1 assignee Claimed by @preminstrel View on GitHub
Dominant language
Python
Stars
313
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Thanks for the great paper.

I had a question about the implementation. In the paper I found that ShadowKV uses a cache policy to retain chunks that remain the same from decode step to decode step.:

Image

But I was unable to find this in the code. There's only a comment that says that position IDs can be used to determine the cache hit rate.

I wasn't able to find the mechanism where it only fetches the necessary chunks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.