LearnThatStack Ace your next interview
Open-Source & Local LLMs · question
Question 5 of 55

What is quantization, and why does it matter so much for local LLMs?

beginner
← All Open-Source & Local LLMs questions
Re-explain

Quantization stores model weights at lower precision, with fewer bits per number than the original 16-bit floats. A 4-bit copy of a model is roughly a quarter of the size.

That size drop is the whole point. The weights have to fit in VRAM, and consumer GPUs have very little of it.

It also makes generation faster. Decoding is limited by memory bandwidth, so reading fewer bytes per token gives more tokens per second.

The cost is accuracy. 8-bit is close to lossless. 4-bit is usually fine for chat. Below that, quality drops fast.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

The diagram below the answer is the concept . Jump to it ↓

Tailored explanation · switch back to · ·
What should the new diagram focus on?
Guided practice for Open-Source & Local LLMs One question at a time. Answer out loud, get graded, see what you missed.
How well did you know this?
AI:

Saved in this browser - sign in to keep your review list.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Interview lens How interviewers actually use this question

Likely follow-ups

What you can say

  1. Quantization means storing a model's weights with fewer bits per number, say 8 or 4 bits instead of the original 16-bit floats.
  2. At 4 bits the model is roughly a quarter of its original size, and for local use that size drop is the main reason to do it.
  3. The weights have to fit in VRAM, and a consumer GPU has very little of it, so without quantization many models won't load at all.
  4. It also makes generation faster. Decoding is limited by memory bandwidth, so reading fewer bytes per token gives you more tokens per second.
  5. The cost is accuracy. 8-bit is close to lossless and 4-bit is usually fine for chat, but below 4 bits quality drops fast.

Weak answers to avoid

  • Says it just makes the model smaller Size is only half of it. Say why size matters. Weights must fit in VRAM, and decode is bandwidth-bound, so fewer bytes also means more tokens per second.
  • Treats quantization as free It trades accuracy for memory. Give the rough curve. 8-bit is near lossless, 4-bit is usually fine for chat, and below 4 bits quality drops fast.
  • Mixes it up with distillation or pruning Quantization keeps every weight and stores each one in fewer bits. Distillation trains a smaller model and pruning drops weights. Keep them apart.
  • Credits the speedup to cheaper math Decode is limited by memory bandwidth, not arithmetic. The speedup comes from reading fewer bytes of weights for every token generated.
Interview lens

Likely follow-ups, what you can say, and the weak answers to avoid.

Sign in free to open it Free account - the lens opens as soon as you're back.

Want a quick review of the fundamentals? See the Open-Source & Local LLMs cheatsheet.

← Back to all Open-Source & Local LLMs questions
Pro · $10/mo

48 of 55 Open-Source & Local LLMs answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime