To run an LLM locally, install a free app such as Ollama or LM Studio, download an open-weight model that fits in your computer’s memory, and start chatting. An LLM, or large language model, is the kind of AI behind chatbots like ChatGPT and Claude. Once the model is on your machine, it works offline and nothing you type leaves your computer.
Memory decides what you can run. As a rough guide, 16 GB is enough for capable small models, and 32 GB opens up the 27 to 31 billion parameter class, a real step up in quality.
- Running a model locally means the AI runs on your own computer: private, offline and with no per-token bill.
- Ollama and LM Studio are the easiest ways to start. llama.cpp and MLX give you more control.
- Good open models to try in 2026: Gemma 4, Qwen3.8 and gpt-oss.
- Memory is the limit. At the usual 4-bit setting, plan on roughly 0.6 to 0.7 GB per billion parameters, plus headroom.
- Laptop-sized models trail the best cloud models on hard tasks, so many people use both.
Why run an LLM locally?
- Privacy: your prompts and files never leave your computer
- Offline use, on a plane or a locked-down network
- No per-token bill: after the download, the running cost is electricity
- Control: the model never changes or disappears unless you change it
- Freedom to script it and connect it to your own tools
- Weaker answers on hard tasks than the best cloud models
- Needs plenty of memory and disk space
- Slow on modest hardware
- Drains laptop batteries and runs warm
- You handle setup and updates yourself
Privacy is the most common reason. If you work with client files, health records or unreleased code, a local model means there is no third party to trust. For the wider picture, see our AI privacy guide.
The four tools worth knowing
All four are free. They differ mainly in how much they do for you.
A small app that downloads and runs models with one command, and keeps a local server running so other apps can use them too. Open source under the MIT license. Version 0.34.3 shipped on September 19, 2026.
A desktop app for Mac, Windows and Linux with a built-in model search, chat window and local server. It runs models with llama.cpp, and also with Apple’s MLX on Apple silicon Macs. Free at home and at work since July 2025; the current version is 0.4.25.
The open-source engine LM Studio uses to run models. It supports quantization from 1.5-bit to 8-bit and treats Apple silicon as a first-class platform. MIT license; version 0.4.1 arrived on September 14, 2026.
Apple’s machine learning framework, with a Python package called mlx-lm for running language models from the terminal. Mac only, MIT license.
Start with LM Studio if you prefer clicking, or Ollama if you are comfortable in a terminal. Move to llama.cpp or MLX when you want fine control over every setting.
Which open models should you try in 2026?
As of September 2026, three families stand out for computers you might own. All three use Apache 2.0, a permissive license that allows commercial use.
| Model family | Sizes | What its makers built it for | Try it in Ollama |
|---|---|---|---|
| Gemma 4 (Google) | E2B, E4B, 12B, 26B, 31B | Reasoning, coding and agents; reads images, and the three smaller sizes take audio | ollama run gemma4 |
| Qwen3.8 (Alibaba) | 27B | Coding, research and long agent tasks, with a 262,144-token context | ollama run qwen3.8 |
| gpt-oss (OpenAI) | 20B, 120B | Reasoning and agent tasks; the 20B version runs in 16 GB | ollama run gpt-oss |
The open frontier is far bigger. DeepSeek V4-Pro has 1.6 trillion parameters. It is free to download under the MIT license, but it needs server hardware with hundreds of gigabytes of memory.
How much memory do you need?
A model’s size is counted in parameters, the learned numbers inside it. More parameters usually mean a smarter model, and always mean a bigger file.
At that setting, plan on roughly 0.6 to 0.7 GB of memory per billion parameters. Then add a few gigabytes for the conversation, your operating system and your other apps. Real download sizes show the rule:
| Your computer’s memory | What runs comfortably | Real examples (Ollama download size) |
|---|---|---|
| 8 GB | Tiny models, up to about 4 billion parameters | Llama 3.2 3B (MLX’s default example), Qwen3.5 0.8B (llama.cpp’s example) |
| 16 GB | Up to about 12 billion, plus gpt-oss 20B | Gemma 4 12B (7.6 GB), Gemma 4 E4B (9.6 GB), gpt-oss 20B (14 GB) |
| 32 GB | The 27 to 31 billion class | Qwen3.8 27B (18 GB), Gemma 4 26B (19 GB), Gemma 4 31B (20 GB) |
| More than 64 GB | The largest local models | gpt-oss 120B (65 GB), which OpenAI sizes for a single 80 GB GPU |
| Hundreds of GB | Frontier open models | DeepSeek V4-Pro (1.6 trillion parameters) |
On a Mac, Apple silicon shares one pool of memory between the processor and the graphics chip, so total memory is what counts. On a Windows or Linux PC, speed depends on the graphics card’s own memory, called VRAM. A model that fits in VRAM runs fast. One that spills into regular memory still runs, but much more slowly.
Long conversations need memory too, because the model keeps working notes on everything in its context window. If a big document makes a model crawl, lower the context length setting or pick a smaller model.
Run your first local model in five minutes
Install Ollama
Download the app from ollama.com. On a Mac or Linux, you can instead run the install script from the project’s README:
Terminal curl -fsSL https://ollama.com/install.sh | shOn Windows, the README gives a PowerShell command:
irm https://ollama.com/install.ps1 | iex.Download a model and start chatting
Run
ollama run gemma4. The first time, it downloads Gemma 4 E4B, about 9.6 GB, then opens a chat. After that, it loads from your disk and works offline.Ask it something
Type a question and press Enter. To leave the chat, type
/byeor press Ctrl+D.Manage your models
Each model takes gigabytes of disk space, so remove the ones you stop using. The commands below cover the everyday jobs.
# Ask one question without opening a chat
ollama run gemma4 "Explain quantization in two sentences."
# List downloaded models, and the ones loaded in memory right now
ollama list
ollama ps
# Unload a model from memory, or delete it from disk
ollama stop gemma4
ollama rm gemma4Prefer LM Studio? Search for a model in the app, download it and open a chat. Its lms command line does the same: lms get openai/gpt-oss-20b downloads a model in a version suited to your hardware, and lms chat opens a chat.
Use a local model from your own apps
Local tools also run a small server on your computer, so scripts and apps can use a model the way they would use a cloud API. Ollama listens at http://localhost:11434:
curl http://localhost:11434/api/chat -d '{
"model": "gemma4",
"messages": [{ "role": "user", "content": "Write a haiku about local AI." }],
"stream": false
}'LM Studio (lms server start) and llama.cpp both offer servers compatible with OpenAI’s API format. Many apps built for cloud models can point at your own machine instead: change the address, and your data stays home.
If you want to go a level deeper, these are the quick-start commands from the llama.cpp and mlx-lm READMEs as of September 2026:
# llama.cpp: download a model from Hugging Face and chat with it
llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF
# llama.cpp: serve the same model through an OpenAI-compatible API
llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF
# MLX on Apple silicon: install, then chat with the default small model
pip install mlx-lm
mlx_lm.chatOlder guides use separate llama-cli and llama-server programs. The current README uses llama cli and llama serve.
When local is not worth it
Local is usually the wrong choice when:
You need the strongest answers on hard problems. Laptop-sized models are far smaller than the leading cloud models.
You work with very long documents. A long context eats memory quickly.
Your computer is modest. An 8 GB machine only runs tiny models, and answers arrive slowly.
You are on battery. Long generations drain a laptop and make it hot.
You want zero upkeep. You choose, update and remove models yourself.
A hybrid works well for many people: a local model for private or routine work, and a cloud model when a task gets hard. Our guide on how to choose an AI model covers the cloud side.
FAQ
Can I run ChatGPT or Claude locally?
No. Those models run only on their makers’ servers. OpenAI’s gpt-oss models are the closest option: open-weight models you can download and run yourself.
Do I need a graphics card?
No, but it helps. Apple silicon Macs use shared memory, and Ollama, LM Studio and llama.cpp can also run on an ordinary processor, just more slowly. On a Windows or Linux PC, a graphics card with plenty of memory makes the biggest difference.
Is a Mac good for running AI locally?
Yes, if it has enough memory. Apple silicon shares memory between the processor and graphics chip, llama.cpp treats it as a first-class platform, and MLX is built for it. When buying, prioritize memory over processor speed.
Are local models as good as ChatGPT or Claude?
Not on the hardest tasks, because the models that fit on a laptop are much smaller. For drafting, summarizing, private notes and many coding questions, they can be good enough, so test one on your own work.
Can I use open models in a commercial product?
Often, but read the license first. Gemma 4, Qwen3.8 27B and gpt-oss use Apache 2.0 and DeepSeek V4-Pro uses MIT, both of which allow commercial use. Some other open models come with custom terms.
- Install Ollama or LM Studio, download a model that fits, and you are running AI locally.
- Memory is the limit: roughly 0.6 to 0.7 GB per billion parameters at 4-bit, plus headroom.
- Start with Gemma 4, Qwen3.8 or gpt-oss, all under Apache 2.0.
- Local wins on privacy, offline use and running cost. Cloud wins on peak quality.
- A local server lets your own apps use the model like a cloud API.
Next, weigh open vs closed AI models, or read what happens to what you type in cloud AI tools.
- Ollama, GitHub
- Ollama v0.34.3, Ollama, September 2026
- Gemma 4, Qwen3.8 and gpt-oss in the Ollama library, Ollama, September 2026
- Download LM Studio, LM Studio, September 2026
- LM Studio is free for use at work, LM Studio, July 2025
- Welcome to LM Studio docs and lms CLI, LM Studio
- llama.cpp, ggml-org, September 2026
- MLX LM, Apple
- Gemma 4 31B model card, Google, Hugging Face
- Qwen3.8-27B model card, Qwen, Hugging Face
- DeepSeek-V4-Pro model card, DeepSeek, Hugging Face




