Home/Glossary/What is model quantization, and which bit level should I pick?

What is model quantization, and which bit level should I pick?

Updated · airankrush

Term · Quantization

Quantization is a way of compressing a model. A large model consists of an enormous number of weight values, each stored in its original form as a fairly high-precision floating-point number; quantization represents them with fewer bits, for example going from sixteen bits down to eight or four. With fewer bits, the model file and the memory used at run time shrink in proportion, and computation is usually faster too. The price is coarser values: output quality drops to varying degrees, the loss is more noticeable the lower the bit count, and models differ in how well they tolerate quantization. On a model's release page, the different files for one model usually carry the quantization level as a suffix in the file name.

How it relates to renting a remote Mac

Where quantization meets the Mac is memory. Apple silicon Macs use unified memory: the CPU and GPU share one pool, and once a model is loaded the GPU can compute on it in place. That lets a Mac with enough memory hold models that would not fit on an ordinary discrete graphics card, and it also means that how much memory the machine has largely decides how big a model you can run and at which quantization level.

And a Mac's memory cannot be added to after purchase. This is exactly where "rent first, buy later" makes sense for people running local models:

  • On a rented machine, actually run the few models and quantization levels you care about, see which level gives quality you can accept, and note the memory use at that point.
  • Remember to leave headroom for the system, the context, and other programs you keep open; the size of the model file is not the whole run-time footprint.
  • If you find this memory tier is not enough, trying another configuration costs less than finding out after you have bought the machine.

We have no measured speed or memory figures for any model to offer; the memory of each configuration is listed on the plans page. If your goal is just to use a model rather than to study local deployment, a cloud API is usually less work and you do not need a machine for it. Use case: people who want to try local models.

FAQ

Is a higher bit count always better?

More bits are closer to the original model, but the file and memory use are larger and it runs slower. A common rule of thumb: within the same memory, a model with more parameters and heavier quantization sometimes performs better than a model with fewer parameters at higher precision. This varies by model and task, so try it yourself.

Do quantized model files need backing up?

Generally not. They can be downloaded again from the model's release page, so you do not need to take them with you when the rental ends. What you should save are your own fine-tuning results, prompts and test records.

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · Glossary