Sachin Rajput (@sachinrajputdev) header
Sachin Rajput (@sachinrajputdev) profile picture

LLM inference & serving: latency, throughput, cost per token. 15 yrs building low-latency systems. Writing Inference Foundations, every number measured.

Gurugram, India
Joined November 2026
Photo by Sachin Rajput (@sachinrajputdev)
One user on an H100 tops out near 209 tok/s with Llama 3.1 8B in BF16. Each token reads all 16 GB of weights, and 3.35 TB/s ÷ 16 GB ≈ 209. Batching is how you get paid for that read: 32 users share it, and per-user speed barely drops until KV reads catch up.
KV cache size is an architecture decision, made before anyone picks a GPU. DeepSeek-V3 with MLA: ~69 KB per token. The same model with plain multi-head attention: ~4,880 KB. That's 70x. At 128K context it's ~9 GB per chat vs over 600 GB.
3
Quick way to size KV cache before you buy GPUs: bytes per token = 2 × layers × KV heads × head dim × bytes per value Llama 3.1 8B in BF16: 2 × 32 × 8 × 128 × 2 = 128 KB. An 8K chat is ~1 GB. A 128K chat is ~16 GB, as much as the weights.
1
6
DeepSeek-V3 with plain attention would need about 4,880 KB of KV cache per token. MLA stores about 69 KB. That's ~70x less, and it's the difference between one 128K-token chat taking ~640 GB of GPU memory and ~9 GB. Architecture sets the serving bill before any kernel does.
8
Two H100s can hold Llama 3.1 70B. They can't hold anyone's conversation. 141 GB of BF16 weights on 160 GB, minus ~6 GB per card for runtime and scratch, leaves 6.8 GB for KV cache: 2.5 users at 8K tokens. Four H100s: 57.7 users. 23x more.
2
1
10
What else it showed: - Context is the biggest lever. Llama 3.1 8B on one H100: ~54 users at 8K, ~3 at 128K - Qwen2.5 7B fits 125 vs Llama's 54 on the same card (4 KV heads vs 8) - Mixtral 8x7B uses ~13B params per token but needs all 46.7B in memory
1
1