How do you estimate whether a model fits on a given GPU? Will a 70B model fit on one 80 GB card?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Start with weights = params × bytes/param, then add KV cache and runtime overhead:
FP32: 4 B/param FP16/BF16: 2 INT8/FP8: 1 INT4: ~0.5-0.6 (incl. scales)
Full worked answer
Start with weights = params × bytes/param, then add KV cache and runtime overhead:
FP32: 4 B/param FP16/BF16: 2 INT8/FP8: 1 INT4: ~0.5-0.6 (incl. scales)
70B model: FP16 → ~140 GB - does not fit on one 80 GB GPU; you'd need 2 GPUs with tensor parallelism. FP8/INT8 → ~70 GB - technically fits but leaves almost nothing for KV cache, so it's not serveable on one card in practice. INT4 → ~35-40 GB - fits comfortably, leaving ~30+ GB for KV cache and buffers. That's why "70B on a single 80 GB GPU" almost always means 4-bit.
The full budget is:
total ≈ weights
+ KV cache (bytes/token × total cached tokens across all sequences)
+ activations & workspace buffers (batch- and seqlen-dependent, ~GBs)
+ CUDA context / framework overhead (~1-2 GB)
For inference you do not need optimizer states or gradients - that's a training concern (where the multiplier is ~16+ bytes/param for full fine-tuning). A common interview trap is forgetting the KV cache: a model that "fits" with 2 GB to spare serves a batch size of ~zero. Serving frameworks make this explicit - vLLM pre-allocates a fraction of GPU memory (gpu_memory_utilization, default ~0.9) and dedicates whatever remains after weights to the paged KV pool.
Small-end intuition to have ready: 8B FP16 ≈ 16 GB (fits a 24 GB consumer card); 8B INT4 ≈ ~4.5 GB (runs on a laptop); 1-3B INT4 runs on phones.
What a good answer covers
- 70B model: FP16 → ~140 GB - does not fit on one 80 GB GPU; you'd need 2 GPUs with tensor parallelism
- FP8/INT8 → ~70 GB - technically fits but leaves almost nothing for KV cache, so it's not serveable on…
- INT4 → ~35-40 GB - fits comfortably, leaving ~30+ GB for KV cache and buffers
- That's why "70B on a single 80 GB GPU" almost always means 4-bit
- For inference you do not need optimizer states or gradients - that's a training concern (where the…
Key terms: not
In the glossary: KV cache · FP8 / INT8 · Tensor parallelism · Fine-tuning · vLLM
Interviewer follow-ups to expect
How much memory does the KV cache add if you serve 32 concurrent 8K-context sequences on that 70B?
Why might you still choose 2×GPU FP8 over 1×GPU INT4?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep