All Questions
Llm Inference Serving medium

You serve a 7B-parameter model in fp16 (about 14 GB of weights) on one GPU with roughly 2 TB/s of memory bandwidth and hundreds of TFLOPs of compute. A product manager expects a single user's stream to exceed 1,000 tokens/sec because each token needs only about 14 GFLOPs of math. What single-sequence decode rate should you plan around?

  1. A Over 1,000 tokens/sec, because a decode step needs about 14 GFLOPs and the GPU's compute covers that many times per second.
  2. B Roughly 100 to 150 tokens/sec at best, because every decode step must stream all 14 GB of weights from HBM.
  3. C Roughly 100 to 150 tokens/sec, but adding a second replica behind the load balancer would double this user's stream rate.
  4. D Under 20 tokens/sec, because reading the KV cache costs more than reading the weights even for short prompts.

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

Get the app

Related questions