4400: Advanced Quantization Techniques - Prerequisites¶
For: 4401: GPTQ
Before You Start¶
This module covers post-training quantization methods (GPTQ, AWQ, GGUF, EXL2) plus sparsity, ternary, and production deployment — the techniques that run after training is done. Quantization-Aware Training itself is Module 4300: Quantization Aware Training (QAT)'s subject.
Required Knowledge:
Quantization Fundamentals¶
- INT8 vs INT4 vs FP16
- Scale and zero-point calculation
- Per-channel vs per-tensor quantization
- Post-training quantization
Linear Algebra¶
- Matrix multiplication
- Singular Value Decomposition (SVD)
- Hessian matrix
- Outlier detection
Optimization¶
- Gradient descent
- Second-order methods (Hessian)
- Optimal brain surgery (pruning)
If you're not familiar:¶
Review Resources:
- "GPTQ: Accurate Post-Training Quantization" (Frantar et al., 2022)
- "AWQ: Activation-aware Weight Quantization" (Lin et al., 2023)
- GGUF documentation (llama.cpp)
- ExLlamaV2 documentation
Estimated Review Time: 4-5 hours
Self-Assessment¶
Can you:
- Explain the difference between PTQ and QAT?
- Calculate optimal scale for quantization?
- Describe what makes a layer "sensitive" to quantization?
- Understand the trade-offs between different quantization formats?
If YES: Start with 4401: GPTQ
If NO: Review the resources above first, especially: