Deterministic memory physics and cloud deployment sizing for Llama 3.1 8B Instruct. Verified 2026-12-06 using exact GQA KV-cache math and roofline throughput modeling.
| Quantization | Model Weights | KV Cache (FP16) | Activations + Runtime | Total VRAM |
|---|---|---|---|---|
| FP16 / BF16 | 15.0 GiB | 8.4 GiB | 2.5 GiB | 25.9 GiB |
| FP8 | 7.9 GiB | 8.4 GiB | 2.5 GiB | 18.8 GiB |
| Q4_K_M (4-bit) | 4.5 GiB | 8.4 GiB | 2.5 GiB | 15.4 GiB |
| GPU Architecture | VRAM / GPU | Minimum Valid TP Fit (≤90% util) |
|---|---|---|
| NVIDIA RTX 4090 24GB | 24 GB | 2× GPU (27.1 GiB used) |
| NVIDIA L40S 48GB | 48 GB | 1× GPU (25.9 GiB used) |
| NVIDIA H100 80GB SXM | 80 GB | 1× GPU (25.9 GiB used) |
| NVIDIA H200 141GB SXM | 141 GB | 1× GPU (25.9 GiB used) |
| AMD MI300X 192GB | 192 GB | 1× GPU (25.9 GiB used) |
| NVIDIA B200 192GB SXM | 192 GB | 1× GPU (25.9 GiB used) |
| NVIDIA B300 288GB SXM | 288 GB | 1× GPU (25.9 GiB used) |
At a 2.0x peak-to-average ratio, Groq remains cheaper than self-hosting RunPod — 1x (1x NVIDIA RTX 5090 32GB) even at full GPU capacity (self-host mainly for privacy, custom fine-tunes, or guaranteed rate limits).
Customize Your Traffic & SLA in Live Simulator →At 8,192 total context and 8 concurrent users (FP16 KV cache), Llama 3.1 8B Instruct requires 25.9 GiB in FP16, 18.8 GiB in FP8, or 15.4 GiB in Q4_K_M quantization. Its GQA KV cache uses 128.0 KiB per token.
NVIDIA RTX 4090 24GB: 2× GPU (27.1 GiB used); NVIDIA L40S 48GB: 1× GPU (25.9 GiB used); NVIDIA H100 80GB SXM: 1× GPU (25.9 GiB used)
At a 2.0x peak-to-average ratio, Groq remains cheaper than self-hosting RunPod — 1x (1x NVIDIA RTX 5090 32GB) even at full GPU capacity (self-host mainly for privacy, custom fine-tunes, or guaranteed rate limits).