- Home
- AI PC & Hardware
- Run an LLM Locally Without a GPU: CPU and RAM Guide
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.
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 size | Comfortable RAM | What to expect on CPU |
|---|---|---|---|
| 1-3B | 1-2 GB | 8 GB | Fast, but simple answers |
| 7-8B | 4-5 GB | 16 GB | Readable pace, the sweet spot |
| 13-14B | 8-9 GB | 24-32 GB | Noticeably slower, better quality |
| 30B+ | 18 GB and up | 32-64 GB | Patience 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.
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.