Quantization
A 70B model needs 140 GB in bf16, two data-centre GPUs at least. In 4 bits it's about 40 GB and fits on one card, and it decodes faster too. The catch is that you're rounding every weight, and whether that costs you 0.5% or 10% on your task depends on the method, the model and what you ask it to do.
In this lesson you'll learn to
- Explain what quantization does, and why fewer bits make inference cheaper and faster.
- Compare FP8, INT8 and INT4, and weight-only against weight-and-activation quantization.
- Describe GPTQ, AWQ and GGUF, and when you'd meet each.
- Judge what quantization costs in quality, and test it on your own task.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.