PROGRAM ZERO 18-month live AI, LLM & full-stack programme · ₹17,999 for all 18 months · Starts 9 January 2027
Explore Program Zero →
Careers Ninza — business and startup leadership training
JOIN ZERO NINZA KIDS
JOIN ZERO NINZA KIDS
See all programs → Free live masterclass → Guides & articles → Newsletter →
Careers Ninza
AI & AUTOMATION 9 min read · Updated 13 October 2026

LLM quantization explained: running big models on small hardware

Quantisation stores model weights with fewer bits so large models fit on smaller GPUs and laptops. How it works, the main methods, the quality trade-offs and how to choose a format.

CN
Careers Ninza AI faculty
Careers Ninza · Kolkata, India
Learn this live in Program Zero

Quantisation stores a language model’s weights with fewer bits, such as 8 or 4 instead of 16, so the model needs much less memory and often runs faster, at the cost of a small, usually acceptable, loss of accuracy. It is the main reason capable open models can run on a single GPU, a laptop or even a phone.

If you have ever wondered how people run large models at home, the answer is mostly quantisation. It is also central to serving models cheaply in production and to fine-tuning them on limited hardware.

Why does model size matter so much?

Memory needed for weights is roughly the number of parameters multiplied by the bytes per parameter. A 7-billion-parameter model in 16-bit precision needs about 14 GB for weights alone, before the memory for processing inputs. Store each weight in 4 bits and the weights need roughly a quarter of that. That is often the difference between needing a data-centre GPU and running on a consumer one.

PrecisionBytes per parameterApprox. weights for 7B parameters
16-bit (FP16/BF16)2About 14 GB
8-bit1About 7 GB
4-bit0.5About 3.5 GB

These are rough figures for weights only; real usage also includes activations, the KV cache and runtime overhead.

How does quantisation work?

Weights are mapped from high-precision numbers to a smaller set of values, with a scale factor so they can be approximately recovered during computation. Done naively, this damages quality. Modern methods choose the mapping carefully, often per small group of weights, and protect the weights that matter most.

What are the main quantisation methods?

—Post-training quantisation: quantise an already trained model, usually with a small calibration dataset.
—GPTQ: a post-training method that quantises weights layer by layer while minimising error.
—AWQ: activation-aware quantisation that protects the weights most important to the model’s outputs.
—Quantisation-aware training: simulate low precision during training so the model adapts; more effort, often better quality.
—QLoRA: fine-tune small adapters on top of a frozen 4-bit model; its authors fine-tuned a 65-billion-parameter model on a single 48 GB GPU.

What is GGUF and llama.cpp?

llama.cpp is an open-source project for running language models efficiently on ordinary hardware, including CPUs and laptops, and GGUF is its model file format, which supports several quantisation levels. It is a popular way to run open models locally for experimentation, privacy or offline use.

How much quality do you lose?

It depends on the model, the method and the bit width. 8-bit quantisation is usually close to the original; 4-bit with good methods is often acceptable for many tasks; very low bit widths degrade more noticeably. The only reliable answer is to measure on your own tasks, with the same evaluation set you use for everything else. Our guide to evaluating LLM applications shows how.

Quantise last, and evaluate after. Compare the quantised model with the original on your real test set, including tricky cases such as numbers, code and Indian-language text, which can be more sensitive.

How do you quantise a model in practice?

—Pick an open model and check whether quantised versions already exist; often they do.
—Choose the bit width based on your hardware memory and quality needs.
—If quantising yourself, use a calibration set that resembles your real inputs.
—Run your evaluation set on both the original and quantised versions.
—Measure memory, speed and cost, then decide whether the trade-off is worth it.

Quantisation also matters for privacy: running a quantised open model on your own hardware means sensitive data never leaves your systems, which can simplify compliance for Indian businesses handling personal data.

When should you quantise?

—Running a model on hardware with limited memory, including laptops.
—Reducing serving cost and increasing throughput in production.
—Fine-tuning large models cheaply with QLoRA.
—Deploying to edge devices where size and power matter.

For learners, quantisation is also the most practical way to experiment with capable models without expensive hardware. A quantised open model on a laptop lets you practise prompting, retrieval and evaluation end to end, then move to larger hardware only when a project actually needs it.

What are common quantisation pitfalls?

—Quantising before evaluating the original model, so you cannot tell what you lost.
—Using a calibration set that does not resemble real inputs.
—Assuming a quantised file is compatible with every inference engine.
—Forgetting that the KV cache and long contexts still consume a lot of memory.
—Comparing speed on different hardware and drawing the wrong conclusion.

How does this fit with other efficiency techniques?

Quantisation reduces memory per parameter; mixture of experts reduces compute per token; KV-cache management and batching improve serving efficiency. See mixture of experts explained and how small language models are trained for the bigger picture.

Where can you learn this hands-on?

Program Zero covers LoRA and QLoRA fine-tuning in its LLM phase and inference optimisation, including KV-cache management and quantisation with GPTQ, AWQ and GGUF, in its advanced LLM engineering phase.

Program Zero runs live online, so you can learn this from anywhere in India: metros such as Mumbai, Delhi NCR, Kolkata and Chennai, growing cities such as Chandigarh, Bhopal, Surat and Vadodara, and smaller towns such as Dehradun, Jammu, Gwalior and Jabalpur. Every learner joins the same evening classes, at the same fee.

Want to learn this live, with mentors?

In Program Zero you fine-tune with QLoRA and quantise and serve models efficiently, as part of an 18-month live programme in AI, LLMs and full-stack development. ₹17,999 for all 18 months; the batch starts 9 January 2027.

PROGRAM ZERO · 18-MONTH LIVE PROGRAMME
Program Zero: AI, LLM & Full-Stack Developer Programme

Learn AI, large language models and full-stack development live with mentors: from your first line of code to building and deploying your own language model.

₹17,999 for all 18 monthsStarts 9 January 2027Mon–Fri, 9:00–10:30 PM ISTEvery class recorded

Frequently asked questions

What is quantization in LLMs?+

Quantization stores a model's weights with fewer bits, such as 8 or 4 instead of 16, which cuts memory needs and often speeds up inference. Modern methods keep the loss of accuracy small enough to be acceptable for many tasks.

How much memory does a 7B model need?+

For weights alone, roughly 14 GB at 16-bit precision, about 7 GB at 8-bit and about 3.5 GB at 4-bit. Actual usage is higher because of activations, the KV cache and runtime overhead.

Does quantization reduce model quality?+

Usually a little. 8-bit is typically close to the original and good 4-bit methods are often acceptable, while very low bit widths degrade more. Always measure quality on your own evaluation set after quantising.

What is the difference between GPTQ and AWQ?+

Both are post-training quantization methods. GPTQ quantises weights layer by layer while minimising the resulting error, and AWQ is activation-aware, protecting the weights that matter most to the model's outputs.

What is QLoRA?+

QLoRA fine-tunes small low-rank adapters on top of a frozen, 4-bit quantized model, greatly reducing memory needs. Its authors reported fine-tuning a 65-billion-parameter model on a single 48 GB GPU.

What is GGUF?+

GGUF is the model file format used by llama.cpp, an open-source project for running language models efficiently on ordinary hardware. It supports several quantization levels and is popular for running models locally.

Can I run an LLM on my laptop?+

Yes, smaller open models quantized to 4 or 8 bits can run on many laptops using tools such as llama.cpp, especially with enough RAM. Larger models need more memory or a GPU.

Where can I learn model quantization in India?+

Program Zero by Careers Ninza covers QLoRA fine-tuning and inference optimisation with GPTQ, AWQ and GGUF within an 18-month live programme for Rs 17,999.

Related reading

AI & AUTOMATION LLM Course: What You Should Learn to Build Large Language Models Most LLM courses teach you to call an API. Building and adapting language models needs more: tokenisers, transformers, training, fine-tuning, alignment, evaluation and serving. Here is the full syllabus, in order. 10 min read AI & AUTOMATION Agentic AI Course: The Skills You Need to Build AI Agents in 2027 Building reliable AI agents takes more than chaining prompts. The skills an agentic AI course should teach, from tool use and memory to evaluation, security and deployment, and how to judge a course. 10 min read AI & AUTOMATION What Is Tokenization in LLMs? BPE, WordPiece and SentencePiece Explained Before a language model reads a word, a tokenizer chops text into pieces. How BPE, WordPiece and SentencePiece work, why tokens decide cost and context, and why Indian languages are affected most. 9 min read

We teach this, live

Every article here comes from something we teach. Sit in on a free masterclass and judge the mentors yourself.