All Questions
Llm Inference Serving hard

A 70B-class model (80 layers, grouped-query attention with 8 KV heads of dimension 128) is served in fp16 on one 8-GPU node with about 640 GB of total HBM. Product wants 256 concurrent sessions, each holding a full 32K-token context. What is the binding constraint, and what does it imply?

  1. A Compute: 256 concurrent decode streams saturate tensor-core FLOPs long before memory matters, so prefill throughput is what caps the session count.
  2. B Interconnect: tensor-parallel all-reduce traffic grows with session count and saturates the intra-node GPU links well before 256 sessions are reached.
  3. C KV cache: at roughly 320 KB per token, each 32K session needs about 10 GB, so only around 45 full-context sessions fit beside the weights.
  4. D Weights: the 140 GB of fp16 weights are the problem, and moving to 4-bit weights frees enough HBM to reach 256 full-context sessions.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions