Skip to main content
AI Tool Radar

Best Local LLM 2026: Models, RAM Needs and Runtimes

AI Chatbots

Which local LLM fits your machine? Plan 0.5 to 0.7 GB per 1B parameters at 4-bit. Current models by RAM class, plus Ollama, LM Studio, llama.cpp and vLLM.

18 min read2026-11-09Facts verified: 2026-11-09

By Roland Hentschel

This site contains affiliate links. We may earn a commission at no extra cost to you. This helps us keep the site running and continue providing free guides and comparisons.

The Bottom Line#

The size of your RAM decides which local LLM you can run, and a single rule gets you most of the way: at 4-bit quantization a model needs roughly 0.5 to 0.7 GB of memory per billion parameters. A 7B model lands around 4 to 5 GB, a 14B model around 9 to 10 GB, a 32B model around 20 GB.

That rule covers the model weights only. The KV cache, activations and runtime overhead come on top, and they grow with your context length. A model that fits on paper can still run out of memory in practice, which is why the classes below leave headroom instead of filling the machine to the last gigabyte.

The second decision matters just as much and gets far less attention: which runtime you use to serve the model. That is where this guide differs from most. We track 12 open-source local-inference projects with a license check on each, and the picture there changed a lot in 2026.

New to this? How to Run an LLM Locally walks through the setup step by step, Ollama vs LM Studio settles the most common tool choice, and Best Local LLM for Coding covers the workload with the highest memory demands.

How much RAM do you need for a local LLM?#

You need about 8 GB of RAM for small models, 16 GB for models that are useful every day, and 32 GB to run an LLM locally in the 26B to 31B class that can drive coding agents. LM Studio's own system requirements point the same way: 16 GB or more is recommended, and on 8 GB Macs you should "stick to smaller models and modest context sizes".

To size a specific model, take your available memory, subtract what the operating system and your other applications need, then apply the 0.5 to 0.7 GB per billion parameters rule to what is left. The arithmetic of 4-bit quantization alone gives 0.5 GB, but real downloads land higher: on Ollama, qwen3.8:27b is 18 GB for 27B parameters and gemma4:31b is 19 to 20 GB for 30.7B parameters.

Your RAMRealistic parameter classCurrent examples (Ollama download size)What it is good for
8 GB2-4Bqwen3.5:4b (3.3-4.0 GB), gemma4:e2b-it-qat (4.3 GB)Chat, summarising, simple code completion
16 GB4-12Bgemma4:e4b-it-qat (6.1 GB), mimo-v2.6 (6.6-8.7 GB), gemma4:12b (7.7-8.0 GB)Longer context, better reasoning, usable coding help
24 GB20-24Bgpt-oss:20b (14 GB), devstral-small-2 (15 GB)Single-project coding, long documents
32 GB26-31Bgemma4:26b (16-19 GB), qwen3.8:27b (18 GB), gemma4:31b (19-20 GB)Strong general use, agent workloads, larger context windows
64 GB35B with generous context, sparse models around 80Bqwen3.6:35b-a3b (23 GB), qwen3-coder-next (52 GB)Long documents, multiple models loaded, fine-tuning experiments
128 GB and upAround 100B and largerllama4:scout (67 GB), devstral-2 (75 GB), qwen3.5:122b (81 GB)Workstation-class serving for a small team

Download sizes are as listed in the Ollama library on 9 November 2026. The RAM classes are our planning guidance, built from those sizes plus headroom. They are not measurements.

A note on the widespread assumption that a 4-bit model always fits in the next smaller GPU: that is wrong. Memory is not only weights. The sources listed at the end are explicit that KV cache, activations and runtime overhead can push real consumption well past the arithmetic, especially at long context lengths.

Three things move the real number:

  • Context length. Ollama's context documentation shows gemma4:latest occupying 9.6 GB at a 131,072-token context. Its advice: a larger context increases memory use, and offloading the model to the CPU should be avoided for best performance. Check the split in the PROCESSOR column of ollama ps.
  • Parallel requests. Ollama states that required RAM scales with OLLAMA_NUM_PARALLEL multiplied by OLLAMA_CONTEXT_LENGTH.
  • Total, not active, parameters. Sparse mixture-of-experts models advertise a small active count, but the weights still have to fit. Gemma 4 26B has 25.2B total and 3.8B active parameters and still downloads at 16 to 19 GB.

Which Open Models Are Worth Running Locally?#

The open-weight landscape moves fast enough that any specific ranking ages within months, so read this as a snapshot from 9 November 2026. These are picks by documented size, license and the vendor's stated purpose. We have not benchmarked them.

  • Up to 12B is the entry point that runs on almost any modern laptop. Gemma 4 is the family to look at here: Apache 2.0, with sizes built for on-device use, 128K context on the small models and 256K on the 12B.
  • Around 20-24B is where local models start to feel genuinely useful rather than merely impressive. OpenAI positions gpt-oss-20b for "lower latency, and local or specialized use cases", and Devstral Small 2 targets software engineering agents. Both are Apache 2.0.
  • Around 26-31B is where the gap to hosted frontier models narrows enough that many workflows stop needing the cloud at all. Qwen3.8-27B is the newest Qwen in this class, a dense Apache 2.0 model that also reads images and video. Gemma 4 26B and 31B are the alternatives.

Why most open flagships will not run on your machine#

"Open weights" does not mean "runs on your laptop". The headline releases are sparse models with hundreds of billions to trillions of parameters. DeepSeek V4 Flash has 284B total parameters and V4 Pro has 1.6T, both under the MIT license. Ollama lists qwen3-coder:480b at 290 GB and llama4:maverick at 245 GB. These are free to download and expensive to run, so for most small businesses they mean an API or rented GPU servers, not a purchase. Confusing the flagship class with the workstation class is the most common mistake in this space.

Check the license before you build on a model. "Open weights" and "open source" are not the same thing, and several widely used models ship under bespoke licenses with usage restrictions rather than Apache-2.0 or MIT. Llama 4 is the clearest example: services above 700 million monthly active users need a separate license from Meta, and its acceptable use policy withholds the rights to the multimodal models from individuals and companies based in the European Union, end users of a product that incorporates them excepted.

What is the best local LLM runtime?#

Ollama is the best local LLM runtime for most people, because it combines a one-line install, a curated model library and a local API that coding tools can use directly. LM Studio is the better choice if you want a desktop app instead of a terminal, llama.cpp if you need the widest hardware support, and vLLM if several users share a GPU server.

RuntimeBest forLicensePlatformsModels
OllamaMost people, local API, coding agentsMITmacOS 14+, Windows 10 22H2+, LinuxCurated library, plus GGUF and Safetensors import
LM StudioDesktop app, document chat, no terminalProprietary app with a free plan, lms CLI is MITmacOS 14+ on Apple Silicon only, Windows x64 and ARM, Linux x64 and ARM64GGUF and MLX, downloaded from Hugging Face
llama.cppWidest hardware support, full control over GGUFMITMetal, CUDA, HIP, Vulkan, SYCL and othersGGUF
vLLMMulti-user GPU servingApache-2.0Linux, Windows through WSL, Apple Silicon through the separate vLLM-Metal pluginHugging Face formats, GGUF only through a plugin

All four expose an OpenAI-compatible API. For the head-to-head between the two beginner options, see Ollama vs LM Studio.

Which local LLM serving runtime has the best model support?#

vLLM has the broadest documented architecture support, and llama.cpp has the largest pool of ready-to-run quantized files. vLLM states that it supports "200+ model architectures on Hugging Face". llama.cpp reads GGUF, and Hugging Face listed 219,755 GGUF-compatible model repositories on 9 November 2026. Those two numbers count different things, since many GGUF repositories are quantized copies of the same model.

The catch is that each strength stops at the other's format. vLLM's own documentation calls its GGUF support "highly experimental and under-optimized". LM Studio states that it runs on MLX and llama.cpp, so its coverage follows those engines. Ollama's library is smaller by design, though you can import GGUF and Safetensors models yourself.

We found no primary source that measures which runtime supports a new architecture first. Check the model card: Qwen3.8-27B, for example, names Transformers, vLLM, SGLang and TokenSpeed as compatible.

Open-Source Runtimes We Track#

Beyond the big four, this is the part where our own data goes further than a general roundup. Every project below is tracked in the Open-Source AI Radar with a manual license check, and the star counts carry the date they were taken.

ProjectStarsLicenseWhat it does
oMLX16,600Apache-2.0macOS-native inference server for Apple Silicon, continuous batching, SSD-tiered caching
apfel5,800MITExposes the on-device Apple Intelligence model on macOS 26 as an OpenAI-compatible API
shimmy5,300Apache-2.0Pure-Rust inference engine, OpenAI-compatible, ships as a single binary
claude-code-local2,863MITMLX-native proxy that runs the Claude Code CLI against local models, fully offline
whichllm2,800MITDetects your hardware and ranks the local LLMs that will actually run well on it
Rapid-MLX2,700Apache-2.0OpenAI-compatible MLX server for Apple Silicon, built for coding agents
DreamServer2,220Apache-2.0One-command installer for a private AI server: LLM, voice, RAG and image generation
tokenspeed1,513MITC++ scheduler with CUDA kernels, aimed at high-throughput agentic serving
vllm-mlx1,369Apache-2.0vLLM-style server for Apple Silicon speaking both the OpenAI and Anthropic APIs
mlx-tune1,300Apache-2.0Unsloth-compatible fine-tuning for LLMs, VLMs, TTS and STT on Apple Silicon

Star counts taken between 2026-06-05 and 2026-06-26; the exact date per project is on its detail page. All ten are OSI-approved licenses, which is not something you can assume in this space.

If you do not know where to start, run whichllm first. It reads your hardware and tells you which models will run well, which removes the guesswork the RAM table above can only approximate.

Which Local LLM Is Best for Coding?#

Coding is the workload where the size class matters most, because a model that is merely adequate at chat becomes actively unhelpful when it invents an API that does not exist. The practical floor is higher than for general use.

  • Below 14B, treat a local model as autocomplete rather than a collaborator. It will finish the line you started and it will save keystrokes, but it will not reason about your codebase.
  • At 14B, single-file work becomes realistic: writing a function to a description, explaining unfamiliar code, translating between languages.
  • At 30-32B, multi-file reasoning and agent workflows start to hold together. This is where running locally stops being a compromise for most day-to-day work.

Context length matters as much as parameter count here, and it is the part people underestimate. Feeding a model three files instead of one multiplies the KV cache, and that memory comes out of the same budget as the weights. Plan for a class smaller than your RAM table suggests if you intend to work with long context.

On the tooling side, two of the tracked projects are built specifically for this. Rapid-MLX is an OpenAI-compatible MLX server designed for coding agents rather than chat, and claude-code-local proxies the Claude Code CLI to a local model so the workflow stays identical while nothing leaves the machine. For named models per memory size and the agent setup, see Best Local LLM for Coding.

Local coding LLM memory requirements#

Plan for 32 GB of RAM or unified memory for a local coding LLM that drives an agent, and treat 16 GB as the limit for autocomplete and single-file help. The reason is context, not just weights: an agent reads files, tool output and its own history, and all of that has to fit.

The vendors are unusually consistent on this:

  • Ollama says agents and coding tools "should be set to at least 64000 tokens", while its default is only 4K below 24 GiB of VRAM, 32K from 24 to 48 GiB and 256K from 48 GiB up. On a typical laptop you have to raise it yourself.
  • LM Studio recommends a model and server settings with more than about 25K context for Claude Code.
  • Qwen advises at least 128K tokens for Qwen3.6 "to preserve thinking capabilities", and suggests reducing the window if you run out of memory.
  • Mistral says Devstral is light enough for a single RTX 4090 or a Mac with 32 GB of RAM.
Coding setupModel exampleDownloadMemory we would plan for
Autocomplete, single-file helpgemma4:12b7.7-8.0 GB16 GB
One project, modest contextdevstral-small-215 GB24-32 GB
Agent with a 64K context or moreqwen3.8:27b18 GB32 GB
Agent with a large context, or two models loadedqwen3.6:35b-a3b23 GB48-64 GB

The right-hand column is our planning estimate from download size plus headroom for the context, not a measurement. Parallel agents raise it further, because Ollama multiplies the context by the number of parallel requests.

Is Self-Hosting an LLM Worth It?#

It depends on which of three reasons applies to you, and only one of them is about money.

Privacy is the strongest case. If your prompts contain client data, patient records, unreleased code or anything under an NDA, a local model removes the question entirely rather than answering it with a vendor's data processing agreement. No configuration to get wrong, no policy change to track.

Cost only works at volume. A single seat on a hosted frontier model runs around 20 USD a month. To beat that with hardware you need either machines you already own or usage high enough that per-token pricing hurts. Buying a GPU to save a subscription is not a saving.

Offline operation is niche but absolute. Air-gapped environments, field work, unreliable connectivity: either the model runs locally or there is no model.

Custom fine-tuning and on-device products are the other two solid reasons. If you have domain-specific data, tuning an open model gives you something a closed API cannot, and a small model can ship inside an app or device that has no connection at all.

There is also a route between the two that gets skipped: open models through an API. You keep the low per-token prices of open weights without buying hardware. On Ollama's cloud, deepseek-v4.1-flash listed at $0.30 per million input tokens and $1.20 per million output tokens on 9 November 2026. If you need a whole GPU, renting usually comes before buying, and our RunPod guide covers how that is billed. Keep in mind that this route, like Ollama's and LM Studio's cloud models, sends your prompts to a server. It is cheaper, not private.

Local processing also does not make you compliant by itself. It removes the third-party processor from the equation, but documentation, legal basis and access control remain your job.

What you give up is capability at the top end and the maintenance being someone else's problem. You are now responsible for updates, quantization choices and the day a new model release makes your setup look dated. For most people the honest answer is a hybrid: local for the routine and the sensitive, hosted for the hard problems.

Ollama Alternatives Worth Knowing#

Ollama is the default answer and a reasonable one. The projects above matter when its defaults stop fitting:

  • You are on Apple Silicon and want the hardware fully used. oMLX, Rapid-MLX and vllm-mlx build on MLX rather than a cross-platform abstraction.
  • You want one binary with no runtime to manage. shimmy is a single Rust executable with an OpenAI-compatible API.
  • You are serving agents, not chatting. tokenspeed targets throughput for agentic workloads rather than single-user latency.
  • You want more than an LLM. DreamServer installs voice, RAG and image generation alongside the model in one step.
  • You want Claude Code without the cloud. claude-code-local proxies the CLI to a local model.
  • You want a desktop app rather than a terminal. LM Studio is the obvious step, compared in detail in Ollama vs LM Studio.

What This Guide Does Not Cover#

Being explicit about the limits, because a lot of comparable pages are not:

  • No benchmark numbers of our own. We have not run tokens-per-second measurements on our own hardware. The RAM figures are the published quantization rule of thumb and the download sizes listed by Ollama, not our measurements.
  • No model leaderboard. Open-weight leaderboards shift monthly, so the model names above are dated examples per size class rather than a ranking. The size classes hold up longer than the individual names do.
  • Apple Silicon is over-represented in the runtime table. That reflects where open-source local inference actually concentrated in 2026, not a preference on our part. If you are on an NVIDIA GPU, Ollama, llama.cpp and vLLM cover you, and tokenspeed and shimmy are the relevant entries from our radar.
  • Nothing here is affiliate-linked. These are open-source projects. We earn nothing from them, which is also why the list is not padded.

FAQ#

What is the best local LLM for 8 GB of RAM?#

A model of roughly 2 to 4 billion parameters, such as qwen3.5:4b at 3.3 to 4.0 GB or gemma4:e2b-it-qat at 4.3 GB. Larger models may load, but they leave little room for the context and your operating system, and LM Studio advises smaller models and modest context sizes on 8 GB Macs.

What is the best local LLM for 16 GB of RAM?#

A model up to about 12 billion parameters. gemma4:12b downloads at 7.7 to 8.0 GB, comes with a 256K context limit and is Apache 2.0 licensed, which leaves headroom on a 16 GB machine as long as you keep the context moderate.

What is the best local LLM for 32 GB of RAM?#

A model in the 26B to 31B class. qwen3.8:27b at 18 GB and gemma4:31b at 19 to 20 GB are the current examples. Both read images as well as text, so they also answer the question of which multimodal models run on 32 GB.

How much VRAM do I need for a 32B model?#

Around 19 to 21 GB for the weights at 4-bit quantization, which in practice means a 32 GB machine rather than a 24 GB one. The gap between the arithmetic and the real requirement is the KV cache and activations, and it widens as your context length grows.

Is a local LLM as good as ChatGPT or Claude?#

Not at the top end. A 32B model running locally closes much of the gap for summarising, drafting and routine code work, but hosted frontier models remain ahead on hard reasoning and long-context tasks. The reason to run locally is usually privacy, cost at volume, or offline operation, not raw capability.

What is the difference between open source and open weights?#

Open weights means you can download and run the model. Open source, in the sense the OSI uses, additionally means the license permits use, modification and redistribution without bespoke restrictions. Several prominent models are open weights under a custom license that limits commercial use or scale. Check the license text, not the marketing.

Do I need a GPU to run an LLM locally?#

No, but it changes what is realistic. Apple Silicon machines run models on unified memory without a discrete GPU and do so well, which is why so much of the 2026 tooling targets them. On a CPU-only x86 machine a 7B model will run, slowly enough that it suits batch work rather than conversation.


Roland Hentschel

Roland Hentschel

AI & Web Technology Expert

Web developer and AI enthusiast helping businesses navigate the rapidly evolving landscape of AI tools. Testing and comparing tools so you don't have to.

More AI Chatbots Guides

Related Reading