Glossary

What is Quantization?

In Turkish: Kuantizasyon · Topic: Models and training

A method of shrinking a model and making it run faster by storing its numbers with fewer bits. It makes it possible to run models on weaker hardware at the cost of some loss in quality.

How does it work?

Model parameters are usually stored as 16-bit numbers. In quantization, these numbers are represented with 8, 4 or even fewer bits. As a result, the model file shrinks several-fold and runs with less memory. Because precision is reduced, there may be some drop in model quality; good methods keep this loss small.

Why does it matter?

It makes it possible to run large models on personal computers, phones and cheaper servers. For companies, it is one of the most effective ways to cut inference costs.

Example

A 4-bit quantized version of an open-weight model that would normally require a server card with large memory can run on a powerful gaming PC.

FAQ

Is a quantized model worse?

There is usually some loss in quality, but with light quantization such as 8-bit, the difference may not be noticeable for most tasks. At very low bit levels, the loss becomes more pronounced.

What do Q4 and Q8 in model names mean?

These labels generally indicate how many bits of quantization the model was compressed with: Q4 means roughly 4 bits and Q8 roughly 8 bits.

Related guides

All terms