How to Run an LLM Locally
Sizes, requirements and speeds checked 1 November 2026.
In short: An open-weight model runs on your own computer when its file fits in your computer's memory (graphics card memory plus normal RAM). Small models such as Gemma 4 E2B need about 3 GB and run on phones and old laptops. Mid-size models such as Gemma 4 31B, Qwen3.8 27B and gpt-oss-20b need about 16 to 20 GB. The largest open models, Kimi, DeepSeek, GLM and MiniMax, need 90 GB to over 600 GB even in their smallest compressed versions. Free apps such as Ollama and LM Studio download a model and open a chat with it; each has its own install guide, linked below.
What you need
A computer that meets the app's own requirements. These are the figures each developer publishes:
| App | Windows | macOS | Linux |
|---|---|---|---|
| Ollama | Windows 10 22H2 or newer; NVIDIA driver 551.61 or newer for NVIDIA cards; AMD cards through ROCm v7 or Vulkan; 4 GB of disk for the app | macOS 14 Sonoma or newer; Apple M-series (processor and graphics) or Intel (processor only) | One-line installer; NVIDIA (CUDA) and AMD (ROCm) optional |
| LM Studio | x64 processor with AVX2, or ARM (Snapdragon X Elite); 16 GB RAM and 4 GB of graphics memory recommended | Apple M1 to M4 only, macOS 14 or newer; 16 GB RAM recommended, 8 GB for small models only | Ubuntu 20.04 or newer, x64 or ARM64 (AppImage) |
Free disk space for the model itself. Each model is a separate download of 1 GB to 20 GB for the models in the first table below, and far more for the largest ones. Ollama's documentation says models "can be tens to hundreds of GB in size".
Enough memory for the model. The model has to fit in graphics card memory plus RAM. If it fits only partly in the graphics card, the rest runs on the processor and generation is slower (the low-end hardware guide has measured examples). The conversation itself (the context window) takes extra memory on top of the model.
How these models rank on LMArena
LMArena ranks models by people's votes in blind side-by-side comparisons. The chart shows the score and overall rank of each model in this guide that LMArena ranks, read live from the benchmarks table. Models that are not on the benchmarks table, such as Gemma 4 E2B and E4B, are left out.
- Kimi K31488 #19
- GLM-5.31481 #28
- GLM-5.3-Flash1477 #33
- DeepSeek V4.1-Flash1476 #35
- Kimi K2.61461 #60
- Gemma 4 31B1452 #77
- Qwen3.5 397B A17B1441 #94
- MiniMax-M31439 #98
- Gemma 4 26B A4B1438 #101
- DeepSeek V4-Flash1436 #104
- Qwen3.8 27B1436 #106
- Qwen3.5 122B A10B1416 #139
- Qwen3.5 27B1409 #155
- Qwen3.5 35B A3B1394 #173
- gpt-oss-120b1352 #219
- Gemma 3 12B1342 #236
- gpt-oss-20b1317 #270
- Nemotron 3 Nano 30B A3B1314 #274
- Granite 4.1 8B1304 #286
- Gemma 3 4B1303 #287
- Mistral Small 3.1 24B1303 #289
- Llama 3.2 3B1167 #372
- Llama 3.2 1B1111 #401
Score and overall rank on LMArena's text leaderboard, from the benchmarks table. Bars start at 1050 points. Models LMArena does not rank are left out.
Open models that fit on a normal computer
The table lists models whose 4-bit version fits in 24 GB of memory or less. "Download" is the size Ollama shows for that tag on its model library, read on 1 November 2026. "Memory" is the figure the source in brackets publishes for the 4-bit version: Google's table for Gemma 4 counts the model weights plus 20% overhead; Unsloth, which publishes the compressed (GGUF) files most local apps use, counts graphics memory plus RAM. The LMArena rank is read live from the benchmarks table.
| Model | LMArena rank | Ollama command | Download | Memory (4-bit) |
|---|---|---|---|---|
| Gemma 4 E2B | - | gemma4:e2b | 4.6-7.5 GB | 2.9 GB (Google) |
| Gemma 4 E4B | - | gemma4:e4b | 6.6-9.5 GB | 4.5 GB (Google) |
| Gemma 4 12B | - | gemma4:12b | 7.7-8.0 GB | 6.7 GB (Google) |
| Gemma 4 26B A4B | #101 | gemma4:26b | 16-19 GB | 14.4 GB (Google) |
| Gemma 4 31B | #77 | gemma4:31b | 19-20 GB | 17.5 GB (Google) |
| Qwen3.5 2B | - | qwen3.5:2b | 2.7-3.1 GB | 3.5 GB (Unsloth) |
| Qwen3.5 4B | - | qwen3.5:4b | 3.3-4.0 GB | 5.5 GB (Unsloth) |
| Qwen3.5 9B | - | qwen3.5:9b | 6.6-7.6 GB | 6.5 GB (Unsloth) |
| Qwen3.5 27B | #155 | qwen3.5:27b | 17-20 GB | 17 GB (Unsloth) |
| Qwen3.5 35B A3B | #173 | qwen3.5:35b | 22 GB | 22 GB (Unsloth) |
| Qwen3.8 27B | #106 | qwen3.8:27b | 18 GB | 16-19 GB (Unsloth) |
| gpt-oss-20b | #270 | gpt-oss:20b | 14 GB | 16 GB (OpenAI) |
| Nemotron 3 Nano 30B A3B | #274 | nemotron-3-nano:30b | 18-24 GB | about 24 GB (Unsloth) |
| Mistral Small 3.1 24B | #289 | mistral-small3.1 | 15 GB | not published |
| Gemma 3 12B | #236 | gemma3:12b | 8.2 GB | not published |
| Granite 4.1 8B | #286 | granite4.1:8b | 5.3 GB | not published |
| Gemma 3 4B | #287 | gemma3:4b | 3.4 GB | not published |
| Llama 3.2 3B | #372 | llama3.2:3b | 2.0 GB | not published |
| Llama 3.2 1B | #401 | llama3.2:1b | 1.3 GB | not published |
Models without an LMArena rank are not on the benchmarks table. Download sizes vary by tag; the range covers the variants Ollama lists under that name.
Gemma 4 E2B and E4B are made for phones and laptops: the "E" stands for "effective" parameters, and Google's model overview explains that their total memory is higher than the effective parameter count suggests. Gemma 4 26B A4B and Qwen3.5 35B A3B are mixture-of-experts models: only 4B and 3B parameters work on each token, which makes them fast, but Google's overview notes that "all 26 billion parameters must be loaded into memory".
How fast they run: measured speeds
Speed is shown as tokens per second (a token is roughly three quarters of a word). Vendors rarely publish speeds for ordinary hardware. The exception is Google, whose LiteRT team publishes measured speeds for Gemma 4 E2B and E4B on phones, laptops and a Raspberry Pi (E2B card, E4B card; 1,024 prompt tokens, 256 generated, 2,048 context):
| Device | Runs on | Gemma 4 E2B | Gemma 4 E4B |
|---|---|---|---|
| Raspberry Pi 5 (16 GB) | Processor | 7.6 tok/s | 3.2 tok/s |
| Intel Lunar Lake laptop (Windows) | Processor | 29.8 tok/s | 16.8 tok/s |
| Intel Lunar Lake laptop (Windows) | Built-in graphics | 48.4 tok/s | 25.1 tok/s |
| iPhone 17 Pro | Graphics | 56.5 tok/s | 25.1 tok/s |
| Samsung Galaxy S26 Ultra | Graphics | 52.1 tok/s | 22.1 tok/s |
| MacBook Pro M4 Max | Graphics | 160.2 tok/s | 101.1 tok/s |
| NVIDIA GeForce RTX 4090 (Linux) | Graphics | 143.4 tok/s | 91.2 tok/s |
For other models, the figures below come from people who ran them and published their setup. They used llama.cpp, the engine inside Ollama and LM Studio, unless noted:
| Model | Hardware | Speed | Source |
|---|---|---|---|
| Gemma 4 E2B (4-bit) | Raspberry Pi 5, 8 GB, processor only | 9.03 tok/s; 13.06 with multi-token prediction | Marcelo Rovai, 26 Jul 2026 |
| Qwen3.5 4B (4-bit) | Raspberry Pi 5, 8 GB, processor only | 3.12 tok/s; 4.83 with multi-token prediction | Same |
| Llama 3.2 1B (4-bit) | NVIDIA GTX 1050 Ti, 4 GB | 45.2 tok/s | LocalScore (Mozilla Builders) |
| Qwen2.5 14B (4-bit) | NVIDIA GTX 1050 Ti, 4 GB | 1.2 tok/s | Same |
| Gemma 4 26B A4B (4-bit) | 2019 laptop: RTX 2070 Max-Q 8 GB, Core i7-8750H, 31 GB RAM | 1.9 tok/s processor only; 23.5 tok/s with the graphics card (CUDA) | ricardodeazambuja on GitHub |
| Qwen3.8 27B (dense) | Same 2019 laptop | about 2.5 tok/s | Same |
| Gemma 4 26B A4B (Google's 4-bit QAT file) | RTX 3050 8 GB, Core i7-5820K, 46 GB DDR4 | 24.35 to 33.31 tok/s; 22.8 with 65,536 tokens of conversation | xbill on DEV, 19 Oct 2026 |
| gpt-oss-20b | NVIDIA GeForce RTX 5090 | up to 256 tok/s | NVIDIA, 5 Aug 2025 |
Unsloth's gpt-oss guide gives a floor rather than a measurement: 14 GB of RAM, or graphics memory plus RAM, for "6+ tokens per second" with gpt-oss-20b.
The largest open models: Kimi, DeepSeek, GLM, MiniMax, Qwen
The open models highest on LMArena are far larger. Their weights are free to download, but even the smallest compressed versions need workstation or server memory. The figures are Unsloth's, from each model's run-locally guide, as total graphics memory plus RAM (or a Mac's unified memory):
| Model | LMArena rank | Parameters (total / active) | Smallest version needs | 4-bit needs | Source |
|---|---|---|---|---|---|
| Kimi K3 | #19 | 2.8T / 104B | 610 GB (1-bit) | 1,510 GB file | Unsloth |
| Kimi K2.6 | #60 | 1T | 350 GB (2-bit) | 600 GB | Unsloth |
| GLM-5.3 | #28 | 744B / 40B | 223 GB (1-bit) | 372-475 GB | Unsloth |
| DeepSeek V4.1-Flash | #35 | 552B + 196B Engram | 128-145 GB (1-bit, Engram table on SSD) | 305 GB | Unsloth |
| GLM-5.3-Flash | #33 | 320B / 18B | 100 GB (1-bit) | 162-210 GB | Unsloth |
| MiniMax-M3 | #98 | 428B / 23B | 133 GB (1-bit) | 213-270 GB | Unsloth |
| Qwen3.5 397B A17B | #94 | 397B / 17B | 180 GB (3-bit) | 214 GB | Unsloth |
| DeepSeek V4-Flash | #104 | 284B / 13B | 92 GB (1-bit) | 162 GB | Unsloth |
| Qwen3.5 122B A10B | #139 | 122B / 10B | 60 GB (3-bit) | 70 GB | Unsloth |
| gpt-oss-120b | #219 | 117B / 5.1B | 66 GB (for 6+ tok/s) | 65 GB download (Ollama) | Unsloth |
Memory is graphics memory plus RAM, or unified memory on a Mac. With less, Unsloth's guides say the model still runs from disk, much more slowly.
Two techniques make some of these runnable on less: keeping the model's experts in normal RAM while the graphics card does the rest, and reading part of the model from a fast SSD. Both are slower. Measured results people have published:
| Model | Hardware | Speed | Source |
|---|---|---|---|
| DeepSeek V4-Flash (3-bit, 97 GB loaded) | 8-core Xeon, 123 GB RAM, no graphics card | 5.61 tok/s writing; 12.33 tok/s reading the prompt | ComputingForGeeks, 5 Aug 2026 |
| DeepSeek V4-Flash | One RTX 3090 (24 GB), 192 GB DDR4 RAM | 8 to 11 tok/s (128 GB of RAM was not enough) | MindStudio, 25 Aug 2026 |
| Qwen3.5 397B A17B | One 24 GB graphics card + 256 GB RAM | 25+ tok/s | Unsloth |
| Kimi K2 Thinking (about 1T parameters) | Four Mac Studio M3 Ultra, 1.5 TB in total | about 30 tok/s | Jeff Geerling, 18 Dec 2025 |
| DeepSeek R1 671B | AmpereOne 192-core server, 512 GB RAM | just over 4 tok/s | Jeff Geerling, 28 Jan 2025 |
| GLM-5.3-Flash (1-bit) | One NVIDIA B200 data-centre GPU | 63.10 tok/s | Unsloth |
Unsloth's guides run these models with llama.cpp, and the low-end hardware guide shows how llama.cpp splits a model between the graphics card and RAM.
Install an app to run them
Each app has its own step-by-step guide, written for people who have never opened a terminal:
| App | What it is | Systems | Guide |
|---|---|---|---|
| Ollama | Downloads and runs models from a terminal window | Windows, Mac, Linux, Raspberry Pi | How to install Ollama |
| LM Studio | The same with windows and buttons, no terminal | Windows, Apple silicon Mac, Linux | How to install LM Studio |
| llama.cpp | The engine inside both, with every setting; also as the Llama.app desktop app | Windows, Mac, Linux | How to install llama.cpp |
| AirLLM | Python library that loads a model one layer at a time; very slow | Windows, Mac, Linux | How to install AirLLM |
The quickest start, on Windows: install Ollama from ollama.com/download/windows,
open PowerShell, type ollama run gemma4:e2b and press Enter. It downloads Gemma 4 E2B (4.6 to 7.5 GB)
and opens a chat.
Related
- How to run an LLM on low-end hardware: 4 GB to 8 GB graphics cards, processor-only PCs, Raspberry Pi and phones.
- Open source LLM leaderboard: every open-weight model in LMArena's order.
- Run open models locally: llama.cpp, Ollama and vLLM: how the engines differ, quantisation and the local API.
- Open-weight AI models explained: what the licences allow.
Frequently asked questions
How much RAM do I need to run an LLM locally?+
It depends on the model. Google lists 2.9 GB for Gemma 4 E2B and 17.5 GB for Gemma 4 31B at 4-bit; OpenAI says gpt-oss-20b runs with 16 GB of memory. The largest open models need about 90 GB (DeepSeek V4-Flash, 1-bit) to over 600 GB (Kimi K3) of graphics memory plus RAM, per Unsloth.
Can I run an LLM without a graphics card?+
Yes. Ollama, LM Studio and llama.cpp all run on the processor alone, more slowly. Google measured Gemma 4 E2B at 29.8 tokens per second on an Intel Lunar Lake laptop processor and 7.6 on a Raspberry Pi 5.
Is running an LLM locally free?+
Ollama, LM Studio and llama.cpp are free to download, and open-weight models are free to download under their licences. The cost is your own hardware, disk space and electricity.
Can I run DeepSeek or Kimi on my PC?+
Only with a lot of memory. Unsloth lists about 92 GB of graphics memory plus RAM for DeepSeek V4-Flash at 1-bit, 350 GB for Kimi K2.6 at 2-bit and 610 GB for Kimi K3 at 1-bit. One published test ran DeepSeek V4-Flash at 8 to 11 tokens per second on an RTX 3090 with 192 GB of RAM.
How do I see how fast a model runs?+
In Ollama, start the model with ollama run <model> --verbose; after each answer it prints the eval rate in tokens per second.