How much RAM does a model need?

Roughly: the size of the GGUF file on disk, plus the KV cache for your chat context, plus about 1.15 GB of runtime overhead.

Short answer

Roughly: the size of the GGUF file on disk, plus the KV cache for your chat context, plus about 1.15 GB of runtime overhead. A 5 GB model at 8K context needs ~7 GB free RAM to run smoothly.

Detailed explanation

Three things eat RAM when a model runs:

1. Model weights. The GGUF file gets loaded (mostly) into RAM. A 4.5 GB Q4 file needs ~4.5 GB of RAM for the weights themselves. Larger quantizations (Q6, Q8) proportionally larger.

2. KV cache. The model’s short-term memory for the current chat. Scales with context length, layers, and the number of key/value heads. For Llama 3.1 8B at 8K context, ~1 GB. Grows with longer context settings.

3. System overhead. Abliteration uses a fixed budget of ~1.15 GB (400 MB compute buffer + 780 MB baseline for the llama.cpp runtime), plus whatever Windows and other apps use on top of that.

Formula Abliteration uses on model add: total needed = model file size + KV cache at fixed 8K context + ~1.15 GB overhead. The 8K figure is deliberately fixed - the fit check doesn’t try to predict which context you’ll actually set, because that’s configurable per model in Edit.

Model tier rules of thumb (Q4_K_M quantization, 8K context):

Tier Example File size KV cache Overhead Total RAM
3B Qwen 2.5 3B 1.9 GB 0.3 GB 1.15 GB ~3.5 GB
7B Qwen 2.5 7B 4.7 GB 0.5 GB 1.15 GB ~6.5 GB
13B Qwen 2.5 14B 9.0 GB 1.5 GB 1.15 GB ~12 GB
30B Qwen 2.5 32B 19.9 GB 2.0 GB 1.15 GB ~23 GB
70B Llama 3.3 70B 42.5 GB 2.5 GB 1.15 GB ~46 GB

KV cache varies a lot between models of the same size (Llama 3.1 8B needs 1 GB at 8K where Qwen 2.5 7B needs 0.5 GB). The Hardware card uses its own rounded per-tier thresholds (3.5 / 7 / 12 / 22 / 50 GB).

MoE models follow the same RAM rule - the whole file (all experts) has to fit - but only some experts are active per token, so they run faster than their file size suggests. See MoE vs dense.

Why it matters

RAM is the #1 bottleneck for local LLM. Get it wrong and you either can’t load the model, or it swaps to disk and generation becomes 10-100× slower. Right-sizing means: pick a quant that leaves 2-3 GB of headroom in your free RAM after Windows and other apps.

In Abliteration specifically

The fit-check dialog on model add uses this formula and tells you the number, for example: “{name} needs about 7.0 GB. You have 5.0 GB free right now, but your PC has 32.0 GB total.” Then either lets you add anyway (ADD ANYWAY) or cancel.

The Hardware card’s Line 3 aggregates this into tier recommendations for your specific PC.

The per-model context slider (⋯ → Edit → context) shows the KV cache change live - moving from 8K to 32K on Mistral 7B or Llama 3.1 8B bumps KV from 1 GB to 4 GB.

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration