Building an Attention-Driven Semantic Caching Layer for LLM APIs
Learn how to build a production-grade semantic caching layer for LLM APIs using custom attention-based scoring, demonstrating critical infrastructure skills.
Learn how to build a production-grade semantic caching layer for LLM APIs using custom attention-based scoring, demonstrating critical infrastructure skills.
A hands-on guide to building a pure-Python paged attention KV-cache with LRU and frequency-based eviction policies — a portfolio project that demonstrates deep systems engineering skills.
A portfolio-grade systems project that demystifies LLM inference by implementing streaming sliding-window attention, prefix KV-cache reuse, and dynamic context eviction from scratch in pure Python.
Mooncake reframes KV cache as a first-class distributed resource. This post walks through its architecture, the KV store design, and why prefilling and decoding benefit so differently from cache disaggregation.
Once a model fits on one accelerator, inference is mostly GEMMs and kv cache lookups. Once it doesn’t, you inherit every problem distributed systems has spent thirty years failing to solve.