Skip to content

How much VRAM do you need to run a local LLM?

Work it out in three steps, then check you were right — because the model file is not the whole bill.

By Fiqhro Dedhen4 min readFact-checked against the sources below

The internet's answer to this is a table of model sizes. That table is wrong, or at least incomplete, and it is why people download a model that "should fit" and watch it crawl.

Here is the procedure.

Step 1: find out what you actually have

Not what the box said. What the machine reports.

  • Nvidia: nvidia-smi — read Total, not Free.
  • Apple Silicon: unified memory, shared with everything else the Mac is doing.
  • Ollama users: the server log reports the total VRAM it discovered at startup. Use that number, because it is the one your runner will act on.

If the reported figure is far below your card's size, stop here — you have a detection problem, not a sizing problem. See Ollama not using your GPU.

Step 2: subtract the things that are not the model

This is the step everyone skips. Your budget is not "VRAM minus file size".

Also needs memoryRoughly
The context windowGrows with length; can be gigabytes at long context
Runner and framework overheadHundreds of megabytes
Your desktop, browser, everything elseOn a shared/unified system, real

A useful working rule: leave around 20% of your VRAM free, more if you intend to use a long context. A model that exactly fills your card does not run; it spills.

Step 3: pick the biggest model that fits the remainder

Now use the file size. GGUF filenames encode the quantization, which is what determines size:

VRAMRealistic sweet spot
8 GB7–8B at Q4_K_M
12 GB13B at Q4_K_M, or 7B at Q6_K
16 GB13B at Q5_K_M / Q6_K
24 GB32B at Q4_K_M
48 GB70B at Q4_K_M
96 GB+70B at Q6_K, or larger models

These are starting points, not guarantees — architectures vary, and a mixture-of-experts model needs memory for all its experts even though only a few run per token, which makes it a worse fit than its speed suggests.

The rule that beats the table: for a fixed memory budget, a bigger model quantized harder usually beats a smaller model at higher precision. Prefer 13B at Q4 over 7B at Q8.

Step 4: check you were right

Do not trust the arithmetic. Load the model and ask:

ollama ps
NAME             ID              SIZE      PROCESSOR    CONTEXT    UNTIL
gemma4:latest    c6eb396dbd59    9.6 GB    100% GPU     131072     2 minutes from now
  • PROCESSOR says 100% GPU → you sized it correctly.
  • Any CPU percentage → part of the model is on your processor. That is the cliff, not a gentle slope: a model 90% on GPU and 10% on CPU is dramatically slower than one fully resident.
  • CONTEXT far lower than you expected → your runner made room by shrinking the window, or never had the VRAM it needed.

If it does not fit

In order of what to try:

  1. Drop a quantization level. Q5 → Q4 is usually invisible. Q4 → Q3 usually is not.
  2. Shorten the context. A 128k window you do not use is memory you are wasting.
  3. Drop a model size. 13B → 7B. Last resort, biggest quality cost.

What not to do: run it half on the CPU and tell yourself it is fine. Fix the sizing or use a smaller model — a fast small model beats a slow big one for everything except bragging.

What we addedA three-step sizing procedure with the headroom rule the download pages omit — the context window is allocated on top of the file size, which is why models that "should fit" spill onto the CPU — plus the ollama ps verification step.

This article was researched and drafted with AI assistance from the sources listed below, then checked and edited by Fiqhro Dedhen before publication. How we work.

Sources

4 cited · 4 primary

  1. 1
    PrimaryOllama (Docs)
    Context length

    States that raising context raises memory required, and documents the ollama ps PROCESSOR/CONTEXT check used in step 4. Read 17 July 2026.

    docs.ollama.com · accessed 17 Jul 2026

  2. 2
    PrimaryHugging Face
    GGUF

    The quantization naming that maps a filename to a memory footprint.

    huggingface.co · accessed 17 Jul 2026

  3. 3
    PrimaryHugging Face
    Quantization overview

    Reference on quantization methods and their quality/size trade-offs.

    huggingface.co · accessed 17 Jul 2026

  4. 4
    PrimaryOllama (Docs)
    Hardware support

    Hardware requirements and GPU selection — relevant to step 1, establishing what VRAM is actually available.

    docs.ollama.com · accessed 17 Jul 2026

Primary sources are the company, paper or repository itself. Reporting is established press, used to corroborate. Community is used to find stories, never to establish facts.