New Tool Radar

Local AI

List Running Ollama Models and Unload One with ollama ps

See which models are loaded with ollama ps, read the processor and context columns, and unload one with ollama stop.

Schematic with three steps: List running models; Read the columns; Unload one model.

Ollama keeps a model in memory for about five minutes after its last use. ollama ps lists what is loaded right now, how much memory it uses, and whether it runs on GPU or CPU, and ollama stop unloads one on demand.

What you need

  • Ollama installed with at least one model already run
  • A terminal on the same machine
  • A model loaded, or one to run first

Step 1: List running models

Run ollama ps. The table shows NAME, SIZE, PROCESSOR, CONTEXT, and UNTIL. PROCESSOR reads 100% GPU when the model is fully on the GPU, a CPU/GPU split when it does not fit, and 100% CPU when no GPU is used.

Step 2: Read the columns

SIZE is the memory the model holds, CONTEXT is the context length allocated, and UNTIL is when the model unloads if idle. Compare SIZE with free VRAM or RAM to see whether a bigger model would fit.

Step 3: Unload one model

Run ollama stop llama3.2, replacing the name with the loaded model. Run ollama ps again and confirm the row is gone. Keeping a model loaded with keep_alive 0 in the API unloads it immediately instead.

Worked example: check and unload a 9B model

The table below is a synthetic example. The ollama ps row format and the 100% GPU reading come from a real install report; the model name is illustrative.

Column Example value Meaning
NAME qwen3.5:9b Loaded model
PROCESSOR 100% GPU Fully on the GPU
CONTEXT 4096 Tokens allocated

Expected result (UNTESTED). ollama ps lists the running model with its processor and context, and after ollama stop the row disappears. This check was not run live; the column meanings come from the cited guides.

Limits

  • ollama ps only shows models loaded in memory, not every downloaded model; use ollama ls for that.
  • Models unload automatically after about five minutes idle.
  • ollama stop needs the exact model name as shown in ollama ps.
  • A split CPU/GPU reading means the model did not fit fully in VRAM.

Sources

See all