Prefix Caching and Prompt Reus... Note

Prefix Caching and Prompt Reuse

Overview This post is divided into five parts; they are: • Reusing Prefill Work • Finding the Longest Cached Prefix • Block Hashes, Radix Trees, and Compatibility • Designing Prompts for Reuse • Capacity and Measurement Reusing Prefill Work During prefill, every layer computes keys and values for every prompt token.
CdXz5zHNQW_wXXM7oUBzo.jpeg