OllamaLab
Flat isometric illustration of a glowing chip die inside a translucent cube, red-pink halo and circuit traces radiating out to lit nodes on dark blue
performance

Ollama Without a GPU: CPU-Only Speed and RAM

Run Ollama without a GPU. See reported CPU-only speeds and what affects RAM use, then learn how to force and verify CPU mode on Linux and Windows.

By OllamaLab Editorial · ·Updated · 4 min read

Yes, Ollama runs local models on a CPU without a GPU. Check that ollama ps shows 100% CPU in the PROCESSOR column. Ollama Local FAQ

Download Ollama for your operating system using the Ollama Quickstart. If you expected Ollama to use an installed GPU, see Ollama not using GPU. For CPU inference inside a container, see how to run Ollama in Docker.

What speed to expect

It’s FOSS measured these generation rates in CPU-only Ollama runs on an Intel i5 laptop with about 12 GB of RAM. It’s FOSS CPU-only benchmark, May 2026

ModelReported generation rate
Qwen 3 0.6B~34 to 36 tok/s
TinyLlama 1.1B~25 to 28 tok/s
Gemma 3 1B~18.6 tok/s
Gemma 4 E2B~9.9 tok/s
Granite 4 3B~8.5 to 9 tok/s
Phi 4 Mini 3.8B~6.90 tok/s
OpenHermes 7B~4.1 to 4.3 tok/s
Ministral 3 8B~3.16 tok/s

RAM sizing

The Ollama library lists these model download sizes. Qwen3 download sizes

Qwen3 tagDownload size
qwen3:0.6b to qwen3:4b523 MB to 2.5 GB
qwen3:8b5.2 GB
qwen3:14b9.3 GB
qwen3:32b20 GB
  • Context length. A larger context requires more memory. Set the server’s context length with OLLAMA_CONTEXT_LENGTH or the per-request context with options.num_ctx. Ollama Context Length, Ollama Local FAQ
  • Parallel requests. On most platforms, OLLAMA_NUM_PARALLEL limits simultaneous requests per model. Four parallel requests with a 2K context allocate an 8K context, increasing memory use. When the setting is unset or zero, MLX on Metal chooses a default based on available memory and the model’s cache requirements. With that same setting, other backends default to one request at a time. Ollama Local FAQ
  • Loaded models. On most platforms, OLLAMA_MAX_LOADED_MODELS defaults to three for CPU inference, subject to available RAM. Ollama Local FAQ

See how much VRAM you need to run local LLMs with Ollama.

Setting the thread count

For an installed llama3.2 model, put num_thread inside the options object. This example sets it to eight for a request to /api/generate. Ollama v0.40.16 API examples

curl http://localhost:11434/api/generate -d '{
  "model": "llama3.2",
  "prompt": "Why is the sky blue?",
  "options": {
    "num_thread": 8
  }
}'

Running CPU-only deliberately

On Linux and Windows, select settings for every GPU backend you want to disable. An invalid device ID such as -1 hides devices from CUDA or ROCm. Either Vulkan setting in the table disables Vulkan GPU use. Ollama Hardware Support

GPU backendEnvironment variableValue
NVIDIA CUDACUDA_VISIBLE_DEVICES-1
AMD ROCmROCR_VISIBLE_DEVICES-1
VulkanOLLAMA_VULKAN or GGML_VK_VISIBLE_DEVICES0 for OLLAMA_VULKAN or -1 for GGML_VK_VISIBLE_DEVICES

Linux terminal

If you start Ollama from a terminal, put the settings from the table before ollama serve on the same command line, in NAME=value form. Ollama Hardware Support, Ollama Local FAQ

Linux service

For a systemd installation, use the service environment. Ollama Local FAQ

  1. Run systemctl edit ollama.service.
  2. Add one Environment line per setting under [Service]. The example disables CUDA and Vulkan. Use the table above to select the settings for your machine.
  3. Save and exit. Run systemctl daemon-reload, then systemctl restart ollama.
[Service]
Environment="CUDA_VISIBLE_DEVICES=-1"
Environment="OLLAMA_VULKAN=0"

Windows

Set the variables in your Windows user account. Ollama Local FAQ

  1. Quit Ollama from the taskbar.
  2. Open Settings on Windows 11 or Control Panel on Windows 10, then search for environment variables.
  3. Select Edit environment variables for your account.
  4. Add the names and values for your hardware from the table. For an NVIDIA system with Vulkan, set CUDA_VISIBLE_DEVICES to -1 and OLLAMA_VULKAN to 0.
  5. Save with OK or Apply, then start Ollama from the Start menu.

macOS app

Ollama runs CPU-only on supported Intel Macs. On Apple silicon, Ollama supports GPU acceleration through Metal. Use the check below to see where your model is loaded. Ollama for macOS, Ollama Hardware Support

Confirm CPU mode

Run a small local model, such as the Qwen3 0.6B tag. Send a prompt, then run ollama ps. Qwen3 0.6B, Ollama Local FAQ

ollama run qwen3:0.6b
ollama ps

In the PROCESSOR column, 100% CPU means the model is loaded entirely in system memory. If the column shows a CPU/GPU split, some of the model is loaded on the GPU. Ollama Local FAQ

Where CPU-only makes sense

In the It’s FOSS benchmark, smaller models were better suited to interactive use. The slowest models in the benchmark were better suited to prompts you could send and return to later.

When to consider a GPU

Before deciding, check the generation rate on your own machine. Ollama tokens per second explains how to read it, and the VRAM calculator estimates the memory needed for a model and its context.

If the measured speed is too low for your workload, best Ollama models for 8GB VRAM covers what that tier holds, and best GPU for Ollama compares cards. For Macs, see Ollama on Apple Silicon.

Evidence note. Setup is based on Ollama’s platform docs and FAQ, and thread settings on the v0.40.16 API examples. No hands-on testing was performed for this guide.

Sources

  1. Ollama Hardware Support
  2. Ollama Local FAQ
  3. Ollama Quickstart
  4. Ollama Context Length
  5. Ollama API examples at v0.40.16
  6. Ollama for macOS
  7. Qwen3 on the Ollama library
  8. Qwen3 0.6B on the Ollama library
  9. It's FOSS: Testing local LLMs without a GPU

Related