All talks
Invited talk AI Engineer World's Fair · 2026 · San Francisco

Deep dive on LLM Inference at Scale

Presented by Harshul Jain · with Tanmay Sah

About this session

A single token of KV cache on Mistral 7B costs 131 KB. Multiply that by 16,000 tokens of context and 80 concurrent users and the cache alone wants 42 GB of GPU memory — which is why requests start failing on a 24 GB card. This workshop builds that number up from first principles. It opens on three symptoms every team hits: memory that climbs with context length, time to first token that degrades as prompts grow, and throughput that collapses because a naive server answers requests one after another. The rest of the session explains what causes each one, working down through the inference pipeline into the attention layer, then into how a GPU splits its memory between fixed model weights and the cache that has to grow. Optimization is then split in two. Tanmay takes the model side: quantization, multi-head through multi-query, grouped-query and latent attention, then FlashAttention and tiling. Harshul takes the serving side: paged attention borrowed from OS paging, continuous batching, prefix caching and KV quantization, each benchmarked against a plain baseline. It closes on engine selection: no statistical difference between vLLM and SGLang on standard workloads, but a 3–4× gap once agentic branching enters the picture.

#LLMInference#vLLM#KVCache#GPUServing#AIInfra

More talks