Quantization Paradigms for Edge Inference: AWQ, GPTQ, and FP8 Matrix Cores

Deploying frontier-class language models on local workstations, developer laptops, and constrained edge appliances requires radical compression of model weights. A 70-billion parameter model stored in FP16 precision consumes $\approx 140 \text{ GB}$ of VRAM—far exceeding the capacity of standard consumer hardware.

Modern post-training quantization (PTQ) techniques compress weight matrices down to 4 bits or 8 bits while retaining over 99% of original perplexity.

✦

1. Comparing Core PTQ Methodologies

MERMAID
flowchart TD
    Weights["Full Precision FP16 Model Weights (140 GB)"] --> Strategy{Quantization Technique}
    Strategy -->|Channel Rounding| GPTQ["GPTQ (Second-Order Hessian Inversion)"]
    Strategy -->|Salience Protection| AWQ["AWQ (Activation-aware Weight Quantization)"]
    Strategy -->|Hardware Native| FP8["FP8 (E4M3 / E5M2 Formats)"]
    GPTQ --> Out4B["4-Bit INT Weights (35 GB)"]
    AWQ --> Out4B_Salient["4-Bit INT + FP16 Outlier Channels (36 GB)"]
    FP8 --> Out8B["8-Bit Floating Point (70 GB) Native Tensor Cores"]
✦

2. Deep Dive: AWQ vs GPTQ

Feature GPTQ AWQ (Activation-Aware) FP8 (Ada / Hopper)
Quantization Precision 4-bit INT 4-bit INT 8-bit Float
Calibration Set Required ($\approx 128$ samples) Required ($\approx 32$ samples) Minimal / Dynamic Scaling
Outlier Handling Global Hessian adjustment Preserves 1% salient weights in FP16 Handled via exponent bits
Memory Bandwidth Speedup $2.8\times - 3.4\times$ $3.0\times - 3.6\times$ $1.9\times - 2.2\times$
Hardware Compatibility All GPUs (compute shaders) All modern GPUs NVIDIA Hopper (H100) / Ada (RTX 4090)
✦

3. The Math Behind Activation-Aware Protection (AWQ)

Observation reveals that not all weights contribute equally to model perplexity. Across billions of parameters, less than $1\%$ of weight channels are responsible for preserving key attention activations.

AWQ identifies these salient channels by observing activation magnitudes $s_X$ under a calibration distribution:

$$W' = W \cdot \text{diag}(s), \quad X' = \text{diag}(s)^{-1} \cdot X$$

By searching for a per-channel scaling vector $s$ that minimizes quantization error:

$$\arg\min_s L(s) = \left\| W X - Q(W \cdot \text{diag}(s)) \cdot \text{diag}(s)^{-1} X \right\|_2$$

AWQ protects critical knowledge pathways without requiring full Hessian matrix inversion, executing calibration in under 15 minutes.

✦

4. Practical Implementation Advice