All Questions
Llm Inference Serving easy

A 70B model needs about 140 GB for its fp16 weights, but each server has one 80 GB GPU, and you want to avoid multi-GPU serving. Which approach is reasonable, and what is the tradeoff?

  1. A Keep fp16 and offload some weights to CPU RAM, which keeps full quality with only a minor slowdown in decoding.
  2. B Use smaller static batches, which reduces weight memory enough for the full fp16 model to fit on one GPU.
  3. C Quantize weights to 4-bit (about 35 GB), accepting a small quality loss that you verify on your own evals.
  4. D Quantize weights to 8-bit (about 70 GB), which fits with ample headroom left for KV cache at long contexts.

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

Get the app

Related questions