It's based on the official documentation for NVIDIA's nvidia-smi, AMD SMI, the Linux kernel's amdgpu driver, nvtop and Ollama, all read on 26 November 2026. Command options change between versions, so check --help on your own system.
If you run AI models at home, the amount of video memory (VRAM) in use matters more than almost any other number. When a model and its context fit entirely in VRAM, the graphics card does all the work. When they don't, part of the model spills into system RAM and is processed by the CPU, which is much slower. Our guide to how context length affects VRAM explains why a model that loads fine can still run out of room as a conversation grows.
On Windows, Task Manager shows this at a glance, as covered in how to check VRAM usage on Windows. Linux has no single built-in equivalent, but each GPU maker provides a command-line tool, and there's an excellent cross-vendor monitor too. Here's how to use them.
Quick answer
Graphics card | Quickest command | What it shows |
|---|
NVIDIA (proprietary driver) | nvidia-smi
| Total and used memory per GPU, plus processes |
AMD Radeon (amdgpu driver) | amd-smi monitor -v
| Memory use in MB per GPU |
Any of the above, plus Intel | nvtop
| Live graphs of memory and utilisation per GPU and process |
Ollama users | ollama ps
| Which models are loaded and how much is on the GPU |
NVIDIA: nvidia-smi
nvidia-smi is installed with NVIDIA's Linux driver, so if your card works you almost certainly have it. Our guide to installing Ollama on Linux uses it to check the driver is working.
Run it with no options:
nvidia-smi
The summary table shows each GPU with its memory use as used and total MiB, plus a list of processes using the card at the bottom. That process list is useful when something you've forgotten about, such as a background Python script or a second model server, is holding on to memory.
For the full picture, run:
nvidia-smi -q -d MEMORY
NVIDIA's documentation describes the "FB Memory Usage" section as on-board frame buffer memory information, and notes that the reported total can be affected by ECC state on cards that support ECC.
Watching memory while a model runs
The most useful habit is to watch VRAM while you load a model and send it a long prompt. nvidia-smi has a loop option, -l (or --loop), which repeats the query at an interval in seconds; NVIDIA's documentation says it defaults to five seconds if you don't give a number. There's also -lms for millisecond intervals.
To get just the numbers you care about in a compact format, use the selective query options:
nvidia-smi --query-gpu=index,name,memory.used,memory.total --format=csv -l 2
And to see which processes are using memory:
nvidia-smi --query-compute-apps=pid,process_name,used_memory --format=csv
--query-compute-apps lists the currently active compute processes. Run nvidia-smi --help-query-compute-apps and nvidia-smi --help-query-gpu to see every field your driver supports.
AMD Radeon: amd-smi
For AMD graphics cards on Linux, AMD's current tool is AMD SMI, run as amd-smi. It's part of ROCm. The older rocm-smi still exists, but AMD's ROCm SMI documentation says it remains deprecated and new deployments should use AMD SMI, so that's what we'll use here.
Running amd-smi with no options prints a summary table. According to AMD's documentation, the second row for each GPU includes VRAM usage, and a process table lists running GPU processes with their VRAM memory, GTT memory and total memory use.
For a live view, use the monitor command with the VRAM option:
amd-smi monitor -v
AMD documents -v (--vram-usage) as "Monitor memory usage in MB". You can add other metrics, such as -p for power use and power cap, -t for temperature and -u for graphics utilisation and clock, and -q to add a process table underneath.
To see the card's memory details, such as type, size and bus width, use:
amd-smi static -v
And for per-process memory:
amd-smi process
AMD's example output shows each process with separate figures for VRAM, GTT (system memory mapped for the GPU) and total memory. AMD notes that the process name may need elevated permissions to display, so try sudo if names are missing.
Ryzen AI chips and other APUs
If your AI PC uses an AMD processor with integrated graphics, such as a Ryzen AI Max mini PC, memory works differently. AMD's documentation explains that on APUs amd-smi reports the larger of the VRAM and GTT pools, so the memory column header changes from VRAM_USAGE to GTT_USAGE. In other words, on these chips most of what a model uses may show up as GTT rather than dedicated VRAM. Our explainer on unified memory vs VRAM for local AI covers why that matters.
The Linux kernel's amdgpu driver also reports memory through sysfs, which is handy on a minimal server install. The kernel documentation says mem_info_vram_total returns the total VRAM on the device and mem_info_vram_used returns the amount currently used, both in bytes. They sit in the card's device folder, usually:
cat /sys/class/drm/card*/device/mem_info_vram_used
cat /sys/class/drm/card*/device/mem_info_vram_total
The card number can differ between systems, and a PC with integrated and discrete graphics will have more than one card folder, so check which is which.
Any GPU: nvtop
nvtop is an open-source, interactive monitor that works like the htop process viewer but for graphics cards. Its project page lists support for AMD GPUs through the amdgpu driver, Intel GPUs through the i915 and xe drivers, and NVIDIA GPUs on the proprietary driver, among others. It shows a graph per GPU plus a process list with each process's GPU memory use, which makes it the easiest way to watch a model load in real time.
The project README says that on Ubuntu 22.04, Debian 11 and newer it can be installed from the standard repositories:
sudo apt install nvtop
Then just run nvtop. The project's README lists packages for other distributions and a Snap.
There are a couple of limits worth knowing from the project's documentation. Intel integrated graphics and NPUs don't have memory of their own, so memory figures for them are shown relative to shared system memory. And for AMD cards, ROCm and HIP work goes through the kernel's KFD interface rather than the normal graphics path, and nvtop needs kernel support for KFD to show those compute processes.
Ollama: ollama ps
If you use Ollama, the simplest check is built in. Ollama's FAQ says to use ollama ps to see which models are currently loaded into memory:
ollama ps
The PROCESSOR column tells you where the model was loaded. Ollama's documentation shows 100% GPU when the model is entirely in GPU memory, 100% CPU when it's entirely in system RAM, and a split such as 48%/52% CPU/GPU when it's divided between the two. If you see a split, the model doesn't fit in VRAM and will run noticeably slower.
What to do if you're out of VRAM
Once you can see the numbers, the fixes are familiar:
If heat or power is the issue rather than memory, NVIDIA users can cap board power, as explained in how to set a GPU power limit with nvidia-smi.
Our verdict
On Linux, nvidia-smi for NVIDIA cards and amd-smi monitor -v for AMD Radeon cards are the quickest, most reliable ways to check VRAM use, and both can loop so you can watch memory while a model loads. Install nvtop if you want a live, cross-vendor view with per-process memory, and Ollama users should keep ollama ps handy: anything other than 100% GPU means the model doesn't fit and will run slower.