Introduction to Quantization and Sharding for LLMs

Sharding: Dividing the Load

Quantization: Shrinking the Model

Pruning: Compressing the Model

Knowledge distillation: Training a smaller student

Making inference faster: KV cache, attention, and decoding

Conclusion