Will This LLM Fit on Your GPU

Pick a model, a quantization and a card, and get a straight answer with the arithmetic shown. Weight size uses measured bits per weight taken from 66 real GGUF files, not the nominal 4-bit figure most calculators assume, and the KV cache comes from each model's own published config rather than a rule of thumb.

Bits per weight are measured file sizes, see the table below.
CUDA context, compute buffers, fragmentation. An allowance you set, not a measurement.
weights   KV cache   overhead
Weights,
KV cache at your context and batch,
Runtime overhead allowance,
Total required,

Why the nominal bit count is the wrong number

A quantized checkpoint is not uniformly quantized. In the GGUF K-quant formats the attention and feed-forward weights carry the named precision, but embeddings, output projections and some per-layer tensors are kept wider, and every block stores scale and minimum values alongside its packed weights. The name tells you the dominant block type. It does not tell you the file size.

Measuring 66 published GGUF files across 11 models gives the real figure. Each file size below came from the x-linked-size header on the Hugging Face download URL, and each parameter count from the corresponding repository's safetensors index, both fetched on 22 August 2026.

Measured effective bits per weight, 66 GGUF files, 11 models
FormatNominalMeasured meanObserved rangeOver nominal
Q3_K_M3.04.0033.888 to 4.271+33.4%
IQ4_XS4.04.4124.318 to 4.642+10.3%
Q4_K_M4.04.9144.826 to 5.110+22.8%
Q5_K_M5.05.7235.669 to 5.830+14.5%
Q6_K6.06.5716.564 to 6.596+9.5%
Q8_08.08.5088.502 to 8.533+6.3%

Q4_K_M, the most downloaded format on Hugging Face, measures 4.914 bits per weight rather than 4. Q3_K_M is worse in relative terms at 4.003 against a nominal 3, a 33 percent overshoot, because the tensors held at higher precision are a larger share of a smaller total. Size a 32B model at a nominal 4 bits and you predict 16.0 GiB of weights. The real Q4_K_M file is 18.49 GiB. On a 24 GB card that gap is most of your context budget.

Q4_K_M measured, every model in the sample
ModelParametersFile sizeBits per weight
Qwen2.5-1.5B-Instruct1,543,714,3040.92 GiB5.110
Qwen2.5-3B-Instruct3,085,938,6881.80 GiB5.003
Mistral-7B-Instruct-v0.37,248,023,5524.07 GiB4.826
Qwen2.5-7B-Instruct7,615,616,5124.36 GiB4.919
DeepSeek-R1-Distill-Qwen-7B7,615,616,5124.36 GiB4.919
Meta-Llama-3.1-8B-Instruct8,030,261,2484.58 GiB4.902
phi-414,659,507,2008.43 GiB4.940
Qwen2.5-14B-Instruct14,770,033,6648.37 GiB4.868
DeepSeek-R1-Distill-Qwen-14B14,770,033,6648.37 GiB4.868
Qwen2.5-32B-Instruct32,763,876,35218.49 GiB4.847
DeepSeek-R1-Distill-Qwen-32B32,763,876,35218.49 GiB4.847

Applying the mean back to each model reproduces its real file size closely: the predicted weight size lands within 2 percent of the measured file for 10 of the 11 models, and the largest error in the set is 3.8 percent on the smallest model, where the fixed-precision tensors weigh most. That is the accuracy you should expect from the weights term here. The KV cache term is exact arithmetic on published config values, and the overhead term is your own allowance.

How the calculator works

Three terms are added. Two are computed, one is an allowance you control.

weights = parameters × measured_bits_per_weight / 8

Parameter counts come from each repository's own safetensors metadata, so they are the counts the checkpoint actually stores rather than the rounded name. Qwen2.5 7B stores 7,615,616,512 parameters, not 7,000,000,000.

kv_cache = 2 × layers × kv_heads × head_dim × context × batch × kv_bytes

The leading 2 covers the key and the value tensor. The term that matters most here is kv_heads, not the attention head count: a grouped-query model with 8 KV heads behind 32 attention heads uses a quarter of the cache a multi-head model of the same width would. Every value is read from the model's published config, which is why the answer changes so much between architectures that look similar on paper. For a deeper treatment of this term on its own, see the KV cache calculator.

The third term is runtime overhead: the CUDA context, the compute buffers the framework allocates for the forward pass, and allocator fragmentation. It depends on your runtime, your driver and your batching, so this page does not pretend to measure it. It is a field you set, defaulting to 1 GiB, and the verdict tells you how much slack you have so you can judge whether that default is generous enough for your setup.

The verdict treats anything above 95 percent of card capacity as too tight to trust, because a card at 99 percent occupancy fails the moment a prompt runs long or the allocator fragments.

GPU capacities used

Every capacity below was confirmed against the manufacturer's own specification page on 22 August 2026. Two commonly requested cards, the RTX A6000 and the V100, are absent because their stated capacity could not be confirmed from a fetchable primary source, and a number that cannot be checked does not belong in a calculator that people size hardware with.

GPUVRAMSource
RTX 3080 10GB10 GBNVIDIA spec page
RTX 3060 12GB12 GBNVIDIA spec page
T4 16GB16 GBNVIDIA spec page
RTX 4060 Ti 16GB16 GBNVIDIA spec page
RTX 4070 Ti SUPER 16GB16 GBNVIDIA spec page
RTX 4080 SUPER 16GB16 GBNVIDIA spec page
L4 24GB24 GBNVIDIA spec page
RTX 3090 24GB24 GBNVIDIA spec page
RTX 4090 24GB24 GBNVIDIA spec page
RTX 5090 32GB32 GBNVIDIA spec page
A100 40GB40 GBNVIDIA spec page
L40S 48GB48 GBNVIDIA spec page
A100 80GB80 GBNVIDIA spec page
H100 80GB80 GBNVIDIA spec page
H200 141GB141 GBNVIDIA spec page

Capacity is the physical figure. Your display output, desktop compositor and any other process take a share before your model loads, so treat the fit verdict as an upper bound on a card you are also using to drive a monitor.

What this calculator does not model

It sizes single-GPU inference. It does not model training, which adds gradients and optimizer state and is usually several times the weight size, and for that the GPU memory calculator for training is the right page. It does not model tensor parallelism across several cards, CPU offload, or the paged attention schemes that let some servers exceed these figures by trading latency. Speculative decoding and draft models add a second set of weights this page does not count.