Before you download a 20 GB model, you need two numbers: how much VRAM your GPU has, and how much of it is already in use. Guessing wastes a download and a failed load. The tool for the job ships with the NVIDIA driver: nvidia-smi.
Related guide: Can My Computer Run Ollama?
Read the memory numbers
nvidia-smi
nvidia-smi --query-gpu=name,memory.total,memory.used,memory.free --format=csv
The first command shows every GPU with memory used against total, utilisation, temperature and the processes using VRAM. The second gives just the numbers, one line per GPU. To watch memory while a model loads, refresh every second with nvidia-smi -l 1 and press Ctrl+C to stop. If the command is not found, the NVIDIA driver is not installed — install it before anything else, because no local-model tool can use the GPU without it.
Compare free VRAM with the model
Subtract what is already used from the total, and compare the free memory with the model’s size — ollama list shows the size of each downloaded model, and ollama ps shows each loaded model’s size and its GPU/CPU split. A model that is bigger than the free VRAM will load partly on the CPU (slow) or fail outright. Leave a margin: the context window and the KV cache take memory on top of the weights, so a model that exactly fits on paper will not fit in practice. If the model does not fit, pick a smaller quantization or a smaller model.
Expected result. We checked the Ollama FAQ for the ollama ps processor column and the linked VRAM guides for the nvidia-smi commands and the driver check. We did not run this software ourselves for this guide, so no output here is a recorded result; steps marked UNTESTED were checked against the sources below, not run.
Limits
nvidia-smi reports what the driver sees, not what a model will need: the context window, the KV cache and other processes all take memory on top of the weights. On a Mac there is no separate VRAM — Apple Silicon uses unified memory, so check the total in About This Mac instead. We did not run nvidia-smi on this machine.
Sources
- Ollama FAQ — ollama ps PROCESSOR column shows 100% GPU, 100% CPU, or a CPU/GPU split; GPU acceleration in Docker needs the nvidia-container-toolkit
- How to check VRAM — NVIDIA anywhere: nvidia-smi; live view nvidia-smi -l 1; just the numbers: nvidia-smi –query-gpu=name,memory.total,memory.used,memory.free –format=csv; ollama ps shows each loaded model’s size and GPU/CPU split
- How to check VRAM — nvidia-smi ships with the NVIDIA driver and reports memory for each GPU; nvidia-smi -q -d MEMORY breaks memory down; if the command is not found, the driver is probably missing
Checked 2026-11-28.
