Result: 141.2 GB in FP16, 70.6 GB in INT8, and 35.3 GB in INT4.
An H100 (80 GiB) or 80 GiB A100 (80 GiB, 85.9 GB) cannot hold 141.2 GB of weights, so Llama-3.1-70B in FP16 does not fit on one GPU. Serving it requires either tensor parallelism (\(\text{TP}=2\)) or quantization to INT8/INT4.
The KV Cache
Weights are only part of the total. Each active request also needs a KV cache:
The conclusion: A 70.6B-parameter model needs more than 141.2 GB. It needs 141.2 GB + (\(\text{KV cache} \times \text{concurrent requests}\)). At production batch sizes and long contexts, the KV cache can consume more memory than the weights.
What To Do About It
Strategy
Memory Impact
Trade-off
INT4 quantization
\(4\times\) ideal weight reduction (141.2 GB \(\to\) 35.3 GB raw; ~3.88× with FP16 scales per 128-weight group in CompressionModel)
Requires calibration; pass measured accuracy_delta to CompressionModel
This analysis was computed with mlsysim, a first-principles analytical modeling framework for ML systems. All specifications are traceable to hardware datasheets and model cards.