IAEXPLAINED SIMPLY3 MIN

4-bit or 8-bit AI: how quantization helps a model fit on your computer

Quantization stores a model’s numbers more compactly. It can cut memory use substantially, but the download size alone does not tell you whether the model will run well.

A person working with a Mac Studio in a studio, official Apple photograph
Image: Apple
01

Smaller numbers, not a shorter summary

A quantized version can make a local AI model fit on a computer that cannot hold its higher-precision version. Quantization stores the model’s weights, the numbers learned during training, using fewer bits. It saves space by representing those values less precisely.

The goal, as Hugging Face explains, is to preserve useful accuracy while reducing memory requirements. This is not the same as removing a set of facts or summarizing a document. It changes the numerical representation used to produce answers.

Labels such as 4-bit and 8-bit describe that representation, not an intelligence score. Comparing different models solely by their bit depth tells you very little about which will answer your questions better.

Front view of a Mac Studio desktop computer
Image: Apple
02

Estimate the weights, then allow for the rest

Consider a simplified model with eight billion weights. At 16 bits each, those weights need about 16 decimal GB. At 8 bits they need about 8 GB, and at 4 bits about 4 GB. The calculation is weight count × bits ÷ 8. These are weight-storage estimates, not complete system requirements.

Actual formats include additional information and may leave some components at higher precision. Bitsandbytes documentation illustrates why a quantized model need not store every component in the same way. A 4-bit download therefore will not necessarily be exactly one quarter of a 16-bit download.

The application and the conversation need memory too. Ollama’s context documentation warns that increasing context length raises memory use. Context is the material available for the current request, rather than permanent recall. Our local AI versus cloud guide explains which resources your own machine must provide.

Rear connections and ventilation on a Mac Studio
Image: Apple
03

Compare versions on your actual work

Use the same base model and context length when comparing two quantizations. Start with a version your application supports on your hardware. A smaller model file may run faster or fit entirely on the GPU, but the software and quantization method affect the result. A fixed speed increase is not guaranteed.

04

Check quality as well as memory

Quantization is also different from fine-tuning. One changes how weights are represented, while the other adapts behavior through additional training.

  • Choose an identified publisher and a format supported by your application. Check the base model, bit depth and estimated memory requirement.
  • Run repeatable tasks with answers you can verify, such as extracting dates or summarizing a document you know. Fluent writing alone is not a quality test.
  • Monitor memory with a conversation as long as your normal workload. In Ollama, ollama ps shows the CPU/GPU split and allocated context.
  • If memory runs out, reduce context or try a smaller model. If answer quality deteriorates and memory allows it, compare a higher-precision version.
00

The conversation starts here

Sign in with a supporter account to comment. Sign in

Nobody has commented yet. Want to go first?

YOUR NEXT ROUTE

Keep following AI models and agents

If this story interests you, these three pieces are the best place to carry on.

OPEN THE FULL TOPIC
  1. 01Claude now leads 26% of Anthropic's measured R&D work, but it still cannot build models aloneIA · 2 MIN
  2. 02Claude merges chat and Cowork, bringing documents into the conversationIA · 3 MIN
  3. 03Uploading a PDF is not training an AI: what fine-tuning actually changesIA · 3 MIN

KEEP READING

You may also like

FRONT PAGE