Hardware · CPU-only inference

Updated October 2026

Running Local LLMs Without a GPU: CPU-Only Local AI

You do not need a GPU to run a local LLM. Tools like Ollama and llama.cpp automatically use CPU inference if no compatible GPU is found. What you give up is speed: CPU inference is typically 5–20x slower than an equivalent discrete GPU for the same model. Small models (1B–3B at Q4) can be genuinely interactive on a modern CPU. Larger models (7B+) become slow for chat but remain usable for batch tasks where generation speed is secondary.

Editorial details

EditorCJ ZwartLast updatedOctober 2026Sourcesllama.cpp CPU inference documentation, Ollama runtime specifications, x86 SIMD instruction set references (AVX2/AVX-512), Apple Silicon memory bandwidth benchmarks, and bench runs on our own desktop CPU with the GPU hidden (linked under Measured on this CPU).

CPU inference speed varies significantly by processor model, memory bandwidth, and RAM channel configuration. Figures on this page are approximate ranges for modern x86 CPUs with AVX2 support. Apple Silicon (M-series) runs significantly faster than x86 at equivalent model sizes due to unified memory bandwidth. See the Apple Silicon guide for that architecture.

Quick verdict

You do not need a GPU to start: small models are genuinely interactive on a modern CPU, and larger ones stay usable for batch work. What you give up is speed: typically 5–20x slower than a discrete GPU.

  • 1B–3BQ4 at 5–20 t/s (estimate): practical, interactive chat
  • 7BQ4 at 2–8 t/s (estimate): slow but usable; needs 16 GB+ RAM
  • 13B–14B1–4 t/s (estimate): frustrating for chat, tolerable for batch
  • MeasuredQwen3 8B at Q4: 11.43 t/s on our Intel Core i7-14700K, 74.50 t/s on the same desktop's GPU
  • BottleneckRAM bandwidth (~50–100 GB/s DDR5) vs 360+ GB/s on GPUs

Good fit for

  • Trying local AI on the machine you already own, before buying anything
  • Interactive chat with 1B–3B models; batch tasks at 7B

Wrong fit for

  • 7B+ interactive chat as a daily driver: a used RTX 3060 12GB is the lowest-cost meaningful upgrade
  • 30B+ models at any usable speed

On CPU, system RAM replaces VRAM as the memory ceiling. The same model size formulas apply. The difference is that system RAM is slower to read than GPU VRAM, which is why tokens-per-second are so much lower.

Check what your machine can run →

Measured on this CPU

Every row below is one run of @opensourcesai/bench on this machine, read from the result file linked in the last column. Nothing in the table is estimated.

  • CPU and RAM: Intel Core i7-14700K, 20 cores / 28 threads; 32 GB DDR5-6000 RAM (dual channel). The model runs here, entirely in system RAM.
  • GPU: NVIDIA GeForce RTX 4070 Ti with 12,878,610,432 bytes (12.88 GB) of VRAM as reported by nvidia-smi; driver 617.42. The card is installed but hidden from Ollama for these runs, so nothing is placed on it; every result file records 0 bytes in VRAM.
  • OS: Windows 11 (the result files report win32 10.0.26200).
  • Runtime and tool: Ollama 0.35.1; @opensourcesai/bench 0.12.0, protocol osai-bench/1.3, scoring osai-bench-derive/1.4.
  • Context: 4,096 tokens for every bench run.
ModelQuantGeneration (tok/s)Prompt processing (tok/s)RAM usedContextRun (UTC)Result file
qwen3:4b
qwen3 · 4.0B · Qwen3-4B-Thinking-2507 · run with the bench’s quality override (see Limits of this data)
Q4_K_M21.53
CV 2.10%
142.083.18 GB4,0962026-10-20 07:07 UTCJSON
llama3.1:8b
llama · 8.0B
Q4_K_M12.02
CV 6.44%
88.395.58 GB4,0962026-10-20 07:25 UTCJSON
qwen3:8b
qwen3 · 8.2B
Q4_K_M11.43
CV 7.79%
89.415.94 GB4,0962026-10-20 07:16 UTCJSON

What the runs show

Limits of this data

  • One CPU, one memory setup. An Intel Core i7-14700K with dual channel 32 GB DDR5-6000 is a fast desktop. These runs say nothing about other processors, laptops, DDR4 or single-channel memory.
  • The GPU was hidden, not absent. Ollama was started with the card hidden from it, so it ran every model on the CPU, but the card stayed installed and drove the display. The bench still saw it and computed a bandwidth ceiling from it, which does not apply here and is not shown.
  • Ollama's own thread count. Nothing set the number of threads; Ollama chose it. Tuning it can change the figures.
  • Quality override. One of the three runs went ahead with the bench's quality override, marked in the table, because the bench read the idle card as busy. The card was doing no model work in these runs; the override covers that one check and nothing else.
  • No 14B model. With the desktop's everyday apps open there was less free system RAM than a 14B model needs, so a run would have measured the page file rather than the CPU. It was not run.
  • Single runs. Each figure is the median of the measured passes inside one run, all at 4,096 tokens of context on Ollama 0.35.1.

How each figure is measured is on the methodology page. The raw files are published as they came off the machine; read the note on what they contain. They are licensed CC BY 4.0: reuse them with credit to CJ Zwart, OpenSourcesAI and a link to this page.

What CPU-only inference can run

Model sizeQuantizationRAM neededTypical speed (estimate)Verdict
1B–3BQ44–6 GB5–20 t/sPractical
7BQ4~4–5 GB2–8 t/sSlow but usable
13BQ4~7–8 GB1–4 t/sVery slow
14BQ4~8–9 GB1–3 t/sVery slow
30B–32BQ4~18–20 GB<1 t/sNot recommended for chat

The speeds in this table are estimates for a modern Intel or AMD desktop CPU with AVX2 support, not measurements. Our own desktop CPU, an Intel Core i7-14700K with 32 GB DDR5-6000 memory, ran faster than these ranges: Qwen3 8B at Q4 generated 11.43 tokens per second (see Measured on this CPU above). Actual performance varies widely by CPU model, RAM speed (DDR4 vs DDR5), and number of memory channels. Apple Silicon CPUs run significantly faster than x86 at equivalent model sizes. See the Apple Silicon guide.

Why CPU inference is slow

LLM token generation is memory-bandwidth-bound. At each step, the model weights are read from memory through the compute units. Memory bandwidth determines how fast this happens: more bandwidth means more tokens per second.

  • System RAM bandwidth (DDR5): approximately 50–100 GB/s
  • RTX 3060 12GB GDDR6: 360 GB/s, roughly 4–7x faster
  • RTX 4090 24GB GDDR6X: 1008 GB/s, roughly 10–20x faster

This is the fundamental bottleneck. A 7B model at Q4 fits easily in 16 GB of system RAM, but reading those weights through 60 GB/s of DDR4 bandwidth generates an estimated 2–4 tokens per second, where a discrete GPU manages tens. Measured on our own desktop, with much faster DDR5, Qwen3 8B at Q4 generated 11.43 tokens per second on the CPU and 74.50 on the same machine's GPU.

RAM requirements for CPU inference

  • 16 GB system RAM: Minimum for 7B at Q4 (~4–5 GB model). Leaves ~10 GB for OS and other applications.
  • 32 GB system RAM: Comfortable for 7B and 13B at Q4. Better multitasking while a model is loaded.
  • 64 GB system RAM: Can load 30B at Q4 (~18–20 GB), though generation will be very slow (<1 t/s).

RAM speed matters on CPU inference. DDR5 and dual-channel memory configurations produce higher effective bandwidth than DDR4 single-channel setups. If you are buying RAM specifically for local AI use, dual-channel DDR5 is the better choice.

CPU requirements

  • AVX2 support (required): llama.cpp and Ollama use AVX2 SIMD instructions for quantized inference. Almost all CPUs made since 2015 support AVX2. Check with grep avx2 /proc/cpuinfo on Linux or CPU-Z on Windows.
  • AVX-512 (optional speedup): Some Intel Xeon and consumer Intel processors (11th gen Rocket Lake and later) support AVX-512, which gives a meaningful speed increase. AMD Zen 4 (Ryzen 7000+) also supports AVX-512.
  • Core count: llama.cpp can parallelize across CPU cores. More cores help with prefill (processing the input prompt) but the memory bandwidth bottleneck dominates token generation speed regardless of core count.

Best models for CPU inference

  • Qwen 3 1.7B Q4: ollama pull qwen3:1.7b. Fast enough for interactive chat on any modern CPU. The recommended starting point.
  • Phi-4 Mini Q4 (3.8B): ollama pull phi4-mini. Strong reasoning in a small package. Good for coding assistance at CPU-feasible speeds.
  • Qwen 3 4B Q4: ollama pull qwen3:4b. Higher quality than 1.7B and quick enough to generate on CPUs with 16 GB+ RAM, but this tag installs Qwen3-4B-Thinking-2507, which writes out its reasoning before every answer and cannot skip it. On a CPU that takes a while, so each answer starts later than the token speed suggests. For quick back-and-forth chat, Phi-4 Mini above answers directly.
  • Qwen 2.5 7B Q4 (batch only): ollama pull qwen2.5:7b. For non-interactive use: document summarisation, structured extraction, occasional queries. 2–4 t/s is tolerable if you are not waiting for a live response.

Runtimes for CPU inference

  • Ollama: Automatically detects whether a GPU is available and falls back to CPU inference. No configuration needed. The easiest path for CPU-only machines.
  • LM Studio: Desktop GUI with explicit CPU inference mode. Good for browsing models and comparing quality without a terminal.
  • llama.cpp (CPU-native build): Compile without GPU backends for the most efficient CPU inference. Exposes -t (threads) and --n-gpu-layers 0 flags for explicit CPU-only mode.

Getting started on CPU

# Install Ollama (auto-detects CPU-only if no GPU is found)
curl -fsSL https://ollama.ai/install.sh | sh

# Start with a small model that runs at interactive speed on CPU
ollama pull qwen3:1.7b
ollama run qwen3:1.7b

# For batch tasks (not interactive), try 7B
ollama pull qwen2.5:7b
ollama run qwen2.5:7b

When to consider a GPU

CPU inference is a valid entry point and permanent solution for small models. Consider a discrete GPU when:

  • 7B models feel too slow for interactive use: on a CPU with DDR4 memory an estimated 2–4 t/s means waiting several seconds for each sentence. On our desktop, Qwen3 8B at Q4 generated 11.43 t/s on the CPU and 74.50 t/s on its 12GB GPU.
  • You need 13B or larger models at interactive quality: 13B at Q4 on CPU is an estimated <3 t/s (we have not measured a 14B on a CPU). On our 12GB RTX 4070 Ti, 14B-class models at Q4 generated 43.30 to 44.61 t/s.
  • You run models frequently throughout the day: the accumulated time savings from a GPU are significant for daily use.

If budget is the primary constraint, a used RTX 3060 12GB is the lowest-cost entry into GPU-accelerated local AI at meaningful speed improvements over CPU.

FAQ

Can you run a local LLM without a GPU?

Yes. Tools like Ollama and llama.cpp will automatically fall back to CPU inference if no compatible GPU is detected. You can run any GGUF-format model on a CPU. The tradeoff is speed: CPU inference is typically 5–20x slower than GPU inference for the same model and quantization level. Small models (1B–3B at Q4) can be interactive on a modern CPU. Larger models (7B+) become slow for chat but are usable for batch tasks.

How much RAM do I need to run a local LLM without a GPU?

16 GB of system RAM is the practical minimum for a 7B model at Q4 (which uses ~4–5 GB). The rule is: model size in bytes = (parameters × bits per weight / 8) + ~1.5 GB overhead. A 7B model at Q4 uses approximately 4 GB. A 13B at Q4 uses approximately 8 GB. Add your OS overhead (~2–4 GB) to determine whether your RAM budget is sufficient.

Which CPU is best for running local LLMs?

For x86 CPUs (Intel/AMD), look for AVX2 support at minimum. It is present in almost all CPUs made since 2015. AVX-512 support gives a meaningful speed boost on compatible Intel Xeon and some consumer Intel 11th gen+ chips. For the fastest CPU-only inference, Apple Silicon (M1, M2, M3, M4 series) is significantly faster than any x86 CPU due to its high memory bandwidth and unified memory architecture. See the Apple Silicon guide for details.

What is the best model for CPU-only inference?

For interactive chat on a CPU, 1B–3B models at Q4 offer the best balance of quality and speed. Phi-4 Mini (3.8B) and Qwen 3 1.7B are strong options. For batch tasks where generation speed is less critical, 7B at Q4 provides substantially better output quality while remaining feasible on 16 GB+ RAM.

When cloud GPU makes more sense than CPU inference

CPU inference is a valid permanent solution for 1B–3B models. When the workload demands faster generation on 7B+ models, without the cost or complexity of buying a discrete GPU, cloud GPU instances let you run larger models at interactive speed on demand, paying only for what you use.

This is particularly relevant for occasional high-quality inference jobs, batch document processing, or testing whether a faster 7B or 14B model would improve your workflow before committing to hardware.

On-demand GPU access when CPU speed is the blocker

RunPod

RunPod offers on-demand and spot GPU rentals, RTX 4090 (24 GB) and A100 (80 GB), for running 7B, 13B, and larger models at GPU-accelerated speeds. A cost-effective path to test larger models before committing to GPU hardware.

Partner link: OpenSourcesAI may earn a commission if you sign up.

Visit RunPod

ML-focused GPU cloud for serious inference jobs

Lambda

Lambda Labs provides A100 and H100 GPU instances built for ML workloads. A strong option when you need 7B or 14B models at fast inference speeds for batch tasks, without the upfront cost of a discrete GPU.

Visit Lambda

Disclosure

OpenSourcesAI may earn a commission or referral fee from links to cloud GPU providers or partner tools on this page. Editorial assessments are produced independently. CPU inference speed figures are approximate and vary by processor model, memory configuration, and workload. Verify before relying on this data for hardware purchasing decisions.

See how your CPU compares to a GPU for local AI