The Techno-WitchWe read the fine print so you don't have to.

Consult the almanac

Turning the pages…

Arrow keys to move, Enter to open, Esc to close. Every answer links to a dated page.



Local AI · The Hearth

How Much VRAM for a Local LLM? The Official Numbers

Small Gemma 4 models fit in 8 GB, gpt-oss-20b runs within 16GB, and 24 GB fits Gemma 4 31B at 4-bit. Official memory figures by model size.

Some links on this site may earn us a commission. It never changes a price, a verdict or what we tell you to skip. How we make money.

In this story (8 sections)
  1. Why people ask for the best GPU for a local LLM, and why the answer is a number
  2. Quantization in one paragraph
  3. The Gemma 4 memory table, weights only
  4. What 8, 12, 16 and 24 GB get you
  5. The models that need a datacenter, not a desk
  6. Context, the hidden memory tax
  7. Macs and unified memory
  8. What to do next

For a local LLM, the number that matters is memory: 8 GB runs the small Gemma 4 models, 16GB fits gpt-oss-20b, and 24 GB fits Gemma 4 31B at 4-bit, going by the makers' own figures. Bigger models like gpt-oss-120b and Llama 4 Scout need datacenter-class hardware.

All figures here are as of November 29, 2026, and come from model cards and app docs.

Why people ask for the best GPU for a local LLM, and why the answer is a number

Search for the best GPU for a local LLM and you get brand fights. The official pages stay out of it. Ollama's GPU page lists what it supports (Nvidia cards with compute capability 5.0+ on driver 550+, AMD Radeon cards through ROCm v7 on Linux, Apple through Metal, and Vulkan) but names no card to buy. So the useful question is how much memory the model needs, and which memory it lands in: the graphics card's VRAM, plain system RAM, or a Mac's unified memory.

That's the whole spell. Find the model's memory figure, check it against your hardware, then leave room for the conversation itself.

Quantization in one paragraph

Model files are big because every weight is stored as a number with a lot of precision. The llama.cpp quantize docs put it plainly: "Quantization reduces the precision of model weights." That shrinks the file, and it "may introduce some accuracy loss", which the project measures with perplexity and KL divergence. The same page says a quantized model needs about as much memory as its file takes on disk, so a smaller file means a smaller memory bill. Its example: Llama 3.1 8B is 14.96 GiB at F16 and 4.58 GiB at Q4_K_M (4.89 bits per weight).

On download pages, BF16 and F16 mean full precision, 8-bit or FP8 means less, and 4-bit formats like Q4_0 or Q4_K_M less again. No official page gives a rule of thumb that turns parameter count into gigabytes, so use the published tables.

The Gemma 4 memory table, weights only

Google publishes the clearest table of the lot on the Gemma 4 page. It's labelled "Approximate GPU or TPU memory required to load Gemma 4 models" and includes 20% overhead. The catch: it covers the weights only. The context window and KV cache aren't included, so your real use runs higher.

Gemma 4 model BF16 8-bit Q4_0
E2B 11.4 GB 5.7 GB 2.9 GB
E4B 17.9 GB 8.9 GB 4.5 GB
12B 26.7 GB 13.4 GB 6.7 GB
26B A4B 57.7 GB 28.8 GB 14.4 GB
31B 69.9 GB 34.9 GB 17.5 GB

For a second reference, Ollama's gemma4 library page lists download sizes: e2b 4.6-7.5GB, e4b 6.6-9.5GB, 12b 7.7-8.0GB, 26b 16-19GB and 31b 19-20GB. That page shows no quantization labels and makes no RAM claim, and a download size isn't total memory use.

What 8, 12, 16 and 24 GB get you

These tiers come only from the official figures above. Treat them as the floor, since the Gemma numbers leave out the context cache.

Memory What the official figures say fits
8 GB Gemma 4 E2B at 8-bit (5.7 GB) or Q4_0 (2.9 GB); E4B at Q4_0 (4.5 GB). E4B at 8-bit (8.9 GB) doesn't clear 8 GB. Ollama recommends 8 GB for its gemma4:e2b example.
12 GB Gemma 4 12B at Q4_0 (6.7 GB) and E4B at 8-bit (8.9 GB). No official page names a 12 GB tier.
16 GB Gemma 4 12B at 8-bit (13.4 GB). gpt-oss-20b can "run within 16GB of memory".
24 GB Gemma 4 26B A4B at Q4_0 (14.4 GB) and 31B at Q4_0 (17.5 GB). Ministral 3 14B is "capable of fitting in 24GB of VRAM in FP8". Gemma 4 31B at 8-bit (34.9 GB) doesn't fit.

The gpt-oss figure is from OpenAI's gpt-oss-20b card, which says the model was post-trained with MXFP4 quantization of its MoE weights. The Mistral one is from the Ministral 3 14B card. Both models are Apache 2.0.

The models that need a datacenter, not a desk

Some open-weight models are a different boss fight entirely. OpenAI's model card says gpt-oss-120b runs on "a single 80GB GPU", and its cookbook guides say 60 GB or more. Meta's Llama 4 Scout card says the 109B-parameter model "can fit within a single H100 GPU with on-the-fly int4 quantization", with no GB figure, and Ollama's llama4 downloads are 67 GB and 245 GB. Gemma 4 31B at full BF16 needs 69.9 GB by Google's table.

Qwen is the odd one out. The Qwen3.8-27B card lists about 28B parameters in BF16, a 262,144-token native context and an FP8 checkpoint, plus links to quantized builds for llama.cpp, Ollama and LM Studio. The card gives no VRAM figure.

Context, the hidden memory tax

The model file is only part of the bill. The Ollama context length page says "Setting a larger context length will increase the amount of memory required to run a model." Ollama's docs don't agree on a single default context size, so check what your setup uses before you trust a fit.

There's one official way to trim the tax. The Ollama FAQ says the K/V context cache "can be quantized to significantly reduce memory usage when Flash Attention is enabled". The setting is OLLAMA_KV_CACHE_TYPE, and its default is f16.

When a model doesn't fit, it spills rather than failing outright. Ollama loads a model on a single GPU if it fits, and spreads it across available GPUs if not. With less VRAM it can use system RAM, "but responses may be slower". llama.cpp has a -ngl setting for the maximum number of layers to keep in VRAM ("auto" by default), and it runs across GPU and CPU.

Macs and unified memory

On a Mac, unified memory does the job VRAM does on a PC. Ollama's 8 GB advice reads "8 GB of available VRAM, or unified memory on a Mac" in its quickstart. Ollama supports Apple GPU acceleration through the Metal API. It needs macOS 14 or later, and Intel Macs run it on the CPU only.

LM Studio's system requirements recommend 16GB+ RAM on a Mac and say 8GB Macs may work with smaller models and modest context. On Windows it recommends at least 16GB of RAM and at least 4GB of dedicated VRAM. Ollama also lists MLX tags for Gemma 4, such as 31b-mlx at 19GB.

What to do next

  • Laptop with 8 GB: start with Gemma 4 E2B or E4B at 4-bit. Ollama's own starter recommendation sits right at this line.
  • 16 GB card or Mac: gpt-oss-20b is the model whose maker names 16GB outright. That's the tier we'd aim for if you're buying. Card and Mac prices are in our GPU for AI guide.
  • 24 GB: Gemma 4 31B and 26B A4B at Q4_0 fit on paper. The table skips the context cache, so the headroom is smaller than it looks.
  • Just curious: try a small model first, then read our local AI vs cloud AI breakdown before spending a cent. If you're picking an app, our Ollama vs LM Studio comparison covers the setup.

Receipts

Official pages behind this story, read Nov 29, 2026
  1. raw.githubusercontent.com
    What is quantization, at a high level?
  2. gemma.ai
    Gemma 4 memory table (reused, caveat re-checked) · What does 8 GB get you per official figures?
  3. huggingface.co
    Gemma 4 31B model card facts
  4. ollama.com
    Gemma 4 download sizes in Ollama
  5. huggingface.co
    gpt-oss memory (reused, 20b re-checked) · What needs far more than consumer cards?
  6. huggingface.co
    Qwen memory figures
5 more receipts
  1. huggingface.co
    Llama memory figures
  2. huggingface.co
    Mistral memory figure
  3. docs.ollama.com
    Ollama recommended memory · Apple unified memory
  4. docs.ollama.com
    KV cache quantization · What happens when a model does not fit in VRAM?
  5. lmstudio.ai
    LM Studio memory recommendation

Only pages the company publishes itself are listed. How we check: our method. Spotted a wrong number? Corrections.

Filed under

Local AI: The Hearth“best gpu for local llm”

Front page