New Tool Radar

Local AI

How to Check NVIDIA GPU Memory Before Running a Local Model

Run nvidia-smi to see total, used and free VRAM, then compare the free memory with the size of the model you want to run.

Schematic diagram with three steps: run nvidia-smi to see GPU memory, note the free VRAM, and pick a model that fits in it.

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

Checked 2026-11-28.

See all