# Why is it slow?

> Usually the model is not fully on the GPU, the context is huge, or a reasoning model is thinking. The tree below finds which in five questions.

Most slow setups have one of five causes, and you can tell them apart in about a minute. Answer the questions below in order and stop at the first one that matches.

## The decision tree

1. GPU used?
2. All in VRAM?
3. First token or every token?
4. Huge context?
5. Reasoning model?

Before you start, get a number. In Ollama, run the model with `--verbose` and it prints the speed after each answer. In LM Studio, the speed shows under each reply.

```bash
ollama run qwen3:8b --verbose
```

The `eval rate` line is your writing speed in tokens per second. The `prompt eval rate` line is how fast it read your prompt. Keep both numbers, you need them for question 3.

1. **Is the GPU being used at all?** Watch the GPU while the model answers.
   - No, it sits near idle and the CPU is busy. The runtime fell back to the CPU. Go to [Why is my GPU not being used?](https://localagi.co/gpu-not-used).
   - Yes, go to question 2.
2. **Is the model spilling out of VRAM?** Run `ollama ps` and read the `PROCESSOR` column, or check how many layers your runtime put on the GPU.
   - Yes, it shows a CPU and GPU split, or your Mac's memory pressure is yellow or red. Part of the model runs from slow system memory. Use a smaller quantization or a smaller context, see [Why won't it load?](https://localagi.co/out-of-memory) and [Which quantization should I download?](https://localagi.co/choosing-a-quantization).
   - No, it says 100% GPU. Go to question 3.
3. **Is the wait before the first token, or is every token slow?**
   - Only the first token is slow, then text streams quickly. That is prefill, reading the prompt. Go to question 4.
   - Every token is slow, even on a short prompt. Your hardware is at its limit for this model size. Read [What makes a model fast?](https://localagi.co/what-makes-it-fast), then pick a smaller model from [Which size of model do I need?](https://localagi.co/model-classes) or a mixture of experts model from [What is a mixture of experts model?](https://localagi.co/dense-vs-moe).
4. **Is the context huge?** Think pasted documents, a long chat, or a coding agent that sends your whole repository.
   - Yes. Long prompts take long to read, and a big KV cache slows every token after it. Trim the prompt or start a new chat. Settings that help are in [How do I make it faster?](https://localagi.co/tuning-for-speed), and the trade is in [How much can the model keep in mind?](https://localagi.co/context-window).
   - No, go to question 5.
5. **Is it a reasoning model thinking?** Look for a "thinking" block, or a long pause before a short answer.
   - Yes. The model writes hundreds or thousands of hidden tokens first. Turn thinking off or down for simple tasks, see [What are reasoning models, and why are they slow?](https://localagi.co/reasoning-models).
   - No. Measure properly with [How do I benchmark my own setup?](https://localagi.co/benchmarking) and compare against [How fast is fast?](https://localagi.co/how-fast-is-fast). If you are below the numbers for your hardware, start again at question 1 with a smaller model to rule out memory.

**Rule of thumb.** 
If any part of the model sits in system memory on a PC with a separate GPU, expect it to be several times slower. Fit it fully in VRAM first, then tune.

## What counts as slow

Slow depends on the job. Chat feels fine at reading speed, which is about 7 to 15 tok/s. Coding tools and agents need much more.

| Use case | Speed | Why |
| --- | --- | --- |
| Batch or overnight | under 10 tok/s is fine | Throughput per dollar matters more than latency. |
| Reading-speed chat | 10 to 30 tok/s | Human reading is about 7 to 15 tok/s. 15 and up feels comfortable. |
| Coding assistant | 30+ tok/s | Plus fast prefill. Large prompts need a quick time to first token. |
| Agent loops | 50+ tok/s | Multi-step tool calls multiply token counts. Reasoning models emit thousands of thinking tokens. |

If your speed already clears the bar for your use, the problem is probably the first-token wait, not the writing speed. That is question 3 and 4.

**The catch.** 
A smaller model is the most reliable fix, and it is also a different model. It knows less and makes more mistakes. Try a smaller quantization of the same model first, and drop a class only if that is not enough.

## Quick fixes that usually work

These are the changes that fix most cases, roughly in order of how often they help.

- Close other apps that use the GPU or lots of memory, such as browsers, games and video editors.
- Plug the laptop in. Many laptops cut GPU power on battery.
- Drop from Q8 to Q4. The file roughly halves and the speed nearly doubles, see [What is quantization?](https://localagi.co/quantization).
- Lower the context length setting to what you actually use. A 128K setting reserves memory even when the chat is short.
- Update the runtime. Speed improvements for new models often land weeks after the model.

**Try it.** 

```bash
ollama ps
```

Run this while a model is loaded. If the `PROCESSOR` column says anything other than 100% GPU, you have found your answer.

## Go deeper

### Why spilling hurts so much

Writing each token means reading every active weight once. A GPU reads its own VRAM many times faster than it can pull data from system memory over PCIe. If a third of the model sits in system memory, that third sets the pace for every token. [Will the model fit in my memory?](https://localagi.co/memory) explains the split.

On a Mac, the GPU uses the same memory as everything else, so there is no spill as such. The equivalent is swapping to disk, which shows as red memory pressure in Activity Monitor and is even slower.

### Why prefill and decode differ

Prefill reads the whole prompt in parallel, so it is limited by compute. Decode writes one token at a time, so it is limited by memory bandwidth. A machine can be fast at one and slow at the other.

Macs, for example, decode well for their price but read long prompts more slowly than a desktop GPU. [What happens when I press enter?](https://localagi.co/life-of-a-prompt) walks through both phases.

### Thermal throttling

Thin laptops slow down after a few minutes of full load as the chip heats up. If the first answer is fast and later ones get slower with the same prompt, heat is the likely cause. A desk fan or a cooling stand helps more than any setting. [Which laptop is good for local AI?](https://localagi.co/laptops) covers which machines hold their speed.
