Quantization Frontiers: FP4 vs INT4 vs AWQ on Blackwell and Ada Lovelace GPUs [Source 19S60ptxAc1n]
Executive Summary: The Memory Bandwidth Wall and the Sub-8-Bit Imperative
In production Large Language Model (LLM) serving, inference performance is governed by a fundamental hardware asymmetry: compute capacity has outpaced memory bandwidth by an order of magnitude. During the autoregressive decoding phase—where a model produces tokens sequentially—the execution profile is strictly memory-bandwidth bound. Generating a single token requires streaming every single model parameter from High Bandwidth Memory (HBM or GDDR) into on-chip SRAM cache and compute registers. When executing a 70-billion-parameter model in standard 16-bit precision (FP16 or BF16), each token generation pass demands transferring 140 gigabytes of data across the memory bus.
Even on premier enterprise accelerators like the NVIDIA H100 SXM (3.35 TB/s memory bandwidth), theoretical unbatched decoding is bounded at approximately 24 tokens per second for a 70B model, leaving the vast majority of the GPU's 1,979 TFLOPS of FP16 Tensor Core horsepower idle. In consumer or enterprise edge environments utilizing NVIDIA's Ada Lovelace GPUs (such as the RTX 4090 with 1.0 TB/s or L40S with 864 GB/s), serving a 70B model in 16-bit precision is physically impossible without distributing weights across multiple expensive nodes.
To break through this Memory Bandwidth Wall, the industry has pushed beyond 8-bit quantization into the 4-bit frontier. Compressing weights down to 4 bits reduces memory traffic by 75%, shrinking a 70B parameter model from 140 GB to under 42 GB. This allows a frontier-class model to fit within the VRAM of a single consumer GPU or enterprise workstation, while quadrupling arithmetic intensity.
However, moving to 4 bits introduces severe numerical challenges. At 4 bits, an inference engine has only 16 discrete states (\$2^4\$) to represent continuous weights that span several orders of magnitude. The industry is currently divided across three primary 4-bit paradigms:
1. Integer Quantization (INT4 / GPTQ): Fixed-point linear mapping that relies on second-order error compensation. 2. Activation-aware Weight Quantization (AWQ): Salience-preserving integer quantization that isolates and protects critical activation-coupled channels. 3. Floating Point Quantization (FP4 / NVFP4): Non-linear logarithmic representations native to NVIDIA's Blackwell architecture, utilizing microscopic two-level block scaling.
Section 1: The Memory Bandwidth Wall in Modern LLM Serving
Understanding quantization requires analyzing the operational phases of modern transformer inference: Prefill (context encoding) and Decoding (token generation).
PREFILL PHASE: Compute-Bound Input Prompt Tokens (N) —> Parallel Matrix Multiply (GEMM) —> High FLOPs/Byte
DECODING PHASE: Memory-Bandwidth Bound 1 Token In —> Load Entire 140GB Weights (70B) —> 1 Token Out —> Idle Cores
Arithmetic Intensity and the Roofline Model
Arithmetic intensity is defined as the ratio of floating-point operations performed per byte of data transferred from memory: \$\$\text{Arithmetic Intensity} \= \frac{\text{Floating Point Operations (FLOPs)}}{\text{Memory Access (Bytes)}}\$\$
In the Prefill phase, all prompt tokens are processed simultaneously in large matrix-matrix multiplications (\$\text{GEMM}\$). The arithmetic intensity scales with prompt length \$N\$, easily exceeding 100 FLOPs/byte. In this regime, the GPU operates on the flat roof of the Roofline Model—saturating Tensor Core compute limits.
In the Decoding phase, however, generating token \$t+1\$ requires multiplying a single vector of hidden states (\$1 \times d_{\text{model}}\$) against the full weight matrices of every layer (\$\text{GEMV}\$). For a batch size \$B=1\$, the arithmetic intensity collapses to approximately: \$\$\text{Arithmetic Intensity}_{\text{decode}} \approx \frac{2 \times P}{2 \times P} \= 1 \text{ FLOP/Byte (in FP16)}\$\$ where \$P\$ is the parameter count. Because modern accelerators feature compute-to-bandwidth ratios exceeding 500:1 (e.g., NVIDIA H100 provides 1,979 TFLOPS vs. 3.35 TB/s \$\approx 590 \text{ FLOPs/Byte}\$), an arithmetic intensity of 1 FLOP/byte leaves more than 99% of compute silicon completely starved for data.
Memory Bandwidth Demand Equation
The theoretical maximum decoding throughput (Tokens Per Second, TPS) for a model with parameter count \$P\$ running on a GPU with memory bandwidth \$B_{\text{mem}}\$ (in GB/s) and precision bits \$b\$ is formulated as: \$\$\text{TPS}{\text{max}} \= \frac{B{\text{mem}}}{P \times \left(\frac{b}{8}\right)}\$\$
Theoretical single-stream decoding speeds for Llama-3.3-70B (\$P \approx 70 \times 10^9\$):
| Architecture | Memory Bandwidth | FP16 (\$b=16\$) Max TPS | INT8 / FP8 (\$b=8\$) Max TPS | 4-Bit (\$b=4\$) Max TPS | Bandwidth Multiplier | | :—- | :—- | :—- | :—- | :—- | :—- | | RTX 4090 (Ada) | 1,008 GB/s | *OOM (Exceeds 24GB)* | *OOM (Exceeds 24GB)* | 28.8 TPS | 4.0x | | L40S (Ada) | 864 GB/s | 6.1 TPS | 12.3 TPS | 24.6 TPS | 4.0x | | H100 SXM (Hopper) | 3,350 GB/s | 23.9 TPS | 47.8 TPS | 95.7 TPS | 4.0x | | B200 (Blackwell) | 8,000 GB/s | 57.1 TPS | 114.2 TPS | 228.5 TPS | 4.0x |
Section 2: Mathematical Foundations: INT4 vs AWQ vs FP4
The central challenge of 4-bit quantization is preserving the representational fidelity of multidimensional weight tensors when constrained to only 16 discrete numeric buckets.
1. Uniform Integer Quantization (INT4 & GPTQ)
Standard INT4 represents real-valued continuous weights \$W \in \mathbb{R}\$ through an affine linear mapping: \$\$\hat{W} \= \text{clamp}\left(\left\lfloor \frac{W}{S} \right\rceil + Z, -2^{b-1}, 2^{b-1}-1\right)\$\$ where \$S\$ is the scale factor, \$Z\$ is the zero-point offset, and \$\lfloor \cdot \rceil\$ denotes round-to-nearest integer.
GPTQ (Generalized Post-Training Quantization): GPTQ mitigates error by adapting the classical Optimal Brain Surgeon framework. It quantizes weights column by column, updating remaining unquantized weights \$W_{\text{remaining}}\$ using the inverse Hessian matrix of the activations.
2. Activation-Aware Weight Quantization (AWQ)
AWQ challenges the premise that all model weights are equally important. By analyzing activation distributions \$X\$ alongside weights \$W\$, AWQ observes that only 0.5% to 1% of weight channels are salient.
Rather than protecting salient channels via mixed precision, AWQ scales salient channels before quantization: \$\$W' \= W \cdot \text{diag}(s)\$\$ \$\$X' \= \text{diag}(s)^{-1} \cdot X\$\$ This preserves essential reasoning circuits while allowing standard uniform INT4 execution across all memory lanes.
3. Floating-Point 4-Bit Quantization (NVFP4 / Blackwell Micro-Scaling)
In NVIDIA's NVFP4 standard (implemented in Blackwell), the primary numerical format is E2M1:
* 1 Sign bit (\$S\$) * 2 Exponent bits (\$E\$, with bias \$= 1\$) * 1 Mantissa bit (\$M\$)
Microscopic Block Scaling (Micro-scaling / MX): Blackwell introduces two-level hierarchical scaling: a per-tensor scalar scale factor (\$S_{\text{tensor}}\$) multiplied by the per-block vector scale factor (\$S_{\text{vector}}\$). This microscopic granularity ensures outliers in one block do not pollute the quantization bins of another.
Section 3: Hardware-Level Execution: Blackwell vs Ada Lovelace
The difference between Ada Lovelace and Blackwell reflects a structural shift from hybrid integer pipelines to native micro-scaled floating-point tensor arithmetic.
Ada Lovelace Architecture (4th-Gen Tensor Cores)
NVIDIA's Ada Lovelace microarchitecture handles low-bit quantization primarily through Weight-Only Quantization (W4A16):
* Storage: Weights reside in memory compressed as INT4. * Execution: Before tensor core computation, the streaming multiprocessor (SM) executes an inline dequantization PTX kernel to convert integers to FP16 floats. * Tradeoff: Eliminates memory bandwidth consumption but consumes additional register file space and integer ALU cycles.
Blackwell Architecture (5th-Gen Tensor Cores & 2nd-Gen Transformer Engine)
NVIDIA's Blackwell microarchitecture introduces Native W4A4 Matrix Multiply:
* Hardware Native NVFP4: 5th-gen Tensor Cores feature physical ALUs wired directly for 4-bit floating-point arithmetic. * Hardware Scale Factor Unpacking: The 2nd-gen Transformer Engine automatically decodes and applies scaling factors directly inside the matrix-multiply pipeline. * FP4 GEMM Throughput: A single Blackwell B200 GPU achieves 9,000 TFLOPS (9 PFLOPS) of FP4 compute.
Architectural Comparison Matrix
| Hardware Feature | Ada Lovelace (RTX 4090) | Hopper (H100) | Blackwell (B200) | | :—- | :—- | :—- | :—- | | Tensor Core Generation | 4th Generation | 4th Generation | 5th Generation | | Transformer Engine | Software-based | 1st Generation | 2nd Generation | | Native FP4 Math in Silicon | No | No | Yes (NVFP4 E2M1) | | Primary 4-Bit Execution Mode | W4A16 | W4A16 / W8A8 | W4A4 & W4A8 | | Peak 4-Bit Compute | 660 TOPS | 1,979 TOPS | 9,000 TFLOPS |
Section 4: Empirical Accuracy & Perplexity Benchmarks
Evaluation of Llama-3.3-70B-Instruct acros
| Benchmark | FP16 Baseline | AWQ (INT4) | NVFP4 (E2M1) | | :—- | :—- | :—- | :—- | | GSM8k (Math Reasoning) | 94.2% | 93.1% (-1.1) | 93.8% (-0.4) | | HumanEval (Python Coding) | 85.4% | 83.2% (-2.2) | 84.6% (-0.8) |
Section 5: Production Setup Guide: AutoAWQ and vLLM Marlin
For developers targeting Ada Lovelace hardware, the most robust production path remains the Marlin kernel. Marlin optimizes the W4A16 (Weight-only INT4) execution path by utilizing global memory partitioning to saturate the L2 cache during dequantization. Deployment Workflow:
1. Quantize the model using AutoAWQ to identify salient channels. 2. Serve via vLLM using the –quantization marlin flag to enable optimized GEMM kernels.
Section 6: Hardware TCO Comparison
When evaluating the total cost of ownership (TCO) for serving 70B+ models, the efficiency of 4-bit quantization dramatically shifts the server density math.
| Configuration | Serving Capacity (70B Models) | Primary Quantization | | :—- | :—- | :—- | | 8x H100 SXM | 4 Instances | FP16 / FP8 | | 4x L40S (Ada) | 4 Instances | AWQ (INT4) | | 2x B200 (Blackwell) | 8 Instances | NVFP4 (Native) |
Section 7: Technical FAQs
*See JSON-LD Schema section for full technical answers regarding memory bandwidth, mathematical differences, AWQ salience, Ada hardware limits, and reasoning benchmarks.*
Some recommendations may include affiliate links. Read the disclosure next to each tool and verify current details with its provider.