Ask what should change when the equation is manipulated, then use the linked notebook demo to test that expectation.
Foundation Lab
Quantization: Compressing Models to Integers
How you run 70B models on consumer GPUs: 4-bit quantization fits in 24GB VRAM
Selected Foundation Object
Keep the equation fixed; move through the evidence.
Neural nets are surprisingly robust to quantization—most precision is wasted
Use the linked notebook demo, this key equation, and canonical papers as separate witnesses for the same object.
The useful learning product is the reusable mechanism you can carry into another model, paper, or engineering tradeoff.
This atlas page has no local demo; the domain notebook carries the interactive witness and the fuller Intuition -> Math -> Code -> Demo sequence.
Why It Matters for Modern Models
- How you run 70B models on consumer GPUs: 4-bit quantization fits in 24GB VRAM
- GPTQ/AWQ/GGML are standard for deploying open-weight LLMs
- INT8 inference is ~2× faster than FP16 on modern GPUs (tensor cores)
What Tutorials Skip
What is still poorly explained in textbooks and papers:
- Neural nets are surprisingly robust to quantization—most precision is wasted
- Outliers are the enemy: a few large activations force bad scaling for everything else
- Quantization-aware training (QAT) is better than post-training quantization (PTQ), but expensive
Visualization Status
Core Math (Optional Deep Dive)
If you want intuition first, start with the key equation here and the linked notebook demo. Come back here for the full walkthrough.
Map FP32 weights to INT8 (or INT4):
Uniform quantization:
Dequantization:
Per-channel scaling (better quality):
Memory: FP32 → INT8 = 4× reduction. INT4 = 8× reduction.