1. Home
  2. AI PC & Hardware
  3. Run an LLM Locally Without a GPU: CPU and RAM Guide
AI PC & Hardware

Run an LLM Locally Without a GPU: CPU and RAM Guide

Published on November 9, 2026 · by Qubira 7 min read
Run an LLM Locally Without a GPU: CPU and RAM Guide

The advice you read everywhere is “get a GPU with lots of VRAM”. It is good advice if you are shopping. It is useless if you already own a perfectly decent laptop with no graphics card worth mentioning and you just want to find out whether local AI is for you. So here is the good news: you can run a large language model on the CPU and ordinary RAM, today, for free, and for plenty of tasks it is genuinely usable.

We haven’t benchmarked a pile of chips for this piece, and we won’t invent numbers to look rigorous. What follows is how CPU inference works, what the maths says about speed, and what users of these tools consistently report. If you want the bigger picture first, start with our guide to running AI locally on your PC.

✓
Our short answerYes, CPU-only works. Pick a 3-8B model at 4-bit, have 16 GB of RAM in dual-channel, and expect a pace closer to a slow typist than an instant reply. For a first taste of local AI it is plenty.

Why the CPU can do this at all

A language model is a huge pile of numbers, and generating text means multiplying through those numbers over and over. GPUs are brilliant at that because they do thousands of multiplications at once. CPUs do fewer at a time, but modern ones are not slouches, and inference engines such as llama.cpp are heavily optimized for them, using vector instructions that most processors from the last several years support.

The part that surprises people is that, for chatting, raw calculation is not the main bottleneck. To produce each new token (a word or a piece of one) the program has to read essentially the entire model out of memory. So the speed limit is how fast your RAM can feed the processor. That is why a GPU with fast video memory wins so easily, and why your RAM setup matters more than whether your CPU has 8 or 12 cores.

A back-of-the-envelope speed estimate

Here is the useful mental model. Take the size of the model file in gigabytes and the bandwidth of your memory in gigabytes per second; the ratio is a rough ceiling on tokens per second. A 4-bit 8B model is around 5 GB. Ordinary dual-channel DDR5 has a theoretical bandwidth of somewhere around 70-90 GB/s depending on the kit, which would put the ceiling at a dozen-plus tokens per second. Real life lands below that, and a laptop with slower or single-channel memory lands well below.

Treat that as arithmetic on paper, not a measurement from us. But it explains the pattern people report: small models feel fine, mid-sized ones feel slow, and big ones feel like waiting for a fax. It also explains why a single stick of RAM, which runs single-channel, can roughly halve your speed compared with two matching sticks.

How much RAM you actually need

Memory is the first gate, because if the model does not fit in RAM it spills onto the disk and everything crawls. Quantization, which stores each number in fewer bits, is what makes this manageable. At 4 bits, budget roughly 0.6 GB per billion parameters, then add a few gigabytes for the context window and for Windows or macOS itself.

Model size (4-bit)Approx. file sizeComfortable RAMWhat to expect on CPU
1-3B1-2 GB8 GBFast, but simple answers
7-8B4-5 GB16 GBReadable pace, the sweet spot
13-14B8-9 GB24-32 GBNoticeably slower, better quality
30B+18 GB and up32-64 GBPatience required

If you are stuck with 8 GB, you can still play with the smallest models, but it is tight once the browser is open. Our guide on how much VRAM local models need covers the same sizing logic for graphics cards, and the numbers translate directly to RAM.

Choosing a model that fits your machine

We would start with an 8B-class instruction model at 4-bit and only move in either direction if it disappoints you. If it feels sluggish, step down to a 3-4B model; the quality drop is real but modern small models are surprisingly capable at summarizing, rewriting and answering everyday questions. If it feels fine and you have 32 GB to spare, try a 14B model for a visible jump in quality.

One more option deserves a mention: mixture-of-experts models. They have a large total size but only activate a fraction of their parameters per token, so they can run faster on CPU than their file size suggests, as long as you have the RAM to hold them. They are a good fit for a desktop with 32 GB or more. Check the current releases rather than trusting our snapshot, because this space changes every few weeks.

Setting it up in ten minutes

You don’t need anything exotic. Download either Ollama or LM Studio, pick one small model from the built-in list, and start chatting. LM Studio will tell you whether a model should fit in your memory before you download it, which saves a lot of frustration. In both tools you can lower the context length to save RAM and raise the number of CPU threads to match your physical cores; leaving a core or two free keeps the rest of the computer responsive.

A few habits help. Close memory-hungry apps first, because a browser with forty tabs competes for the very RAM the model needs. Keep the laptop plugged in, since power-saving modes throttle the processor hard. And keep the context short at the beginning: a long pasted document slows both the first response and every one after it.

Privacy (nothing leaves your PC)
Excellent
Cost to start
Free
Speed on small models
Good
Speed on large models
Poor

These bars are our editorial judgment from how the technology works, not lab results.

Where CPU-only falls short

Be honest with yourself about the limits. Long documents are slow, because the model has to process all that text before it answers, and that processing is the part where GPUs shine most. Image generation on a CPU is painful enough that we wouldn’t recommend it. And if you want the model to power a coding assistant answering inside your editor in real time, the delay will probably annoy you.

The other limit is quality, not speed. Small models make mistakes the big cloud assistants don’t, so verify anything important. If you are weighing the two worlds, our comparison of ChatGPT, Claude and Gemini shows what the cloud side offers.

When it is worth spending money

The cheapest upgrade by far is RAM. Going from a single 8 GB stick to two 16 GB sticks changes both capacity and bandwidth, and it is usually the best money you can spend on this hobby. Check which memory type your laptop or motherboard takes before buying; search for a DDR5 32 GB kit on Amazon or a DDR4 equivalent and match your existing generation.

If you find yourself hooked and the waiting starts to bother you, the next step is a GPU. Our piece on buying a used GPU for local AI is the sensible place to look, and the AI PC hardware guide lays out the whole path from a spare laptop to a dedicated machine.

Our take

Don’t buy anything yet. Install a tool, download a small model, and spend a weekend with it on the computer you already own. If you end up using it daily, you will know exactly which upgrade solves your actual problem, whether that is more RAM or a graphics card. If you drift away after an hour, you saved yourself a few hundred dollars.

More in the AI PC & Hardware category. Some links in this article are affiliate links; see our disclosure.

Curious how much the processor itself matters here? We break down cores, threads and the thread setting in CPU for local AI: what actually matters.

FAQ

Can I really run an LLM without a graphics card?
Yes. Tools built on llama.cpp, including Ollama and LM Studio, run models on the CPU using ordinary system RAM. It works well for small and mid-sized models; it is simply slower than a GPU with enough VRAM.
How much RAM do I need to run a local LLM on CPU?
As a rule of thumb, a 4-bit quantized model needs roughly 0.6 GB of RAM per billion parameters, plus a couple of gigabytes for the context and the operating system. An 8B model is comfortable on 16 GB; a 14B model wants 24 to 32 GB; anything around 30B and above wants 32 GB or more.
Does RAM speed matter more than CPU speed?
For generating text, usually yes. Each new word requires reading the whole model from memory, so memory bandwidth is the main limit. Dual-channel RAM and faster kits help more than a few extra CPU cores.
What is the best model size for a laptop with no GPU?
Models of roughly 3 to 8 billion parameters, quantized to 4 bits, are the sweet spot. They fit in 16 GB of RAM and answer at a readable pace on a recent CPU.
Is it worth upgrading RAM for local AI?
If you are at 8 GB, yes: going to 16 or 32 GB is the single most useful upgrade. Make sure you fill both memory slots so the RAM runs in dual-channel mode.
Will a CPU-only setup replace ChatGPT?
Not for hard reasoning. It is good for private notes, summaries, drafting, simple coding help and experimenting offline, which is what most people actually want from it.
Do integrated graphics or an NPU help?
Support is patchy. Some software can use integrated GPUs or an NPU, but gains depend heavily on the app and the chip, so treat it as a bonus and check the current documentation before buying anything for it.