How LLM Quantization Works: Running 70B Models on a Single Consumer GPU

A 70-billion-parameter model stored in FP16 needs about 140 GB of memory just for its weights. That number explains why LLM quantization matters: it shrinks those weights so you can run a model that big on a single consumer GPU instead of a rack of datacenter cards. What follows is the mechanics of quantization, the VRAM math at each precision level, what quality you give up, and the practical setups that put a 70B-class model on one GPU.

Why model weights eat so much memory

A language model is mostly one giant pile of numbers: its parameters. Every parameter sits in memory at a fixed precision, and the precision decides the size. The formula is brutally simple: parameters times bytes per parameter equals the memory the weights need.

Floating point 32 (FP32) stores each number in 4 bytes. FP16 and BF16 use 2 bytes. An 8-bit integer (INT8) uses 1 byte, and 4-bit quantization uses half a byte. Multiply that out for a 70B model and the problem gets obvious:

Precision Bits per weight Weight size (70B params)
FP32 32 ~280 GB
FP16 / BF16 16 ~140 GB
INT8 8 ~70 GB
INT4 4 ~35 GB

Those figures are weights only. During generation the model also keeps a KV cache of past tokens plus runtime overhead, so the real total is always higher. Still, the table shows the prize: dropping from 16 bits to 4 bits cuts the weight footprint four times over. That single cut is what moves a 70B model from impossible to reachable on consumer hardware.

How quantization actually works

Quantization replaces high-precision numbers with low-precision ones, but not by blindly rounding everything. The trick is to keep the range of the data intact while using fewer bits to describe it.

Here is the core idea. Take a block of weights, say 32 or 64 of them. Find the block’s minimum and maximum. Map that range onto the small set of values the low-bit format can express, for example 0 to 15 for 4-bit. Store a scale factor (how wide the range is) alongside the tiny integers. To use a weight, multiply the stored integer by the scale factor. You lose some precision in the rounding, but the block keeps its overall shape.

Plain round-to-nearest rounding works, but smarter methods keep more quality:

  • K-quants (the GGUF family). Instead of one bit width for everything, different layers and tensor types get different widths. Sensitive layers, like attention projections, might stay at 5 or 6 bits while bulkier layers drop to 4. Q4_K_M is the popular middle ground: mostly 4-bit with the delicate parts raised higher.
  • AWQ (activation-aware weight quantization). During a calibration pass it watches which weights light up most strongly in the activations, a small fraction of “salient” weights that matter most for output quality, and protects them with per-channel scaling before quantizing the rest. This is why AWQ tends to hold quality well at 4-bit.
  • GPTQ. A layer-by-layer method that uses a small calibration dataset to measure and correct the error each quantized layer introduces, using second-order information about how weights interact. Mature, widely supported, and a common choice for GPU inference servers.

One common confusion: GGUF is a file format, not a quantization algorithm. A GGUF file bundles the quantized weights together with the tokenizer and metadata into one portable file. The weights inside can be Q4_0, Q4_K_M, Q5_K_M, Q8_0, and so on. AWQ and GPTQ, by contrast, are quantization methods whose output pairs with specific inference engines.

Memory math for a 70B model

Here is the arithmetic for a 70-billion-parameter model at common quantization levels. The weights column is exact math (parameters times bits divided by 8); the practical total adds a few gigabytes for the KV cache and runtime overhead at a modest 4K context. Long contexts inflate the KV cache fast, so treat the totals as floor estimates.

Quantization Bits per weight (approx) Weights Practical total Fits a 24 GB GPU?
FP16 16 ~140 GB ~145 GB+ No
Q8_0 (GGUF) 8 ~70 GB ~74 GB No
Q6_K (GGUF) ~6.6 ~58 GB ~62 GB No
Q5_K_M (GGUF) ~5.7 ~50 GB ~54 GB No
Q4_K_M (GGUF) ~4.9 ~43 GB ~47 GB No
Q3_K_M (GGUF) ~3.7 ~32 GB ~36 GB No
Q2_K (GGUF) ~2.6 ~23 GB ~27 GB Borderline, and quality usually is not worth it

So no sensible 4-bit quantization of a 70B model fits entirely inside a 24 GB consumer card. Full-GPU inference at Q4 wants a 48 GB card or two cards. But a model does not need to fit entirely in VRAM to run on one GPU, which is where the next sections come in.

What happens to output quality

Quality loss from quantization follows a curve with a clear knee:

  • Q8 is close to the original. If you have the memory, there is little reason to go lower.
  • Q6 and Q5 sit between: slightly better than Q4, slightly hungrier.
  • Q4 is the sweet spot for most people. On a 70B-class model, 4-bit quantization typically causes only minor quality loss, the kind you notice in side-by-side tests rather than normal use.
  • Q3 is where the drop becomes obvious. Reasoning, code generation, and long-context recall suffer first.
  • Q2 is usually a false economy. The file fits anywhere, but the answers often are not worth reading.

Two details matter more than the ladder itself. First, the damage is not spread evenly across tasks. Quantization hurts multi-step reasoning, math, and code far more than casual conversation. A heavily quantized model can chat pleasantly and still fail the actual job you bought the GPU for. Second, no generic ranking replaces testing: run the quantized model on your own prompts and your own evals before committing to a setup.

The one rule that matters when picking a model

Given a fixed memory budget, a bigger model quantized harder usually beats a smaller model quantized lightly. A 70B at Q4 will generally outperform a 13B at Q8 on hard tasks, because parameter count buys knowledge and reasoning depth that extra numerical precision cannot rebuild. The rule holds until quantization gets extreme: below roughly 3 bits, the damage outweighs the size advantage and you are better off with a smaller model at Q4. Practical version: pick the biggest model that fits your setup at Q4, not the smallest model that fits at Q8.

Three practical paths on a single consumer GPU

Path 1: GGUF with partial GPU offload

This is the standard answer for a 24 GB card. Tools like llama.cpp and Ollama can split the model: load as many layers as fit in VRAM, and keep the rest in system RAM where the CPU handles them. A 70B at Q4_K_M needs roughly 47 GB total, so about half the layers sit on the GPU and half on the CPU. Inference works, but speed depends on your CPU and RAM bandwidth, and it is much slower than full-GPU inference. If you go this way, make sure you have plenty of system RAM: the model still needs its full footprint somewhere.

A minimal llama.cpp server looks like this:

llama-server -m llama-3-70b-q4_k_m.gguf 
  -ngl 35 
  -c 4096

The -ngl flag sets how many layers go to the GPU (many 70B models have around 80 layers). Start conservative, raise it until you are near the VRAM limit, and watch throughput while you tune. If the server dies with an out-of-memory error, lower -ngl and try again. Ollama does this layer splitting automatically when you load a 70B model, which is why many people start there.

Path 2: more VRAM

If offload speed is not acceptable, the honest fix is hardware: a 48 GB workstation card, or two consumer cards, holds a 70B at Q4_K_M entirely on GPU. At that point AWQ or GPTQ builds paired with an inference server like vLLM give the best throughput, because their GPU kernels are built for this. This is a budget question more than a technical one.

Path 3: right-size the model

If your task does not need 70B-class reasoning, a smaller model at Q8 on a single 24 GB card often delivers a better experience than a 70B starved of VRAM: full-GPU speed, higher precision, no offload complexity. Match the model to the job instead of the other way around. Serving techniques stack on top of quantization as well: speculative decoding can claw back some of the speed that offloading costs you.

Quick checklist before you start

  • Do the arithmetic first: parameters times bits divided by 8, then add a few gigabytes for KV cache and overhead.
  • Default to Q4_K_M for a 70B model. It is the best quality-per-gigabyte trade most people will find.
  • If you only have 24 GB of VRAM, plan for partial GPU offload with GGUF, not full-GPU inference.
  • Keep context length in mind: a 32K context can add many gigabytes of KV cache and blow up a budget that looked fine at 4K.
  • Test the quantized model on your real prompts. Chat quality surviving does not mean reasoning survived.
  • Prefer the biggest model that fits at Q4 over a smaller model at higher precision, until you drop below about 3 bits.

Ditulis oleh

Firdaus Safari Putra

Founder, PT FirKaizen Digital Solutions

Firdaus Safari Putra adalah founder PT FirKaizen Digital Solutions. Ia membangun dan mengoperasikan infrastruktur server di balik panduan ini, dan menulis berdasarkan apa yang benar-benar ia jalankan, uji, dan ukur — bukan teori.