Skip to content

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:

AppWindowsmacOSLinux
OllamaWindows 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 appmacOS 14 Sonoma or newer; Apple M-series (processor and graphics) or Intel (processor only)One-line installer; NVIDIA (CUDA) and AMD (ROCm) optional
LM Studiox64 processor with AVX2, or ARM (Snapdragon X Elite); 16 GB RAM and 4 GB of graphics memory recommendedApple M1 to M4 only, macOS 14 or newer; 16 GB RAM recommended, 8 GB for small models onlyUbuntu 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.

LMArena text scores of the models in this guide
  1. Kimi K31488 #19
  2. GLM-5.31481 #28
  3. GLM-5.3-Flash1477 #33
  4. DeepSeek V4.1-Flash1476 #35
  5. Kimi K2.61461 #60
  6. Gemma 4 31B1452 #77
  7. Qwen3.5 397B A17B1441 #94
  8. MiniMax-M31439 #98
  9. Gemma 4 26B A4B1438 #101
  10. DeepSeek V4-Flash1436 #104
  11. Qwen3.8 27B1436 #106
  12. Qwen3.5 122B A10B1416 #139
  13. Qwen3.5 27B1409 #155
  14. Qwen3.5 35B A3B1394 #173
  15. gpt-oss-120b1352 #219
  16. Gemma 3 12B1342 #236
  17. gpt-oss-20b1317 #270
  18. Nemotron 3 Nano 30B A3B1314 #274
  19. Granite 4.1 8B1304 #286
  20. Gemma 3 4B1303 #287
  21. Mistral Small 3.1 24B1303 #289
  22. Llama 3.2 3B1167 #372
  23. 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.

ModelLMArena rankOllama commandDownloadMemory (4-bit)
Gemma 4 E2B-gemma4:e2b4.6-7.5 GB2.9 GB (Google)
Gemma 4 E4B-gemma4:e4b6.6-9.5 GB4.5 GB (Google)
Gemma 4 12B-gemma4:12b7.7-8.0 GB6.7 GB (Google)
Gemma 4 26B A4B#101gemma4:26b16-19 GB14.4 GB (Google)
Gemma 4 31B#77gemma4:31b19-20 GB17.5 GB (Google)
Qwen3.5 2B-qwen3.5:2b2.7-3.1 GB3.5 GB (Unsloth)
Qwen3.5 4B-qwen3.5:4b3.3-4.0 GB5.5 GB (Unsloth)
Qwen3.5 9B-qwen3.5:9b6.6-7.6 GB6.5 GB (Unsloth)
Qwen3.5 27B#155qwen3.5:27b17-20 GB17 GB (Unsloth)
Qwen3.5 35B A3B#173qwen3.5:35b22 GB22 GB (Unsloth)
Qwen3.8 27B#106qwen3.8:27b18 GB16-19 GB (Unsloth)
gpt-oss-20b#270gpt-oss:20b14 GB16 GB (OpenAI)
Nemotron 3 Nano 30B A3B#274nemotron-3-nano:30b18-24 GBabout 24 GB (Unsloth)
Mistral Small 3.1 24B#289mistral-small3.115 GBnot published
Gemma 3 12B#236gemma3:12b8.2 GBnot published
Granite 4.1 8B#286granite4.1:8b5.3 GBnot published
Gemma 3 4B#287gemma3:4b3.4 GBnot published
Llama 3.2 3B#372llama3.2:3b2.0 GBnot published
Llama 3.2 1B#401llama3.2:1b1.3 GBnot 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):

DeviceRuns onGemma 4 E2BGemma 4 E4B
Raspberry Pi 5 (16 GB)Processor7.6 tok/s3.2 tok/s
Intel Lunar Lake laptop (Windows)Processor29.8 tok/s16.8 tok/s
Intel Lunar Lake laptop (Windows)Built-in graphics48.4 tok/s25.1 tok/s
iPhone 17 ProGraphics56.5 tok/s25.1 tok/s
Samsung Galaxy S26 UltraGraphics52.1 tok/s22.1 tok/s
MacBook Pro M4 MaxGraphics160.2 tok/s101.1 tok/s
NVIDIA GeForce RTX 4090 (Linux)Graphics143.4 tok/s91.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:

ModelHardwareSpeedSource
Gemma 4 E2B (4-bit)Raspberry Pi 5, 8 GB, processor only9.03 tok/s; 13.06 with multi-token predictionMarcelo Rovai, 26 Jul 2026
Qwen3.5 4B (4-bit)Raspberry Pi 5, 8 GB, processor only3.12 tok/s; 4.83 with multi-token predictionSame
Llama 3.2 1B (4-bit)NVIDIA GTX 1050 Ti, 4 GB45.2 tok/sLocalScore (Mozilla Builders)
Qwen2.5 14B (4-bit)NVIDIA GTX 1050 Ti, 4 GB1.2 tok/sSame
Gemma 4 26B A4B (4-bit)2019 laptop: RTX 2070 Max-Q 8 GB, Core i7-8750H, 31 GB RAM1.9 tok/s processor only; 23.5 tok/s with the graphics card (CUDA)ricardodeazambuja on GitHub
Qwen3.8 27B (dense)Same 2019 laptopabout 2.5 tok/sSame
Gemma 4 26B A4B (Google's 4-bit QAT file)RTX 3050 8 GB, Core i7-5820K, 46 GB DDR424.35 to 33.31 tok/s; 22.8 with 65,536 tokens of conversationxbill on DEV, 19 Oct 2026
gpt-oss-20bNVIDIA GeForce RTX 5090up to 256 tok/sNVIDIA, 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):

ModelLMArena rankParameters (total / active)Smallest version needs4-bit needsSource
Kimi K3#192.8T / 104B610 GB (1-bit)1,510 GB fileUnsloth
Kimi K2.6#601T350 GB (2-bit)600 GBUnsloth
GLM-5.3#28744B / 40B223 GB (1-bit)372-475 GBUnsloth
DeepSeek V4.1-Flash#35552B + 196B Engram128-145 GB (1-bit, Engram table on SSD)305 GBUnsloth
GLM-5.3-Flash#33320B / 18B100 GB (1-bit)162-210 GBUnsloth
MiniMax-M3#98428B / 23B133 GB (1-bit)213-270 GBUnsloth
Qwen3.5 397B A17B#94397B / 17B180 GB (3-bit)214 GBUnsloth
DeepSeek V4-Flash#104284B / 13B92 GB (1-bit)162 GBUnsloth
Qwen3.5 122B A10B#139122B / 10B60 GB (3-bit)70 GBUnsloth
gpt-oss-120b#219117B / 5.1B66 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:

ModelHardwareSpeedSource
DeepSeek V4-Flash (3-bit, 97 GB loaded)8-core Xeon, 123 GB RAM, no graphics card5.61 tok/s writing; 12.33 tok/s reading the promptComputingForGeeks, 5 Aug 2026
DeepSeek V4-FlashOne RTX 3090 (24 GB), 192 GB DDR4 RAM8 to 11 tok/s (128 GB of RAM was not enough)MindStudio, 25 Aug 2026
Qwen3.5 397B A17BOne 24 GB graphics card + 256 GB RAM25+ tok/sUnsloth
Kimi K2 Thinking (about 1T parameters)Four Mac Studio M3 Ultra, 1.5 TB in totalabout 30 tok/sJeff Geerling, 18 Dec 2025
DeepSeek R1 671BAmpereOne 192-core server, 512 GB RAMjust over 4 tok/sJeff Geerling, 28 Jan 2025
GLM-5.3-Flash (1-bit)One NVIDIA B200 data-centre GPU63.10 tok/sUnsloth

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:

AppWhat it isSystemsGuide
OllamaDownloads and runs models from a terminal windowWindows, Mac, Linux, Raspberry PiHow to install Ollama
LM StudioThe same with windows and buttons, no terminalWindows, Apple silicon Mac, LinuxHow to install LM Studio
llama.cppThe engine inside both, with every setting; also as the Llama.app desktop appWindows, Mac, LinuxHow to install llama.cpp
AirLLMPython library that loads a model one layer at a time; very slowWindows, Mac, LinuxHow 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.

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.