Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

Optimizing LLMs: Prompt Caching and Inference in vLLM

Vinh Nguyen 1 min read

In a new podcast episode titled "The Memory in the Machine," the technical intricacies of prompt caching and inference optimization in large language models are explored. The episode focuses on the vLLM engine, explaining how KV caching stores previous computations to save both time and money. Paged attention is introduced as a method to solve memory fragmentation by treating GPU resources similar to operating system pages. Additionally, prefix caching uses block hashing to identify and reuse identical prompt segments across user requests. Practical advice includes maintaining stable, append-only contexts and using deterministic serialization to maximize benefits.

React