AI 101

Quantization & local inference

How a 14 GB model becomes a 4 GB one — what quantization does, what it costs, and how to know if your machine can run it.

By the end of this page, you'll be able to read a model's size, guess how much RAM it needs, and know what you lose when you quantize.

The core idea

A model’s “brain” is billions of numbers — its weights. Each weight is normally stored as a 16-bit floating point number (FP16). For a 7-billion-parameter model, that’s ~14 GB of pure numbers before a single word of your prompt is processed.

Quantization is the art of storing each weight with fewer bits:

PrecisionBits/weight7B model sizeRuns on
FP1616~14 GBWorkstation / server
INT88~7 GBGood GPU (8 GB VRAM)
INT4 (Q4_K_M)~4.5~4 GBMost modern laptops
INT3 / Q3~3~3 GBOlder hardware, at a cost

The trick that makes this work: the model is surprisingly tolerant of imprecise weights. Dropping from 16 bits to 4 loses information, but the model’s behavior degrades much less than the size reduction suggests — usually a small quality drop, a big capability unlock.

What you actually lose

Quantization isn’t free. The typical trade-offs, in order of how you’ll notice them:

  1. Edge cases get dumber. Common tasks (summarize, translate, chat) barely change. Rare or complex reasoning (multi-step math, subtle code) degrades more.
  2. Consistency drops slightly. A quantized model is a bit more “loose” in its output distribution — more variation, occasional weird choices.
  3. The floor drops faster than the ceiling. A Q4 model is usually 90–95% as good as FP16 for everyday use, but its worst answers are noticeably worse.

The practical rule of thumb

Your RAM (or VRAM, if using a GPU) should be at least 1.5× the model file size.

A 4 GB Q4 model needs ~6 GB of free RAM to run comfortably. An 8 GB laptop can run a 7B Q4 model. A 16 GB machine can run a 13–14B Q4 model. Beyond that, you need a dedicated GPU or a server.

GGUF: the local model format

You’ll see “GGUF” everywhere in local AI. It’s a file format (originally from the llama.cpp project) that stores a quantized model with all its metadata in a single file. When someone says “download the GGUF”, they mean: here’s the model, ready to run locally, no server needed.

The quantization level is usually in the filename: model-7b-Q4_K_M.gguf = 7B parameters, 4-bit, “K” quantization method, “M” = medium.

Watch out: "Q4" isn't one thing. Q4_K_M, Q4_K_S, Q5_K_M, Q6_K — the second letter and suffix matter for size and quality. When in doubt, **Q4_K_M is the default sweet spot** for most hardware. Q5_K_M if you have the RAM and want a little more quality. Q3 only if you're genuinely RAM-constrained.
Try it: check your machine's RAM, then find a model file that's ~⅔ of that size. If it's under 8 GB total, you can probably run it locally today. That single check — *RAM vs model size* — is 90% of the "can I run this locally?" question answered.