← [ ABORT TO HUD ]
SEQ. 1

Modern Quantization: FP8, AWQ, and Marlin

💎 Quantization & Kernel Optimization25 min200 BASE XP⌨ HANDS-ON LAB

High-Fidelity Low-Precision Representations

Quantization compresses floating point weights into smaller bit widths, cutting memory bandwidth pressure in half or by three-quarters.

Quantization Formats Compared

MethodBitsHardware TargetPrimary Benefit
NVFP4 / FP4 Micro-Scaling4-bit floatNVIDIA Blackwell (B200), Hopper FP4 kernelsBlock-level micro-scaling factors; 2.5x throughput over FP8 with sub-0.02 perplexity loss
FP8 (E4M3 / E5M2)8-bit floatNVIDIA Hopper (H100), Blackwell (B200)Near-zero perplexity loss, native Tensor Core hardware support, 2x throughput
AWQ (Activation-aware)4-bit intTuring, Ampere, Ada, HopperProtects 1% salient outlier weights to maintain reasoning benchmarks
Marlin Kernels4-bit FP16 mixedAmpere & newer NVIDIA GPUsReconstructs FP16 from INT4 at memory-bus speeds without dequantization stalls
GGUF (k-quants)2-bit to 8-bitCPU, Apple Silicon (Metal), Consumer GPUsLayer-by-layer mixed quantization tailored for memory-constrained local rigs
⌨ HANDS-ON LABQuantize Model to FP8 E4M3 & AWQ
⭐ +225 XP

Quantize BF16 weight tensors into FP8 E4M3 precision with calibration scales.

1Quantize model layer weights into FP8 E4M3 format.
lab-sandbox — simulated environment
INFINITY LAB SANDBOX v2.6 — simulated shell
Type the command for the current objective. Helpers: "hint", "solution", "clear".
$
OBJECTIVE 1 / 1 — type "hint" if stuck
SYNAPSE VERIFICATION
QUERY 1 // 1
Why does FP8 E4M3 quantization outperform older INT8 quantization on Hopper/Blackwell GPUs?
FP8 supports negative numbers while INT8 does not
FP8 uses more disk space
INT8 cannot run on Linux
Modern NVIDIA Tensor Cores feature dedicated FP8 FPUs that deliver 2x higher TFLOPS than FP16 without conversion overhead