Asked about Memory arithmetic and quantizing a model yourself

Why does weight-only quantization speed up generation?

An answer that works

Generating each token requires reading all the weights from memory, and that reading is the bottleneck. Smaller weights mean less to read per token, so each step is faster even if the arithmetic is done at higher precision.

Reading an answer is not being able to give one. The section that teaches this is Memory arithmetic and quantizing a model yourself, 4 hours of Quantization & inference optimisation.

Learn this properly