How to run AI locally on your PC or Mac with Ollama — without cloud subscriptions
Free apps like Ollama and LM Studio run capable open-weight models like Gemma 4 offline on your own desk. Here is what your RAM can realistically handle and how to start.

The short answer (30 sec)
- Local AI keeps every prompt and document on your own hard drive, eliminating monthly chat bills and third-party server exposure.
- Free tools like Ollama and LM Studio get a working model such as Gemma 4 running cleanly in under ten minutes.
- System memory (unified RAM on Mac, GPU VRAM on Windows/Linux) decides which model size runs fast; 16 GB to 32 GB is the realistic sweet spot.
- Massive frontier models such as full DeepSeek V4 or Mistral Large 4 still demand server racks and will not fit on ordinary laptops.
Anyone summarizing confidential client contracts or simply tired of sending notes to remote servers does not have to sit AI out. Modern open-source AI weights now run straight off an ordinary MacBook or Windows desktop without internet access. Free apps like Ollama and LM Studio hide almost all setup friction.
That sounds effortless. Yet newcomers routinely hit one wall right away when downloading huge models: memory size. Pick weights larger than your available RAM and your machine freezes or crawls at one word every few seconds.
How it works: local AI vs. cloud AI
Switch between Local and Cloud to trace where your documents and prompts actually go.
Because the model runs on your own chip, not a single byte leaves your desk.
Matching your computer memory to realistic local models
Desktop tools use 4-bit compression so weights take roughly a quarter of their full size with minimal drop in quality. Apple Silicon Macs (M1 through M4) shine here because CPU and GPU share one fast pool of unified memory. On Windows or Linux desktops, dedicated NVIDIA or AMD graphics card memory (VRAM) sets the pace.
| Your hardware memory | Well-matched Ollama model | Download size | What it handles comfortably |
|---|---|---|---|
| 8 GB RAM (entry laptop) | Gemma 4 E4B (gemma4:e4b) | ~3 to 3.5 GB | Quick emails, light summaries, basic Q&A |
| 16 GB RAM / VRAM | Gemma 4 12B (gemma4:12b) | ~7 GB | Everyday writing, meeting notes, modest code |
| 32 GB RAM or 16–24 GB GPU | Gemma 4 26B MoE (gemma4:26b) | ~14 to 15 GB | Snappy reasoning and long PDF queries |
| 64–128 GB (Mac Studio / RTX Spark) | Heavier 31B–120B weights | 18 GB+ | Deep software debugging and private research |
Ignore viral claims suggesting every mega-model fits on any PC: full trillion-parameter weights like DeepSeek V4 or Mistral Large 4 require multi-GPU data center racks. Even dedicated prosumer rigs like Nvidia's compact RTX Spark AI desktops cap out around quantized 70B to 120B models.
Interactive memory check: which local AI model fits your machine?
Pick your computer's RAM or GPU memory (VRAM) to see which local model runs smoothly.
Gemma 4 12B (~7 GB download)
Well-balanced for daily writing, meeting notes, and modest code on a modern Mac or Windows PC.
ollama run gemma4:12bFour quick steps to start locally with Ollama or LM Studio
If you prefer clicking inside a visual chat screen that checks memory compatibility automatically, LM Studio feels familiar from minute one. If you also want lightweight background automation or local coding integrations, pick Ollama—which now includes a clean desktop interface alongside its terminal command.
- Install one tool: Grab Ollama at
ollama.comor LM Studio fromlmstudio.aifor Windows, macOS, or Linux. - Pull a size that fits your machine: Launch the app or run
ollama run gemma4:e4bon 8 GB systems orollama run gemma4:12bwith 16 GB memory. - Test offline with Wi-Fi switched off: Disconnect for peace of mind and test summarizing a sensitive document or rewriting an email.
- Add private document search (optional): Wire local folders through built-in file tools or lightweight RAG workflows without a single byte leaving your desk.
When cloud AI still makes sense alongside local tools
Local Edge AI apps win decisively on zero data leakage, zero subscription fees, and freedom from cloud rate caps. That said, compact 12B models still trail frontier cloud giants like Claude Fable 5.2 or Gemini 4 Neon when tackling gnarly legal edge cases or giant software repositories.
The most practical setup blends both: run sensitive contracts, medical notes, and private drafts locally, and switch to vetted cloud accounts when peak accuracy matters on non-confidential work. Weighing cloud plans too? Check our guide on free vs. paid AI plans and review real AI privacy risks and settings.
Does local AI work completely offline once downloaded?+
Yes. After Ollama or LM Studio finishes downloading the model file once, you can turn off Wi-Fi completely and chat with zero data leaving your computer.
Can a 16 GB laptop match paid ChatGPT Plus or Claude quality?+
Compact open-weight models like Gemma 4 12B handle daily writing and summarizing surprisingly well on 16 GB machines, though frontier cloud models still hold a clear lead on tricky logic and multi-file coding.
Which is easier for beginners: Ollama or LM Studio?+
LM Studio offers helpful visual memory indicators inside a clean chat interface, while Ollama is lightweight, popular with developer extensions, and now ships its own desktop window too.
Will running AI locally drain my battery or overheat my laptop?+
Power spikes only during the few seconds the chip generates a reply, which may spin fans briefly; once text stops streaming, local apps sit idle and sip negligible energy.
- Ollama — Local Open-Weight Models Platform (Ollama)Primary source
- Gemma 4 Model Library & Commands on Ollama (Ollama)Primary source
- Google Gemma 4 Open Weights Collection (Hugging Face)Primary source
- LM Studio — Graphical Desktop App for Local LLMs (LM Studio)Primary source