Tutorials6 min readVerified: November 28, 2026

Running local AI free with Ollama? Here is what fits in 8 GB, 16 GB, or 32 GB

Running local AI without monthly fees sounds tempting, yet one setting can stall your laptop fast. Follow this 4-step guide to match the right model to 8 GB, 16 GB, or 32 GB of memory.

Running local AI free with Ollama? Here is what fits in 8 GB, 16 GB, or 32 GB
Photo by Minh Pham on UnsplashAI policy

Explained in 30 seconds

  • Free desktop apps like LM Studio (point-and-click) and Ollama (one short command) let you run open-weight AI completely privately on your own hardware.
  • Budget roughly 0.6 GB of memory per billion parameters plus 2 GB to 4 GB for your system, and keep your context window modest (4,000 to 8,000 tokens) so you do not lose 10 GB to 22 GB extra.
  • An 8 GB laptop barely fits gemma4:e2b (7.2 GB), 16 GB runs gemma4:12b (7.6 GB) comfortably, and 32 GB unlocks sparse MoE standouts like qwen3.6:35b-a3b.

More people want to work with AI for free and completely privately. You want to skip another monthly subscription, and you do not want sensitive files routed through US or Chinese servers. Only a year ago, running a language model on your own laptop felt like tinkering in developer forums. Today the setup takes five minutes—yet one detail still decides whether replies stream smoothly or freeze your machine: memory.

That shift toward everyday desktop AI showed clearly on November 26. The team behind the open engine llama.cpp (ggml-org) and chipmaker AMD opened a public benchmark dashboard on Hugging Face for local computers. Every week it automatically tracks how many tokens per second—the word pieces an AI generates back-to-back—models such as Gemma, Qwen, gpt-oss, and Inkling 2 Mini achieve on laptop chips like the Radeon 8060S and workstation cards like the Radeon AI Pro R9700S. Dutch tech site Tweakers also highlighted earlier how AMD aims to simplify local setups through a bundled 34 GB software package.

Step 1: Pick LM Studio for menus or Ollama for speed

Start with a free app for Windows, macOS, or Linux to run open-source AI directly on your hardware—what tech circles call Edge AI. If you prefer visual menus and sliders, install LM Studio (lmstudio.ai). It shows exactly which portion fits onto your graphics chip and can expose a local connection for other apps on port 1234 with one click, no terminal syntax required.

If you want speed and simplicity, go straight to Ollama (ollama.com). Typing a single line like ollama run gemma4:12b downloads the model and opens a live chat prompt. Type /set nothink to skip slow pre-thinking steps on quick tasks, and /bye when you want to close cleanly.

Steps 2 and 3: The 0.6 GB rule of thumb and the context trap

Most home-ready models rely on 4-bit compression, which rounds stored numbers slightly so giant files shrink down to laptop size. As a simple rule of thumb, budget 0.6 GB of memory per billion parameters—the building blocks holding what an AI knows—plus 2 GB to 4 GB for Windows or macOS and your browser.

Even when the math looks safe, one forgotten setting regularly trips newcomers up: the context window, or temporary working memory holding your chat history and pasted PDFs. Cranking that setting to tens of thousands of tokens makes a mid-sized model claim 10 GB to 22 GB of extra memory on the spot, grinding your laptop to a crawl. On 8 GB or 16 GB machines, keep your context cap modest around 4,000 to 8,000 tokens.

Step 4: What fits on 8 GB, 16 GB, 32 GB, and beyond?

What runs cleanly comes down to your pool of RAM or dedicated graphics memory. Pick your hardware tier below to see the matching Ollama command, memory split, and honest catch.

Memory picker

Which local AI model fits your memory?

Select your laptop or desktop RAM to see the safest Ollama command and the real-world catch.

Safest pick

gemma4:12b is the sweet-spot daily driver

With 16 GB of memory, you finally get breathing room for fluent prose and everyday coding. Unified gemma4:12b (7.6 GB on disk via an encoder-free core) needs 8 to 10 GB in memory and leaves space for your browser.

Breakdown on 16 GB memory16 GB total
Model in memory (~8.5 GB)Context window (~2 GB)System space (~3.5 GB)Free headroom (~2 GB)
SpeedSmooth everyday pace
Writing qualityStrong all-rounder
ollama run gemma4:12b
A dedicated 16 GB GPU can squeeze an extra-compressed gemma4:26b (15.4 GB) at 20 to 25 tok/s, leaving zero room for huge PDFs.

On an 8 GB laptop, margins stay tight. Compact gemma4:e2b activates just 2.3 billion parameters per word, yet its disk download still hits 7.2 GB because built-in audio, vision, and per-layer language tables bring its full weight to 5.1 billion parameters. With context capped at 4,000 tokens, it consumes around 5 to 6 GB in memory, meaning heavy browser tabs need to close first—and gemma4:e4b (9.6 GB) overflows 8 GB right away.

Step up to 16 GB and gemma4:12b becomes the clear sweet spot. Because its unified core avoids bulky separate encoders, the download (7.6 GB) is barely bigger than e2b, while runtime memory lands at 8 to 10 GB with vastly stronger writing and coding. A dedicated 16 GB graphics card can even squeeze an extra-compressed gemma4:26b (15.4 GB) at 20 to 25 tokens per second, though thick PDFs will hit the ceiling quickly.

At 32 GB, clever Mixture-of-Experts (MoE) designs come into their own by keeping broad knowledge on disk while activating only a slice per token. Standouts include gemma4:26b (18 GB, roughly 4 billion active, reaching 80+ tokens per second on fast Apple M4 Max chips), gemma4:31b (20 GB), qwen3.6:27b (18 GB), and especially qwen3.6:35b-a3b (22 to 23 GB, only 3 billion active). Hands-on testing shared on Reddit (r/LocalLLaMA) using a Ryzen 7 6800H laptop chip showed how sensitive memory bandwidth is: 4-bit compression still delivers 11 to 18 tokens per second (and 20 to 30 tokens per second on faster chips), whereas 8-bit weights plunge to 2.3 tokens per second.

Only 64 GB to 128 GB setups like a Mac Studio or NVIDIA RTX Spark ($4,399 starting price for 64 GB, climbing toward $7,000 for 128 GB) handle the heavyweight class. That gives you enough room for llama4:scout (67 GB file; 109 billion total and 17 billion active, needing 75 to 100 GB in practice with context) or OpenAI's open gpt-oss-120b (~65 GB). The table below summarizes the safest picks per tier.

Memory tierBest pickFile sizeReal-world limit & speed
8 GB laptopgemma4:e2b7.2 GBTakes ~5 to 6 GB in RAM at 4,000 context; gemma4:e4b (9.6 GB) overflows Windows/macOS.
16 GB Mac or work laptopgemma4:12b7.6 GBUses 8 to 10 GB; a 16 GB GPU barely fits compressed gemma4:26b (15.4 GB) at 20–25 tok/s.
32 GB Mac or desktopqwen3.6:35b-a3b or gemma4:26b18–23 GBOnly 3B–4B active; up to 80+ tok/s on M4 Max, avoid 8-bit on laptop RAM.
64–128 GB workstationllama4:scout or gpt-oss-120b65–67 GBNeeds 75–100 GB with context on Mac Studio or NVIDIA RTX Spark ($4,399+ for 64 GB).

What stays out of reach: why trillion-parameter giants fail at home

One honest reality check to close: not every open-weight model belongs on a desk. Giants like Llama 4 Maverick (401 billion parameters, roughly 243 GB compressed and over 800 GB uncompressed), DeepSeek V4 Pro (1.6 trillion), and Mistral Large 4 (1.05 trillion) still demand multi-GPU server racks. For everyday writing, summarizing, or coding help, you rarely need that firepower on a laptop anyway.

Start lean today with a model that fits comfortably inside your memory pool. For step-by-step installation guides, explore our AI Knowledge Base, or check all AI models to compare how local open weights stack up against cloud subscriptions.

What does this mean for you?

Everyday users & hobbyists

On an ordinary 8 GB or 16 GB laptop, start free with gemma4:e2b or ideally gemma4:12b and keep your context window modest—you get complete offline privacy with zero subscription fees.

Teams & business

For small teams keeping client contracts or source code strictly in-house, a 32 GB workstation running qwen3.6:35b-a3b handles most workflows cleanly—you only need an RTX Spark starting at $4,399 when stepping up past 100-billion-parameter weights.

Frequently asked questions

Which local AI model runs safely on an 8 GB or 16 GB laptop?

On an 8 GB laptop, gemma4:e2b (7.2 GB on disk, ~5 to 6 GB in memory with a small context window) is the upper limit for brief summaries if you close heavy browser tabs. With 16 GB of memory, gemma4:12b (7.6 GB on disk, 8 to 10 GB needed) is the strongest everyday choice.

Why does a local model freeze as soon as I paste a long PDF?

Your context window—the temporary working memory holding files and chat history—grows rapidly. Opening it up to tens of thousands of tokens can add 10 GB to 22 GB of extra memory demand on the spot.

Should beginners pick Ollama or LM Studio?

Choose LM Studio if you prefer sliders and menus showing how much fits on your graphics card. Pick Ollama if you want something lighter where one short line like ollama run gemma4:12b starts chatting immediately.

Verified primary sources
Spot an error? Report correction
Deep dive from the AI Knowledge Base
All guides

Related reading

Get caught up on AI in 3 minutes every morning

Essential AI updates and one practical tip you can use right away—zero jargon. Free in your inbox.

We only use your email address for our newsletter. Unsubscribe anytime in 1 click. Read our privacy policy.