Skip to content

Guide

Q4, Q8 or FP16?

Smaller weights fit more models in VRAM and run faster. Here is what that trades away.

Size per billion parameters

FormatGB per 1B parameters8B model32B model70B model
Q40.574.6 GB18.2 GB39.9 GB
Q81.078.6 GB34.2 GB74.9 GB
FP16216 GB64 GB140 GB

Weights only; add the KV cache and about 1 GB of overhead. How we calculate it.

See it on your card

Frequently asked questions

What is quantization?

Quantization stores a model's weights with fewer bits. FP16 uses 16 bits per weight, Q8 about 8 and Q4 about 4, plus a little format overhead, so a Q4 model is roughly a quarter of the FP16 size.

Does Q4 hurt quality?

Usually a little, and more on small models and on tasks like code and maths. Q8 is generally regarded as close to FP16. We estimate memory and speed but do not measure quality, so test on your own prompts.

Is a quantized model faster?

Yes, when generation is memory-bound: fewer bytes per token to read means more tokens per second, in proportion to the size reduction.