Skip to content
Reviewed by Bipeen Sinha Nov 22, 2026

Home › Guides › LLM quantization

Tech Explained · 2026

LLM Quantization in 2026: How 4-Bit Models Work, FP8 vs GGUF and the VRAM Math That Picks Your GPU

LLM quantization stores a model's weights in fewer bits, usually 4 or 8 instead of 16, so the same model fits a smaller GPU and answers faster. A 70B model drops from roughly 140 GB at FP16 to about 43 GB at 4-bit. Eight-bit formats cost almost no accuracy. Four-bit sometimes costs a lot.

22 November 202611 min readBy the 360 Digital Transformation Editorial Team
Key takeaways
  • Bits per weight is the whole game. FP16 costs 2 bytes per parameter, FP8 costs 1, and a 4-bit GGUF file lands near 0.6 bytes once block scales are counted. Multiply by parameter count and you have your VRAM floor.
  • Eight-bit is close to free. Baseten's engineering post on FP8 reports about 31% higher throughput on Mistral 7B with perplexity effectively unchanged against FP16.
  • Four-bit is not free, it is a bet. The EMNLP 2025 long-context study measured drops as large as 59% on RULER with BNB-nf4 at long input lengths.
  • Indian languages pay more. That same study found non-English accuracy can fall up to five times further than English under 4-bit methods.
  • The format follows the hardware. GGUF for consumer cards and CPUs, FP8 for Hopper and Blackwell data centre GPUs, NVFP4 for Blackwell throughput, in that order of safety.
  • Measure on your own eval set, not on MMLU. A quantised model that scores well on a public benchmark can still fail your retrieval task, and you will only see it in your own numbers.

Your demo worked on a borrowed A100. Then the budget came back, you got a single 48 GB card for production, and the 70B model you promised the business will not load. That is the week most engineers meet quantization properly, and it is usually the week they discover that the choice is not "quantise or not" but "which format, and what will it quietly break".

What LLM Quantization Actually Does to a Model

A trained model is a pile of matrices. Each number in those matrices is stored at some precision: 16 bits for FP16 or BF16, which is what most open-weight checkpoints ship as. Quantization rewrites those numbers at lower precision, and the trick that makes it survivable is that it does the rewriting in small groups.

Take 32 consecutive weights. Find the largest absolute value in that block, divide every weight by it, and you now have 32 numbers between -1 and 1 that you can round onto a 4-bit grid of 16 steps. Store the rounded integers plus one scale factor for the block. At inference the runtime multiplies the integers back by the scale and does the matrix multiply at higher precision. Because the scale is local to 32 weights rather than global to the whole tensor, one giant outlier value cannot wreck the rest of the layer.

That block structure is why format names carry so much detail. NVFP4 uses 16-value blocks with an FP8 scale, MXFP4 uses 32-value blocks, and llama.cpp's K-quants mix bit widths across a tensor so that attention layers keep more precision than the feed-forward stack. The arithmetic is simple. Deciding which tensors tolerate the loss is where the engineering lives, and it is the same instinct you use when you tune a RAG and agent pipeline: find the component that is cheap to degrade and the one that is not.

How a 4-bit weight block is built and read back

The scale is per block, which is why rounding error stays local instead of spreading across a layer.

Quantization pipeline from FP16 weights to 4-bit storage and back to compute precision FP16 weights are grouped into blocks of 32, a scale is computed per block, weights are rounded to 4-bit integers, stored on disk and in VRAM at about half a byte each, then dequantised back to compute precision before the attention and MLP maths runs. The KV cache is quantised separately. FP16 tensor 2 bytes per weight group Blocks of 32 one scale each scale Round to 4 bits 16 grid steps store Disk and VRAM about 0.6 byte each load Dequantise integer times scale feed Attention & MLP maths at FP16 or FP8 per token KV cache: quantised separately, with its own accuracy bill Weight format and cache format are two different decisions, and long context punishes the second one

Block structure follows the published NVFP4, MXFP4 and llama.cpp K-quant designs, checked 22 November 2026.

The Quantization Formats That Matter in 2026: GGUF, FP8, INT4 and NVFP4

There are dozens of named methods and about five you will actually choose between. The split is less about quality than about who runs the model: a llama.cpp or Ollama user on a laptop, or a serving stack on a rented GPU.

Format Bits per weight 70B footprint Runs natively on Where it fits
FP16 / BF16 16 about 140 GB Everything The baseline you measure against
FP8 (E4M3) 8 about 70 GB Hopper, Blackwell Production serving, lowest risk
GGUF Q8_0 8.5 about 70 GB CPU, any GPU Local work where quality matters
GGUF Q6_K 6.6 about 55 GB CPU, any GPU The quiet sweet spot most people skip
GGUF Q4_K_M 4.8 about 43 GB CPU, any GPU The consumer default
AWQ-int4 4 about 40 GB Most CUDA GPUs vLLM and TensorRT-LLM serving
GPTQ-int4 4 about 40 GB Most CUDA GPUs Older stacks, wide model coverage
NVFP4 4 plus FP8 scales about 39 GB Blackwell tensor cores Throughput at high concurrency
BNB-nf4 4 about 40 GB Most CUDA GPUs Quick experiments and QLoRA training

Why GGUF names look like a licence plate

Q4_K_M means 4-bit K-quant, medium variant. The K-quant family does not apply one bit width everywhere: it keeps attention projections and some embedding tensors at higher precision and squeezes the rest. That is why a "4-bit" file measures 4.8 bits per weight in practice, and why Q4_K_M consistently beats a flat 4-bit scheme at the same nominal size.

Why FP8 is the boring answer that keeps working

FP8 keeps an exponent, so it handles the wide dynamic range of transformer activations without much ceremony. It halves memory, it has native tensor core support on Hopper and Blackwell, and it rarely surprises you. The vLLM project's own study of FP8 KV cache reported about 14.9% higher output throughput on Llama-3.1-8B under load, with 13.0% faster total runtime and 14.8% lower median inter-token latency. Those are the numbers of a safe optimisation, not a miracle.

Four numbers worth memorising

If you remember nothing else from this page, these four decide most arguments.

2 bytes
Per weight at FP16, the baseline every saving is measured against
43 GB
A 70B model at GGUF Q4_K_M, per Ollama tag listings and community guides
0.79 pt
MMLU gap between FP8 and NVFP4 in NVIDIA's 12B, 10T token pretraining run
59%
Worst long-context drop measured for BNB-nf4 in the EMNLP 2025 study

Sources: NVIDIA's NVFP4 pretraining paper, the EMNLP 2025 long-context quantization paper, Ollama library listings. Checked 22 November 2026.

LLM Quantization and VRAM: The Math That Picks Your GPU

The formula is short. Weights in GB equal parameters in billions times bytes per weight. A 70B model at FP16 is 70 times 2, so 140 GB, which is two H100s before you have served a single token. The same model at Q4_K_M is 70 times roughly 0.6, so about 43 GB, which fits one 48 GB card with room for a short context.

Then add the KV cache, which is the line item people forget. The cache scales with batch size times context length, and on a long-context workload it can rival the weights. This is why the 8B model that ran fine at 4K context on your laptop falls over at 32K: the weights did not grow, the cache did. Ollama's library page lists gpt-oss:20b at 14 GB with a 128K context window, and that 14 GB is the download, not the ceiling you need to provision.

Weight footprint of a 70B model by format

Bars are weights only. Budget 10% to 40% more for the KV cache, activations and runtime overhead.

FP16baseline checkpoint
140 GB2 x H100
FP8Hopper, Blackwell
70 GB1 x H100 80GB
GGUF Q6_Klocal, high quality
55 GBneeds 64 GB
GGUF Q4_K_Mconsumer default
43 GB1 x 48 GB card
NVFP4Blackwell only
39 GB1 x 48 GB card

Footprints calculated from published bits-per-weight figures for each format and cross-checked against Ollama tag sizes, 22 November 2026.

What that means for a rented GPU bill

Price aggregators tracking on-demand rates in late November 2026 listed the A100 80GB at a median near $1.86 per hour across providers, the L40S 48GB near $1.09 on RunPod, and H100 SXM medians between roughly $4.54 and $4.94. Fitting a model onto one L40S instead of one H100 is therefore not a 10% saving, it is closer to a quarter of the bill. Run it 12 hours a day for a month and the difference is real money for a small team. Spot and reserved capacity cut it further, with the usual interruption risk, and GPU instance families and commitment pricing are worth understanding before you sign anything annual.

Also read: What Is vLLM in 2026? How Continuous Batching Works, vLLM vs Ollama and Real GPU Costs per Million Tokens.

FP8 vs GGUF vs INT4: Which One Belongs in Production

Here is the verdict, stated plainly. If you serve a model on a rented Hopper or Blackwell GPU, quantise to FP8 and stop there. If you run on a consumer card, a Mac, or CPU, use GGUF and pick the largest K-quant that fits with your real context length. Reach for INT4 or NVFP4 only when FP8 does not fit and you have an eval suite that can prove the loss is acceptable. Four-bit is the right answer far less often than the Hugging Face download counts suggest.

The trade-off I am accepting with that recommendation: FP8 leaves memory on the table. You could squeeze a bigger model onto the same card at 4-bit, and sometimes a 4-bit 70B genuinely beats an FP8 32B on your task. That is a measurement, not an assumption, and most teams never run it.

Your situation Pick this Why
Serving on H100 or B200, quality is the product FP8 weights, FP8 KV cache Native tensor core support, measured single-digit accuracy cost
Serving on A100 or L40S, no FP8 path AWQ-int4 Best measured quality among int4 methods on most CUDA stacks
Blackwell card, high concurrency, cost per token is the KPI NVFP4 Smallest footprint with accuracy close to FP8 in NVIDIA's own runs
8 GB or 16 GB laptop GPU, personal use GGUF Q4_K_M on a 7B to 14B model Fits with context to spare, runs through Ollama with no tuning
Mac with unified memory GGUF Q5_K_M or Q6_K Memory bandwidth, not VRAM, is your limit, so buy quality
Long context retrieval over 32K tokens 8-bit weights, unquantised or FP8 cache Four-bit degradation grows with context length
Hindi, Marathi or other Indic language output 8-bit, and test before you go lower Non-English accuracy falls further under 4-bit methods
Fine-tuning on one consumer GPU BNB-nf4 with QLoRA Training only; serve the merged model at 8-bit afterwards
Classification or extraction at huge volume Smaller model at 8-bit, not a big one at 4-bit A 4B model at FP8 usually beats a 14B at nf4 on narrow tasks

A real case: Baseten's FP8 numbers

The inference provider Baseten published a breakdown of quantising open-weight models to FP8 and reported roughly a 31% throughput improvement on Mistral 7B with perplexity effectively unchanged against the FP16 original. The more useful detail is the one they did not have to publish: INT8 with SmoothQuant was unusable for that particular model, so they dropped it. One format worked, a neighbouring format of the same bit width did not, and the only way they knew was by measuring both. That is the honest shape of this work. Serving decisions like these are the kind of production trade-off the MLOps Engineer course works through alongside the AI-300 objectives, because the registry entry and the serving format are the same conversation.

Where Quantization Quietly Breaks

Public benchmark tables make 4-bit look almost free. They are measuring short prompts in English. Both of those caveats matter enormously if you are building for an Indian user base.

The EMNLP 2025 paper "Does quantization affect models' performance on long-context tasks?" put numbers on it. Four-bit methods caused much larger losses than 8-bit ones, the damage grew with context length, and the worst case was a 59% drop on RULER with BNB-nf4 at long inputs. On needle-in-a-haystack retrieval the authors reported average decreases of up to 23% at maximum context length. Those are not rounding errors, they are a broken feature.

The multiplier nobody puts in the model card

Read this before you ship a 4-bit model to users who do not type in English.

5x

The EMNLP 2025 long-context quantization study found non-English accuracy can fall up to five times further than English under 4-bit methods, with low-resource language drops of 4.7% for AWQ-int4 and 8.4% for BNB-nf4.

Figures from the published paper's reported results, checked 22 November 2026.

What usually goes wrong here
  • You quantise, test in English, ship to Hindi users. The eval passes, the complaints arrive, and the logs look normal because the model is confidently wrong rather than broken.
  • You forget the KV cache. Weights at 4-bit, cache at FP16, and the pod still gets OOM killed at 32K context under four concurrent users.
  • You compare formats at different context lengths. A 4-bit win at 4K becomes a loss at 64K, so a benchmark run at one length tells you nothing about the other.
  • You trust a random community GGUF. Re-quantised uploads vary in quality depending on the calibration data used, and the file name tells you nothing about that.

Here is the caveat the vendors will not lead with. For reasoning-heavy work, low-bit quantization can make a model talk its way to the same answer in more tokens, which means your cost per task barely improves even though your memory bill halved. If you are optimising a bill rather than a GPU, measure tokens generated per solved task, not tokens per second.

Does LLM Quantization Reduce Accuracy Enough to Matter?

For 8-bit, usually not. NVIDIA's NVFP4 pretraining paper trained a 12B model on 10 trillion tokens and reported MMLU of 77.36 for FP8 against 76.57 for NVFP4, with MMLU-Pro 5-shot at 62.62 and 62.58 respectively. NVIDIA's own write-up on NVFP4 KV cache reports MMLU-Pro scores of about 78.2% at FP16, 78.1% at FP8 and 77.4% at NVFP4, describing the loss as under 1% across several benchmarks. When the hardware vendor's best case is "under one point", treat one point as your optimistic ceiling and anything larger on your own data as the truth.

The test that actually protects you takes an afternoon. Build 150 to 300 examples from your real traffic with known-good answers, score the FP16 model, score each candidate quantisation, and look at the worst decile rather than the mean. Averages hide the failures that generate support tickets. Build the harness once and it pays for itself on every model swap, every prompt change and every Azure AI Foundry deployment you make after this one.

A Worked Scenario: Two Engineers, One 48 GB Card and Bilingual Documents

This is an illustrative scenario, not a client case. Picture a two-person AI team at a mid-size insurer in Pune. They are building a policy-document assistant over about 40,000 PDFs, roughly 30% of them in Marathi and Hindi. Dev machines are laptops with 8 GB RTX 4060s. Production is one rented L40S with 48 GB.

Their first instinct is a 70B at Q4_K_M, because it fits the 43 GB number and 70B sounds serious. Work it through and that plan fails on three counts: the KV cache for 32K-token policy documents will not fit alongside 43 GB of weights, four-bit will hurt the Marathi answers most, and a single L40S serving a 70B will deliver single-digit tokens per second at any real concurrency.

The plan that works is less impressive and much better. Serve a 14B instruction model at FP8, which costs about 14 GB of weights and leaves over 30 GB for cache and headroom. Keep retrieval doing the heavy lifting so the model summarises rather than recalls. On the laptops, run the same 14B at Q4_K_M purely for prompt iteration, with a rule that no quality claim is ever made from a laptop run. Their eval set is 220 real questions, 80 of them Marathi, scored weekly.

What they gain: a predictable 48 GB budget, Marathi quality that survives review, and one experiment pending on whether a 32B at NVFP4 on a Blackwell card beats their 14B at FP8 on cost per solved ticket. That experiment is the right shape, because it compares outcomes rather than formats.

Live course

Learn to serve a quantised model behind a real RAG service, not a laptop demo

Live online·Sat–Sun, 8–11 PM IST·100+ hrs·Rs 24,999

100+ hours of live training across 16 weeks on generative AI, RAG and AI agents, certified on both Microsoft and Claude stacks. You build agents that plan, call tools and act, then put them behind an interface that holds up under real traffic.

Explore the course
AI Engineer Course: Generative AI, RAG & AI Agents (Microsoft + Claude Certified)

How to Quantise and Serve a Model in 6 Steps

Nothing here needs a budget. The first four steps run on a free Colab T4 or a laptop.

1

Measure the baseline first

Run your 150 to 300 example eval set against the unquantised model, or against the hosted API you are replacing. Save the per-example scores, not just the average. Without this file, every later comparison is a guess.

One afternoon
2

Run the memory math on paper

Parameters times bytes per weight, plus a KV cache estimate at your real maximum context and concurrency. If the total exceeds 85% of your card, pick a smaller model rather than a lower bit width.

Ten minutes
3

Pull a ready-made quant before building one

For local work, ollama run qwen3:8b gives you a 4-bit GGUF in one command. For serving, start from a published FP8 or AWQ checkpoint on Hugging Face and only quantise yourself if none exists.

Skip the build
4

Quantise with the serving stack's own tool

Use llm-compressor for vLLM, TensorRT Model Optimizer for NVFP4, llama.cpp's quantize binary for GGUF. Calibrate on 256 to 512 samples of your own prompts, never on generic web text.

Calibration matters
5

Re-score, then look at the worst decile

Compare per-example scores against step 1. If the mean holds but the bottom 10% collapses, you have found a systematic failure, usually long inputs or a non-English language.

Where bugs hide
6

Load test at your real concurrency

Serve with vLLM, push 32 and 64 concurrent requests, and watch VRAM and inter-token latency together. A format that wins at concurrency 1 can lose badly at 64, which is where your users live.

Before launch

If you want this as a guided path rather than a weekend project, the deployment and serving work sits inside the Azure AI Cloud Developer course for Azure-hosted stacks, the agent architecture side is covered in the CCAR-F prep course, and teams who mostly call hosted models rather than self-host them get more out of 360DT's CCDV-F developer prep. The full certifications overview maps which exam matches which job title, and the free webinars are a reasonable way to test whether live cohorts suit how you learn.

Also read: How to Run an LLM Locally in 2026: Ollama Commands, Hardware and What It Really Costs.

The Verdict

Quantise to 8 bits by default and treat 4 bits as a decision that needs evidence. FP8 on data centre hardware and the largest GGUF K-quant that fits on consumer hardware will serve you well for years, cost you almost nothing in quality, and never produce the particular embarrassment of a model that passed your English eval and then mangled a customer's Marathi question. Four-bit earns its place when memory is genuinely the binding constraint and you have measured the loss on your own data, in your own languages, at your own context length.

If I were starting tomorrow with one rented 48 GB card and a real product, I would run a 14B at FP8 and spend the saved weeks on retrieval quality instead of on bit widths, because retrieval is where the accuracy actually comes from. The quantisation decision takes a day. Building the pipeline that makes a small model look smart takes longer, and that is the skill the AI Engineer course is built around, with live sessions on Saturday and Sunday from 8 to 11 PM IST.

Frequently asked questions

What is LLM quantization in simple terms?

LLM quantization stores each weight in a model using fewer bits, typically 4 or 8 instead of 16. The weights are grouped into small blocks, each block gets a scale factor, and the values are rounded onto a coarser grid. The model gets smaller and faster, and loses a little precision in exchange.

How much VRAM do I need to run a 70B model?

About 140 GB at FP16, roughly 70 GB at FP8 or Q8_0, and about 43 GB at GGUF Q4_K_M. Add the KV cache on top, which grows with context length and concurrency, so a 48 GB card running a 4-bit 70B has very little room for long documents or multiple users.

Does quantization reduce accuracy?

At 8 bits the cost is usually under a point on standard benchmarks. NVIDIA's own NVFP4 work reports MMLU-Pro of about 78.1% at FP8 against 78.2% at FP16. At 4 bits it varies a great deal by method, task and language, and the EMNLP 2025 long-context study measured drops as large as 59% in its worst case.

Is GGUF Q4_K_M good enough for production?

For an internal tool with short prompts in English, often yes. For customer-facing output, long context, or non-English languages, start at 8 bits. GGUF also runs through llama.cpp rather than a high-throughput server, so it is rarely the right choice when you need to handle many concurrent requests.

What is the difference between FP8 and NVFP4?

FP8 uses 8 bits per weight with an exponent and runs natively on Hopper and Blackwell GPUs. NVFP4 uses 4-bit values in blocks of 16 with FP8 scale factors and needs Blackwell tensor cores. NVFP4 halves memory again, and in NVIDIA's published runs it lands within about a point of FP8 on knowledge benchmarks.

Can I run a quantised LLM on an 8 GB laptop GPU?

Yes, comfortably, up to around 8B parameters at 4-bit. A 7B or 8B GGUF at Q4_K_M is roughly 4.5 to 5.5 GB, leaving space for a modest context. Above 14B you will spill into system RAM and generation speed collapses, so pick a smaller model rather than a lower bit width.

Does quantization hurt Hindi and other Indian languages more than English?

The published evidence says yes for 4-bit methods. The EMNLP 2025 study found non-English accuracy can drop up to five times further than English, with low-resource language losses of 4.7% for AWQ-int4 and 8.4% for BNB-nf4. If your users write in Indian languages, test in those languages before dropping below 8 bits.

Should I quantise a fine-tuned model or fine-tune a quantised one?

Fine-tune first, then quantise the result for serving. Training on a 4-bit base with QLoRA is a memory workaround for the training run, not a serving recommendation: merge the adapter into the full-precision weights and quantise that merged model to 8 bits for production.

About this guide. 360 Digital Transformation is an Anthropic Partner and a Microsoft Authorized Training Partner. Other certification bodies, vendors and employers named here are not affiliated with us. Product features and pricing change often; figures cited were checked on 22 November 2026.

Learn it live with 360 Digital Transformation

Turn this guide into a skill employers can see

Live weekend cohortEMI available

AI Engineer Course: Generative AI, RAG & AI Agents (Microsoft + Claude Certified)

Rs. 38,000Rs. 50,540 Save 24%

Tools and platforms you work with

  • Python
  • Claude API
  • FAISS
  • ChromaDB
  • LangChain
  • LangGraph
  • CrewAI
  • AutoGen (AG2)
Add bonus modules
See the syllabus and batch dates

Other live courses on this career path