A year or two ago, running a language model at home sounded like a job for someone with a stack of graphics cards and a lot of patience. Now a local LLM, an AI model that runs on a computer you control and not on a company's servers, fits on a laptop with 16GB of memory, and the small ones run on a phone or a Raspberry Pi 5. Getting one going takes a single install command with Ollama or a few clicks in LM Studio.
I think it is worth a free afternoon to try one, because your chats stay on your own machine and there is no monthly fee. I would still keep ChatGPT or Claude, though, because by Epoch AI's estimate the open models a top gaming card can run sit 6 to 12 months behind the best.
Is a local LLM just ChatGPT on your own machine?
In the chat window it can look that way. A local LLM is a language model that does its inference on hardware you control, meaning a laptop, a GPU workstation or a server in your own building. Inference is the part you see: the model reading your prompt and writing back.
The model is a large file of trained weights that you download once. The runner is the program that loads that file into memory and lets you talk to it. The two covered here are Ollama, which works from a terminal, and LM Studio, a desktop app with a chat window. Once a model is on your disk, LM Studio can run with no internet connection at all.
I grant that the chat looks familiar, but the model answering you is a different one. ChatGPT and Claude run their makers' own models on their makers' servers. Locally you run an open-weight model such as Gemma 4, Llama 3.2 or gpt-oss. I argued on Mobzter earlier this month that an open-weight release is a file you download and that its licence matters more than the open label. The limit that matters here is plainer: the largest model you can use is the largest one your memory holds, and that decides which computer works and how far behind the cloud you end up.
Memory decides which model you can run
A model has to sit in memory while it works. On a PC with a graphics card, the memory that counts most is the card's own VRAM. On an Apple Silicon Mac, the processor and graphics share one pool of unified memory. On Ollama, gpt-oss-20b is a 14GB download built to run on systems with as little as 16GB of memory. The larger gpt-oss-120b is a 65GB download meant for a single 80GB GPU, far beyond the 24GB on the two gaming cards in the speed tests below.
Gemma 4 comes in finer steps. Its e2b tag downloads at 4.6 to 7.5GB, e4b at 6.6 to 9.5GB, 12b at 7.7 to 8.0GB, 26b at 16 to 19GB and 31b at 19 to 20GB. The runner also needs room for the conversation on top of the file, and the computer still needs memory for everything else it is doing.
For an ordinary computer, LM Studio's system requirements recommend at least 16GB of RAM on Windows, along with a processor that supports AVX2 and 4GB of dedicated VRAM. On a Mac they ask for Apple Silicon and macOS 14 or newer, and recommend 16GB or more. That 16GB is a recommendation, and LM Studio says 8GB Macs can still work if you "stick to smaller models and modest context sizes".
OpenHands gives a rough rule of thumb for models stored at 4 bits per weight. With 8GB of VRAM, or a Mac with 16GB of unified memory, about 7B to 8B parameters fit. With 12GB of VRAM the range is about 7B to 13B, and with 24GB it reaches about 32B. A 70B model needs offloading or more than one device.
Those 4 bits are quantization, and they are why these files are small enough to download at all: each weight is stored in fewer bits than the model was trained with. Most of the speed tests below used 4-bit formats such as Q4_K_M or Q4_0. The other cost is context, meaning how much of the conversation the model keeps in view. Ollama uses 4096 tokens by default, and a longer context needs more memory, so raising that limit for long documents eats into the same memory the model needs.
What will it feel like on a phone, a Pi, a laptop and a gaming PC?
Speed is counted in tokens per second, a token being a word or part of one. It depends on the hardware, the model size, the quantization, the runner and the context length. Memory bandwidth, the rate at which the chip can read the weights, is usually the bottleneck, and a processor working alone is slower than one with a graphics chip helping. Each figure below comes from a different published test with its own model and runner, so compare it with others from the same kind of device and not across devices.
On a phone, Google recommends a device with at least 4GB of memory for best performance with Gemma 3 1B, a model that takes 529MB. Google also quotes up to 2585 tokens a second on its tested phone, but that figure is prefill, the model reading your prompt, and not the speed at which the reply appears. The reply is decode, and decode is what the Pi, Mac and PC figures below report.
On a Raspberry Pi 5, a test by the Stratosphere lab using Ollama with Q4_K_M models measured Llama 3.2 1B generating 11.22 tokens per second while using 2415.8MB of RAM, and Gemma 3 1B at 11.53 tokens per second in 1393.8MB. Moving up to 3B models cut the pace by more than half. Llama 3.2 3B ran at 4.69 tokens per second using 4659.3MB, and Qwen 2.5 3B at 5.2.
Raspberry Pi's own post used a Pi 5 8GB and ran the LiteRT-LM runtime on its CPU. It reports Gemma 4 E2B decoding at 9 tokens per second, against 99 a second for prefill, with a peak memory use of 1432MB. The tiny Gemma 3 270M decoded at 23 tokens per second in 680MB.
At 9 to 11 tokens a second the Pi 5 suits short questions and small jobs, and I think it is at its best with the 1B class and Gemma 4 E2B. It is fair to say a 3B model at 4.69 tokens a second does finish its answer, but larger models belong on a larger machine.
Macs show the effect of bandwidth most clearly. In a llama.cpp benchmark thread running Llama 2 7B at Q4_0, generation over 128 tokens went from 14.19 tokens per second on an M1 with 68GB/s of memory bandwidth to 21.70 on an M2 at 100GB/s and 24.11 on an M4 at 120GB/s. An M4 Pro at 273GB/s reached between 49.64 and 50.74, and a 40-core M4 Max at 546GB/s reached 83.06. The build behind that table dates from late 2023.
A gaming PC with a large Nvidia card is the fast end. A benchmark set published on GitHub by Xiongjie Dai measured Llama 3 8B at Q4_K_M, with generation averaged over 1024 tokens, at 111.74 tokens per second on an RTX 3090 and 127.74 on an RTX 4090. Both are 24GB cards, and the 70B model at Q4_K_M ran out of memory on either one alone, as the rule of thumb above suggests.
What do you give up against ChatGPT and Claude?
Epoch AI estimates that one consumer gaming GPU, an RTX 5090 costing under $2,500, can run open models that match the best models of 6 to 12 months earlier. Epoch adds that the real-world lag may be somewhat longer, and its memory estimates assume 4-bit weights and an 8K context. That estimate is for a top consumer card. A 16GB Mac fits smaller models, about 7B to 8B at 4-bit by the rule of thumb above, so I think the gap is wider there.
ChatGPT Plus is $20 a month. Claude Pro is $20 billed monthly or $17 a month on annual billing, and Claude also has a free tier and a $100 Max plan. A local model has no monthly fee and runs on a computer you may already own. The card in Epoch's estimate is a real purchase, but you do not need it to start, and in my view a 16GB laptop is enough for the first models worth trying.
Ollama's FAQ is direct about privacy: "We don't see your prompts or data when you run locally." LM Studio says that with local models, none of your messages, chat histories or documents leave your system. For files you would rather not upload anywhere, that is the reason to keep a local model installed even while paying for a cloud one.
Running it yourself trades more control for more work, because updates, drivers and monitoring fall to you. Ollama needs an Nvidia card with compute capability 5.0 or higher and driver 550 or newer, and it also supports AMD cards through ROCm and Apple chips through Metal.
Starting tonight takes one command or one app
Ollama is the shorter path if you are comfortable with a terminal. On macOS or Linux the install is one line:
curl -fsSL https://ollama.com/install.sh | sh
Windows has its own one-line command in the Ollama README. After the install, this downloads Gemma 4 and opens a chat in the terminal:
ollama run gemma4
On a machine with little memory, ask for the smallest Gemma 4 tag, e2b:
ollama run gemma4:e2b
On a Pi 5, the speed of about 11 tokens a second in the Stratosphere test came from a Q4_K_M build of Llama 3.2 1B, a size Ollama's library carries alongside the 3B.
LM Studio suits anyone who would rather click. Install the app, open the Discover tab to find and download a model, then go to the Chat tab to load it and start talking. On Linux it needs Ubuntu 20.04 or newer. In my view LM Studio is the friendlier of the two, though Ollama is the runner behind the Stratosphere Pi 5 figures above.
Begin with a small model, and compare its download size on the model page with your memory before you fetch it, leaving room for the conversation. The 26b Gemma 4 tag downloads at 16 to 19GB, so it needs more than a 16GB machine once the conversation is counted, while the 1B Llama 3.2 ran in under 2.5GB on a Pi 5.
Running a model at home costs you the newest frontier quality, 6 to 12 months of it by Epoch's estimate, and some evenings of tinkering, and it gives you private chats on a machine you own with no monthly fee.
Figures are from published pages, not Mobzter tests.
I write about artificial intelligence, mostly whether each week's big announcement deserves the attention.
2 articles →