FP8 vs INT4 memory calculator
FP8 (E4M3) cuts BF16 weight memory in half with virtually zero accuracy loss on Hopper and Blackwell GPUs, while INT4 (AWQ/GPTQ/NF4) cuts weight memory by ~72% so 70B models fit on a single 48–80 GB GPU. Compare exact weight VRAM, KV cache, activation overhead, minimum GPU counts, and single-stream decode ceilings below.
Interactive calculator
| Metric | BF16 (Baseline) | FP8 (E4M3) | INT4 | INT4 vs FP8 |
|---|
FP8 vs INT4 practical trade-offs
| Dimension | FP8 (E4M3) | INT4 (AWQ / GPTQ / NF4) |
|---|---|---|
| Effective bytes / param | ~1.05 bytes (weights + per-tensor/block scales) | ~0.55–0.61 bytes (packed 4-bit + FP16 group scales) |
| Typical MMLU / PPL drop vs BF16 | <0.1% (effectively lossless on most tasks) | 0.5%–1.8% (noticeable on coding/math at <14B) |
| Hardware acceleration | Native FP8 Tensor Cores on Ada, Hopper, Blackwell | Dequantized W4A16 via Marlin/ExLlamaV2 (native FP4 on Blackwell) |
| Best batch regime | Medium-to-high batch (compute-bound serving) | Batch 1–16 (memory-bandwidth bound) or tight VRAM |
Frequently asked questions
How much less VRAM does INT4 use compared to FP8?
INT4 weights (AWQ, GPTQ, or NF4 with group size 128) use roughly 0.56 bytes per parameter including scale factors and zero-points, compared to ~1.05 bytes per parameter for FP8 E4M3. That cuts model weight memory by ~47%, though KV cache and runtime activations remain the same unless you also quantize KV cache.
When should I choose FP8 over INT4 for LLM inference?
Choose FP8 on Hopper (H100/H200), Ada (L40S/RTX 4090), or Blackwell (B200) GPUs when you have enough VRAM and want near-lossless accuracy (<0.1% perplexity drift) plus native FP8 Tensor Core throughput at medium-to-high batch sizes. INT4 shines on memory-constrained cards or low-batch decode where HBM bandwidth is the bottleneck.
Why isn't INT4 exactly 0.50 bytes per parameter?
Group-wise INT4 quantization stores FP16 scales (and zero-points for asymmetric schemes) per 64 or 128 weights, plus unquantized embeddings, layernorms, and lm_head weights. In practice, AWQ/GPTQ g128 lands around 0.55–0.58 bytes/param.
Does FP8 require an H100 or newer GPU?
Native hardware FP8 Tensor Cores require NVIDIA Ada Lovelace (RTX 4090, L40S), Hopper (H100, H200), or Blackwell (RTX 5090, B200). On Ampere (A100/RTX 3090), FP8 weights must be software-dequantized to BF16/FP16 on the fly, so INT4 Marlin kernels are usually faster.
Can I combine INT4 weights with FP8 KV cache?
Yes. Engines like vLLM and SGLang support W4A16 (INT4 weights) alongside FP8 E4M3 KV cache, cutting both weight footprint and long-context memory simultaneously.
All calculations run locally in your browser. Effective bytes per parameter include group scales and unquantized embedding/head overhead; verify exact VRAM against your serving engine (vLLM, SGLang, TensorRT-LLM, llama.cpp).