Hardware, Numbers, and Quantization
CPUs, GPUs, memory bandwidth and the roofline model, number formats from FP32 to FP4, memory math for weights and KV cache, and quantization from first principles to k-quants, i-quants, GPTQ, AWQ, and making your own GGUF.
- 16.CPUs, GPUs, and Memory for Inference
- 17.FLOPs, Bandwidth, and the Roofline Model
- 18.Number Formats: FP32, FP16, BF16, FP8, INT8, INT4, and FP4
- 19.Memory Math: Weights, KV Cache, and What Fits
- 20.Quantization Fundamentals
- 21.Building Q8_0 and Q4_0 Like ggml
- 22.k-quants, i-quants, and the Importance Matrix
- 23.GPTQ, AWQ, EXL3, NF4, and FP8 Serving
- 24.Making, Quantizing, and Testing Your Own GGUF
