How much memory do I need to run AI locally?
About the size of the model’s download, plus room for the conversation and the app. Small models run on 8 GB; the strongest that fit one computer need 512 GB. On a Mac (macOS keeps about a quarter of memory for itself by default), the highest-scoring model on Artificial Analysis’ Intelligence Index that runs well at each size is: from 8 GB, Gemma 4 E4B; from 24 GB, Qwen3.8-27B; from 192 GB, Qwen3.8-Flash-Next; from 512 GB, Inkling 2 Small. On a PC with a graphics card, the model has to fit in the card’s VRAM to run at full speed.
Can a Mac run AI models locally?
Yes. Apple silicon Macs share one pool of fast memory between the processor and graphics, so they run open models well. The memory size decides which ones fit: see the answer above, or pick your Mac in the checker.
What’s the best local model for coding?
It depends on your memory. The highest-scoring coding model on Artificial Analysis’ Intelligence Index that runs well on a Mac of each size: from 24 GB, Qwen3.8-27B; from 192 GB, Qwen3.8-Flash-Next; from 512 GB, Inkling 2 Small. For coding agents, use one with tool calling and at least 64K of context.
Should I use Ollama or LM Studio?
Both are free and run the same kinds of builds. LM Studio is a desktop app with a model browser, the easiest place to try a model. Ollama runs in the background with a simple command line, and is the usual choice when other apps and agents, such as Claude Code or Codex, use the model.
Can I use Claude Code with a local model?
Yes. Ollama and LM Studio both offer an Anthropic-compatible endpoint, so you point Claude Code at it with ANTHROPIC_BASE_URL and name a local model. Use a model with tool calling and at least 64K of context. The setup page has the exact commands.
Is running AI locally cheaper than a cloud API?
Not if you buy a computer just for it: it usually takes years to pay for itself against cloud API prices for the same open models. On a computer you already own you pay only for electricity, so local often costs less each month. Local also wins on privacy, offline use and no rate limits. The cost calculator prices both for your workload.
Is it really private?
The model runs on your computer, so your prompts and files are not sent to an AI company to get an answer. Some apps add features that do go online, such as web search, cloud models or update checks, so look at each app’s settings. In Ollama, tags with “cloud” in the name run on Ollama’s servers, not yours.
Will it slow down my computer?
While it is writing an answer it uses most of your graphics and memory, so other heavy apps run slower. The model can stay loaded in memory between questions; quitting the app, or letting it unload the model, frees that memory again.
Is it as good as ChatGPT or Claude?
The strongest cloud models are still better, especially at hard reasoning and long coding tasks. Models that fit a laptop are good for everyday writing, summaries, questions about your own documents and coding help. Each model page shows its independent score where one exists.
Do I need the internet?
Only to download the app and the model. After that it runs offline, unless you turn on a feature that goes online.
What do “4-bit” and “Q4” mean?
They describe how much a model has been compressed. A 4-bit build stores most numbers in about 4 to 5 bits instead of 16, so it needs roughly a third of the memory, with a small loss in quality. Lower-bit builds fit smaller computers but lose more.
Can I use it for work?
It depends on the model’s licence. Apache-2.0 and MIT allow commercial use; other licences add conditions, such as limits for very large companies or rules on acceptable use, and some forbid commercial use altogether. Every model page links its licence, so read it before using a model in a business.