Harshul explains that inference costs recur with every user, token, and session, while training is a one-time cost. He frames the main challenges as growing memory use, slower time to first token (TTFT), and limited throughput as more users make requests.
Deep dive on LLM Inference at Scale
Speakers
Harshul Jain, a senior software engineer at Audible, and Tanmay Sah, a senior quantitative modeler and AI researcher, lead an AI Engineer workshop on LLM inference, its costs, optimizations, and serving engines.
Harshul walks through tokenization, transformer layers, and attention, where key and value vectors make memory use grow with context length and concurrent users. For Mistral 7B, he estimates KV cache use at 131 KB per token, or about 2.1 GB for a 16K-token context. He explains that prefill is compute-bound and sets TTFT, while sequential decoding is memory-bound and affects inter-token latency.
Tanmay and Harshul cover quantization, which can shrink model weights, and attention approaches including multi-head, grouped-query, and multi-head latent attention. They describe trade-offs between memory savings and quality, and correct an earlier estimate: their benchmark found MLA uses 14 times less memory than multi-head attention, not 56 times.
Harshul explains KV caching, paged attention, continuous batching, prefix caching, and KV quantization as ways to reduce recomputation, memory waste, or repeated work. In their H100 benchmark with Mistral 7B, the default vLLM setup delivered nearly 15 times the throughput of a Hugging Face baseline. Their ShareGPT tests found similar results for vLLM and SGLang, while SGLang performed three to four times better on their agentic branching workload.
Tanmay reviews engine comparisons that include TensorRT-LLM and mentions newer options such as NVIDIA Dynamo, Hugging Face TGI, and Stanford's MSAR for multimodal workloads. He recommends starting with a model that fits the use case, then considering compression and quantization before choosing a serving engine based on workload needs. They point to KV eviction, cache compression, hybrid memory, and distributed inference as further topics.
Takeaways
- Estimate KV cache memory from context length and concurrency before choosing a GPU.
- Set quality, latency, and throughput priorities for the workload before selecting hardware.
- Benchmark quantization and attention changes against model quality as well as memory use.
- Use serving engine benchmarks that match the workload; their tests favored vLLM for standard requests and SGLang for agentic branching.
Mentioned in this talk
GPUTTFTKV cachePrefill and decodeMulti-head attentionMulti-query attentionGrouped-query attentionMulti-head latent attention
FlashAttention
Mambapaged attentionprefix caching
EAGLE-3Search inside this talk
What was claimed 7
- works atHarshul Jain works at
Audible
Senior Software Engineer“I’m a senior software engineer at Audible.”
YouTube Verified2 sources· Talk, Web· archived
- role atTanmay Sah is senior quantitative modeler at XAN Cup Bank Corporation
“Tanmay is a senior quantitative modeler at XAN Cup Bank Corporation.”
YouTube Unverified1 source· Talk
- metric
Mistral 7B: 7 billion parameters; about 15 GB in size
“It’s a small model, around 15 GB in size.”
YouTube Unverified1 source· Talk
- feature
vLLM: Provides paged attention, continuous batching, and KV caching by default
“By default, VLM provides paged attention, continuous batching, and KV caching.”
YouTube Unverified1 source· Talk
- feature
TensorRT-LLM: Optimizes inference layers and hardware performance
“They optimize every layer and every problem.”
YouTube Unverified1 source· Talk
- metric
vLLM: Similar requests per second, time to first token, and latency to SGLang in the standard ShareGPT benchmark
“We found no statistical difference between them.”
YouTube Unverified1 source· Talk
- metric
SGLang: 3 to 4 times better for the tested agentic branching workload, according to the speakers“With proper agentic branching, I think SGLang is three to four times better.”
YouTube Unverified1 source· Talk









