Skip to main content
AI & Innovation

Run AI Locally: What Your Laptop Can Really Handle

Want to run AI locally? Learn the memory math that tells you which models fit your laptop, how to estimate speed before you download, and when local wins.

Nora Whitfield
November 29, 20268 min read
Run AI Locally: What Your Laptop Can Really Handle
Table of contents

You paste a client contract into a chatbot and pause. Where does that text go? Who keeps it? Then a friend mentions they run AI locally, on their own laptop, with nothing leaving the machine. It sounds ideal until you download a model, hit enter, and watch words crawl out one at a time while your fan screams.

Whether local AI feels useful or painful comes down to two numbers most guides skip: how much memory your machine has, and how fast that memory moves. Get those right and a mid-range laptop can run a capable assistant offline. Get them wrong and no app setting will save you.

This guide shows you how to size a model to your hardware, estimate its speed before you download it, and decide when local beats the cloud.

Why People Run AI Locally

The main reason is privacy you can verify. Ollama, one of the most popular free tools for local models, states in its documentation that when you run locally, it does not see your prompts or data. Your text never crosses the network.

There are other reasons too. A local model works on a plane or in a basement with no signal. It does not change behavior overnight because a company pushed an update. And it has no usage cap, which matters if you have ever hit a chatbot's message limit mid-task.

The trade is capability. The biggest cloud models run on racks of data center GPUs. Your laptop runs smaller open-weight models that are good at drafting, summarizing and coding help, and weaker at deep reasoning. If privacy is your main worry with cloud tools, our guide to keeping chats private when AI assistants read your screen covers the other side.

The Memory Math Behind Every Model

A large language model is mostly a giant list of numbers called weights or parameters. To run it, all of them must sit in memory. So the first question is simple: how many bytes does the model take?

Each parameter is stored at a chosen precision:

  • 16-bit uses 2 bytes per parameter. An 8 billion parameter model needs about 16 GB.
  • 8-bit uses 1 byte. The same model needs about 8 GB.
  • 4-bit uses half a byte. Now it needs about 4 GB.

Shrinking precision this way is called quantization, and nearly every model you download for a laptop is already quantized. Quality drops a little at 4-bit, usually less than people expect. The 8-bit case is where the popular rule of thumb comes from, which MIT Technology Review credited to developer Simon Willison: about 1 GB of memory per billion parameters.

Do not forget the context

The model also needs working memory for the conversation, called the context or KV cache. It grows with every word you feed in. Ollama's default context is 4,096 tokens, and its docs note you can quantize that cache too: 8-bit uses about half the memory of the default 16-bit, with little loss.

What Fits on Your Laptop

Real download sizes make this concrete. These come from Ollama's model library:

  • Gemma 4 E4B (Google): 6.6 to 9.5 GB depending on version. Comfortable on 16 GB.
  • Gemma 4 12B: about 8 GB. A good fit for 16 GB machines.
  • gpt-oss 20B (OpenAI): 14 GB. Ollama says it runs with as little as 16 GB of memory, which leaves little room for anything else.
  • Gemma 4 26B: 16 to 19 GB. Needs 24 GB or more.
  • gpt-oss 120B: 65 GB. Ollama says it fits on a single 80 GB GPU, which is workstation territory.

Worked example: a 16 GB laptop

Say your laptop has 16 GB of memory. Your operating system, a browser with a dozen tabs and a chat app might use about 6 GB between them. That leaves roughly 10 GB for AI.

  • Gemma 4 12B at 8 GB fits, with about 2 GB left for context.
  • gpt-oss 20B at 14 GB does not fit alongside your open apps. Close the browser and it may squeeze in, but the system will start swapping to disk and slow to a crawl.
  • A 4 GB model, such as an 8 billion parameter model at 4-bit, runs easily while you keep working.

MIT Technology Review's own test matched this pattern: a 16 GB laptop ran Alibaba's Qwen3 14B only when nearly every other app was closed, while Qwen3 8B ran comfortably.

How Fast Will It Run?

Here is the part most guides leave out. To produce each new word, a standard dense model reads every one of its weights from memory once. So your top speed is roughly memory bandwidth divided by model size.

Apple says its M5 chip has 153 GB per second of memory bandwidth, nearly 30% more than the M4. Run the numbers for an 8 GB model:

  • 153 divided by 8 is about 19 tokens per second as a ceiling. A token is roughly three quarters of a word.
  • Real speed lands below that ceiling because of overhead, but it tells you whether a model will feel usable before you spend time downloading it.
  • A 14 GB model on the same chip caps near 11 tokens per second, which reads slower than most people like.

The mixture-of-experts shortcut

Some newer models split their parameters into many "experts" and use only a few for each word. Ollama lists Gemma 4 26B as 25.2 billion parameters total but only 3.8 billion active. Each word reads only about 15% of the weights, so a 16 GB download can run several times faster than a dense model its size. You still need memory for all of it, but you pay the speed cost of a much smaller model.

Laptop GPU or Unified Memory?

Where the memory lives matters as much as how much you have.

  • Windows laptops with a separate GPU run fastest when the whole model fits in the graphics card's own memory, called VRAM. Nvidia lists the RTX 5060 with 8 GB and the RTX 5060 Ti with 8 or 16 GB. If a model spills past VRAM, part of it runs on the much slower CPU.
  • Apple Silicon Macs share one pool of unified memory between CPU and GPU, so a 32 GB Mac can hand most of that to a model.

You can check where a model landed. In Ollama, the command ollama ps shows a processor column: "100% GPU" means the model sits entirely in GPU memory, "100% CPU" means it is running from system memory, and a mixed figure means it is split. If you are shopping, note that memory has gotten pricier, as our story on the memory chip shortage raising device prices explains.

Getting Started in Ten Minutes

  1. Check your memory. On a Mac, open About This Mac. On Windows, open Task Manager, then Performance.
  2. Pick a tool. Ollama is a free app for Mac, Windows and Linux that downloads and runs models with one command. LM Studio is a free graphical app that, as MIT Technology Review noted, labels each model by whether it fits your GPU.
  3. Start small. Download a model about half your free memory. Test it on a real task you do every week.
  4. Step up only if needed. If answers are too weak, try the next size. If they are too slow, try a mixture-of-experts model.

Frequently Asked Questions

How much RAM do I need to run AI locally?

For useful everyday models, 16 GB is a practical minimum and 32 GB is comfortable. A 4-bit model needs about half a gigabyte per billion parameters, plus room for context and your other apps.

Can I run a local LLM without a GPU?

Yes. Tools like Ollama run models on the CPU from system memory. It works, but it is slower, so stick to smaller models of around 8 billion parameters or fewer.

Is running AI locally private?

Yes, when the model runs on your device. Ollama states that it does not see your prompts or data when you run locally. Check that you have not picked a cloud-hosted model by mistake.

Why is my local AI model so slow?

Usually the model is too large for your fast memory and is spilling onto the CPU or swapping to disk. Try a smaller or more heavily quantized model, or a mixture-of-experts model.

Match the Model to the Machine

Local AI rewards a little arithmetic. Divide your free memory by the model size to see if it fits. Divide your memory bandwidth by the model size to see if it will feel fast. Do both before you download, and a laptop you already own can likely handle a private assistant for drafting, summaries and code help, with nothing leaving your desk.

Written by

Nora Whitfield

Technology & Science

Covers technology and science for Quick Trend Insights, with a focus on what new AI tools, consumer hardware and space missions actually change for the people following them.

More articles

Related Articles

View all