4 ms·
Different types of models seem to have different "sweet spots." For example, current transformers llms seem to like 4-6 bits with smart quantization, with good
by brucethemoose2 3y ago
Different types of models seem to have different "sweet spots."
For example, current transformers llms seem to like 4-6 bits with smart quantization, with good performance at 3-4 bits with extremely aggressive quantization methods (like good use of sparsity and profiling inference on useful data).
The Stable Diffusion unet doesn't like 8 bit without some changes, the vae barely even likes fp16.
So to answer your question, some quantization is "free" and theres no reason not to use it, but sometimes its very lossy and a serious compromise that would not be taken with more compute/ram.
Also, sometimes there is compute overhead that makes quantization inferencr/training slower. Sometimes the reduced model weights size makes passes faster due to a memory bandwidth bottleneck. It just depends.