domains / families / devops / prefix-cache-replay

prefix-cache-replay

separate

Replay an LLM inference request trace (Mooncake / vLLM / SGLang hash_ids format) against a block-level KV prefix cache and compute hit statistics. Use when given a request trace plus cache configuration and asked for hit rate, hit tokens, or final cache contents. Covers the longest-contiguous-prefix semantics that distinguishes KV prefix caching from full-prompt prompt caching, the policy-specific residency and eviction rules (LRU, LFU, S3FIFO), and the partial-last-block accounting rule.

When to use

When not to use

Skill page

Source

RepositoryPath
benchflow-ai/skillsbenchtasks/llm-prefix-cache-replay/environment/skills/prefix-cache-replay/SKILL.md