You look at a graphics card box that says 16 GB, pull a 14 GB model in Ollama, and wonder why generation crawls at CPU speeds or fails with error 500.
Your model never gets the number printed on the box. Before Ollama loads a single weight on Windows 11, the desktop, browser tabs and editor already hold 1.5 to 3.3 GB of dedicated VRAM. Whatever is left has to fit three things at once: model weights, the KV cache for your context window, and a compute buffer.
We measured what actually fits and how fast it runs on a Windows 11 PC with a 16 GB NVIDIA RTX 5060 Ti (Ollama 0.40.14).
Trap 1: Windows tools lie about your VRAM in two opposite ways
If you check Task Manager (Ctrl + Shift + Esc -> Performance -> GPU), you see two memory numbers: Dedicated GPU memory and Shared GPU memory. Shared GPU memory is ordinary system RAM accessed over PCIe. For local LLMs, spilling into shared memory collapses generation toward CPU speeds. Only Dedicated GPU memory counts.
If you query WMI from PowerShell instead, you hit the opposite trap:
Get-CimInstance Win32_VideoController | Select-Object Name, AdapterRAM On our 16 GB card, AdapterRAM returned 4293918720 (4 GB). Microsoft defines that field as an unsigned 32-bit integer (uint32), so no GPU above 4 GB can report its real size there.
To get your real total and free VRAM on Windows:
# NVIDIA cards (exact MiB total, used and free): nvidia-smi --query-gpu=name,memory.total,memory.used,memory.free --format=csv # Any GPU via the 64-bit registry counter: Get-ItemProperty "HKLM:\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0*" -Name "HardwareInformation.qwMemorySize" -ErrorAction SilentlyContinue On our test machine with normal apps open, nvidia-smi showed 15.9 GB total and 3.3 GB already in use, leaving 12.6 GB for models.
Measured GPU footprint and speed (4k vs 32k context)
Here is what Ollama's load log reserved on the GPU (weights + context + compute buffer) and how fast each model generated on a 524-token prompt, comparing 100% GPU against CPU-only on the same PC:
| Model (Q4_K_M) | GPU memory at 4,096 ctx | GPU memory at 32,768 ctx | GPU speed | CPU-only speed |
|---|---|---|---|---|
qwen3.5:4b | 2.7 GiB | 3.7 GiB | 92-95 t/s | 11.9 t/s |
qwen3.5:9b | 5.0 GiB | 6.0 GiB | 56-58 t/s | 5.7 t/s |
gemma4:12b | 7.9 GiB | 8.7 GiB | ~80 t/s | - |
qwen3.6:35b | Did not fit in 16 GB | - | - | - |
Look at the context jump from 4,096 to 32,768 tokens: for qwen3.5:9b and gemma4:12b, multiplying context by 8x added under 1 GiB of VRAM.
Why? Because qwen3.5:9b keeps a full KV cache in only 8 of its 32 layers (32 KiB per token, or 1,074 MiB at 32k including fixed state), and gemma4:12b uses sliding-window attention on 40 of its 48 layers.
By contrast, a classic dense architecture where all 32 layers keep a full cache (like Llama 3.1 8B: 32 layers, 8 KV heads, 128 head dim) costs 128 KiB per token: roughly 4 GiB just for the KV cache at 32,768 tokens. Add 4.6 GiB of weights and compute margin, and an "8B model" no longer fits on an 8 GB card once you raise the context for coding agents or RAG.
Practical starting points by GPU tier
Subtract 1.5 to 3 GB for Windows and open apps first, then match your card:
- 8 GB card (~5 to 6.5 GB free):
qwen3.5:4bfits comfortably up to 32,768 context.qwen3.5:9bfits at 4,096 to 8,192 only if the desktop uses very little VRAM. - 12 GB card (~9 to 10.5 GB free):
qwen3.5:9bup to 32,768 context, orgemma4:12bat 4,096 to 16,384 (at 32,768 it sits right on the edge). - 16 GB card (~12.5 to 14 GB free):
gemma4:12borqwen3.5:9bup to 32,768 context at 100% GPU. - 24 GB card (~20 to 22 GB free): same 9B-12B models with larger context, or mid-size MoE/27B-32B Q4 models at short context with other GPU apps closed.
How to verify your model actually stayed on the GPU
Never trust the fact that Ollama answered. Load the model at the exact context your app uses and run:
ollama ps Check two columns:
-
CONTEXTmatches what you intended (below 24 GiB VRAM, Ollama defaults to4096unless you setOLLAMA_CONTEXT_LENGTHornum_ctx). -
PROCESSORsays100% GPU. If it shows aCPU/GPUsplit, lower the context or step down one model size before blaming the model's speed.
Full measurements and VRAM scripts: https://beautythings.net/en/guides/which-local-llm-fits-8gb-12gb-16gb-vram/?s=devto
I put the full hardware tables, Q4 vs Q8 benchmarks and PowerShell inventory scripts into a short book: https://beautythings.net/go/gpu-en?s=devto
