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
| Model | Reported 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 tag | Download size |
|---|---|
| qwen3:0.6b to qwen3:4b | 523 MB to 2.5 GB |
| qwen3:8b | 5.2 GB |
| qwen3:14b | 9.3 GB |
| qwen3:32b | 20 GB |
- Context length. A larger context requires more memory. Set the server’s context length with
OLLAMA_CONTEXT_LENGTHor the per-request context withoptions.num_ctx. Ollama Context Length, Ollama Local FAQ - Parallel requests. On most platforms,
OLLAMA_NUM_PARALLELlimits 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_MODELSdefaults 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 backend | Environment variable | Value |
|---|---|---|
| NVIDIA CUDA | CUDA_VISIBLE_DEVICES | -1 |
| AMD ROCm | ROCR_VISIBLE_DEVICES | -1 |
| Vulkan | OLLAMA_VULKAN or GGML_VK_VISIBLE_DEVICES | 0 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
- Run
systemctl edit ollama.service. - Add one
Environmentline per setting under[Service]. The example disables CUDA and Vulkan. Use the table above to select the settings for your machine. - Save and exit. Run
systemctl daemon-reload, thensystemctl restart ollama.
[Service]
Environment="CUDA_VISIBLE_DEVICES=-1"
Environment="OLLAMA_VULKAN=0"
Windows
Set the variables in your Windows user account. Ollama Local FAQ
- Quit Ollama from the taskbar.
- Open Settings on Windows 11 or Control Panel on Windows 10, then search for environment variables.
- Select Edit environment variables for your account.
- Add the names and values for your hardware from the table. For an NVIDIA system with Vulkan, set
CUDA_VISIBLE_DEVICESto-1andOLLAMA_VULKANto0. - 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.