Running LLMs Locally: LM Studio vs Ollama (2026)

15–23 minutes
P2 lm studio vs ollama

Both tools are free, both are good, and choosing between them is the easy part. The hard part is the question nobody selling you a guide wants to answer: whether the thing you end up with is worth the disk space.

Last updated: 19 August 2026  ·  Reading time: 10 min  ·  By: the geminy.ai editors

The pitch for running a large language model on your own machine is genuinely appealing. No subscription, no rate limits, no company logging your prompts, and it works on a plane. The pitch is also, for most people, oversold. This guide covers the two tools almost everyone starts with — LM Studio and Ollama — and then does the less popular part: telling you what a model that fits on your laptop can and cannot do, using file sizes we actually checked rather than round numbers copied from a vendor’s blog.

Quick answer

LM Studio vs Ollama — which should you use? Choose LM Studio if you want to download a model by clicking a button and start chatting in a window that looks like ChatGPT. Choose Ollama if you want a local API endpoint you can point scripts, agents, and coding tools at. Both are free for local use, both run the same underlying inference engines (llama.cpp and Apple’s MLX), and on identical hardware with an identical model file they generate tokens at effectively the same speed. Should you bother at all? If your reason is “cheaper than ChatGPT,” probably not — the free tiers of the hosted assistants are better than anything a 16GB laptop will run. If your reason is privacy, offline access, high-volume batch work, or curiosity about how this technology actually works, then yes, and the barrier is lower than it has ever been.

What each tool actually is

LM Studio

LM Studio is a desktop application for macOS, Windows and Linux, built by Element Labs. You install it, browse a catalogue of models inside the app, click download, and chat. It handles the parts that are tedious to do by hand: picking a quantisation that fits your machine, setting a sensible context length, and wiring up the prompt template a given model expects.

Since July 2026 the flagship app has been LM Studio Bionic, which repositions the product from “a chat window for local models” to an agent that can use tools — it reads and writes project files, runs sandboxed Python, browses, produces documents and spreadsheets, and as of Bionic 1.0.8 (17 August 2026) supports installable Skills. It is also an MCP host, so the same connectors you use elsewhere work here. If you have read our guide to MCP servers, everything in it applies.

Underneath the GUI there is a command-line tool, lms, SDKs for Python and TypeScript, and both OpenAI- and Anthropic-compatible API endpoints — the latter meaning you can point Claude Code at a model running on your own machine.

Ollama

Ollama is the command-line-first option, and the more widely deployed one: the project sits at roughly 179,000 GitHub stars as of August 2026. You install it, type ollama run gemma4, and it pulls the model and drops you into a prompt. More importantly it runs a background server on localhost:11434 with an OpenAI-compatible API, which is why it has become the default way to give a script, a home-lab service, or a self-hosted app access to a model.

It has grown well past that. Recent releases added an interactive terminal UI, a Responses API with web search, and an ollama launch command that starts third-party agent harnesses — including Claude Code, Codex and Pi — against a local model. There is a desktop app too, so the old “Ollama has no interface” line is out of date.

llama.cpp — the thing underneath both

Neither tool wrote its own inference engine from scratch. Both build on llama.cpp, the MIT-licensed C/C++ project (around 125,000 GitHub stars) that made CPU and consumer-GPU inference practical, and on Apple’s MLX framework for Apple Silicon. This matters for one reason: token generation speed is a property of the engine, the model file and your hardware, not of the wrapper you chose. If someone tells you one of these apps is dramatically faster than the other, they compared different context lengths or different quantisations.

You can also skip both and use llama.cpp directly — llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF gives you an API and a web UI. It is more fiddly and considerably more configurable.

The differences that actually matter

 LM StudioOllama
Primary interfaceDesktop GUICLI + local API (desktop app available)
Best forChatting, document work, non-developersScripting, serving, automation, headless boxes
Model discoveryIn-app catalogue and Hugging Face searchCurated ollama.com/library registry
Enginesllama.cpp, MLXllama.cpp, MLX
API surfaceOpenAI- and Anthropic-compatibleNative + OpenAI-compatible, Responses API
Agent layerBionic (built in, with Skills)ollama launch into external harnesses
MCP supportYes, as hostYes, via connected clients
Runs on Linux serversYes (AppImage), less naturalYes — this is its home turf
Intel MacsNot supportedSupported
Cost, local useFree, including at workFree, unlimited

One thing worth knowing before you commit: both companies now sell hosted inference alongside the free local product. Ollama charges $20/month for Pro and $100/month for Max, with new Max sign-ups paused in August 2026 while capacity catches up. LM Studio sells pay-as-you-go cloud credits, priced per million tokens. Local use remains free and unlimited on both — but the existence of these tiers says something honest about the state of local AI, which we come back to below.

Quantisation, explained plainly

A model’s weights are numbers. Trained at full precision, each number takes 16 bits. Quantisation stores them in fewer bits — 8, 4, sometimes fewer — which shrinks the file and the memory it occupies, at some cost to output quality.

The naming is unhelpful but the pattern is simple. Q4_K_M is a 4-bit mixed scheme and is the near-universal default: roughly a quarter the size of full precision, with quality loss that most people cannot detect in ordinary use. Q8_0 is 8-bit, about half size, effectively indistinguishable from full precision. BF16 is the unquantised original. Below 4 bits, degradation becomes obvious — repetition, dropped instructions, worse code.

There is also QAT (quantisation-aware training), where the model is trained with quantisation in mind rather than compressed afterwards. Google ships QAT builds of Gemma 4, and they are meaningfully better than a naive 4-bit compression of the same weights at a similar size. If a QAT build exists for a model you want, take it.

Here is what that looks like in real downloads, taken from the Ollama library on 19 August 2026:

Model4-bit (Q4_K_M)8-bit (Q8_0)Full (BF16)
Gemma 4 E2B7.2 GB (4.3 GB QAT)8.1 GB10 GB
Gemma 4 12B7.6 GB13 GB24 GB
Gemma 4 26B (MoE)18 GB28 GB52 GB
Qwen3.8 27B18 GB30 GB56 GB
Muse Glimmer 30B18 GB31 GB57 GB
Gemma 4 31B20 GB34 GB63 GB

Two things to notice. First, the jump from 4-bit to 8-bit roughly doubles the footprint for a quality difference most users will not notice — which is why 4-bit is the sensible default and 8-bit is a luxury for people with memory to spare. Second, “27B” and “30B” models land in almost the same place, so parameter count is a reasonable proxy for what will fit.

What you can actually run

The model file is not the whole story. You also need headroom for the KV cache, which grows with context length. Several current models advertise 256,000-token context windows; filling one costs real memory on top of the weights. Budget a few gigabytes above the file size, more if you use long contexts.

On Apple Silicon, RAM and VRAM are the same pool — unified memory — which is why a 64GB MacBook Pro runs models that would need a serious desktop GPU otherwise. Not all of it is available to the GPU: macOS reserves a portion for the system. [Insert live content] confirm the default fraction of unified memory macOS makes available to the GPU on current Apple Silicon

Your machineComfortablePossible but tightNot happening
8 GB2–4B class at 4-bit, short context12B at 4-bit, slowlyAnything above 12B
16 GB RAM / 8 GB VRAM12B class at 4-bit (~7.6 GB)12B at 8-bit (13 GB)27B and up
32 GB unified / 16 GB VRAM27–31B at 4-bit (18–20 GB)27B at 8-bit (30 GB)Full precision, long context
64 GB unified / 24 GB VRAM27–31B at 8-bit (30–34 GB)30B at full precision (56–63 GB)100B+ dense models
128 GB+ unified30B class at full precision, long contextLarger mixture-of-experts buildsFrontier-scale models

LM Studio’s published requirements are macOS 14 or newer on Apple Silicon with 16GB recommended (Intel Macs are not supported), and on Windows an AVX2-capable CPU with at least 4GB of dedicated VRAM. Those are floors, not targets. [Insert live content] LM Studio’s requirements page lists M1–M4 only; confirm official M5 support

If a model does not fit entirely in GPU memory, llama.cpp will split it between GPU and CPU rather than refuse. It works. It is also dramatically slower, and the experience of watching a model type at reading speed is what puts most people off local AI permanently.

Which models are worth your disk space

Gemma 4 (Google) is the easiest first model. The range runs from an E2B build that fits in 4.3GB up to 31B, all with vision and tool use, and the QAT variants punch above their file size. The 12B at 4-bit is the best fit for a 16GB machine we are aware of.

Qwen3.8 27B (Alibaba — see our Qwen profile) is the strongest general-purpose model in the size class that fits on a 32GB machine, with a 256K context window and vision input, released under Apache 2.0 in August 2026.

Muse Glimmer 30B (Meta) is Apache 2.0 and tuned for agent workloads — tool use, long tasks, recovering from failure. Try it if you want a local model driving a coding agent rather than answering questions.

gpt-oss 20B (OpenAI) remains a well-behaved general model and one of the more forgiving choices on modest hardware.

On the DeepSeek and Qwen question, two facts are worth separating. Technically, both families are competitive with anything else in their weight class, and both ship under permissive licences — Qwen3.8 27B under Apache 2.0, DeepSeek V4 under MIT. On governance: weights you download and run locally transmit nothing to anyone, which is the entire point of running them locally, and the country of origin of the training run does not change that. The data question arises only when you use a hosted endpoint, where jurisdiction, logging and retention policy differ by provider — LM Studio, for instance, serves DeepSeek V4 from US infrastructure with zero data retention, which is a different arrangement from DeepSeek’s own API. If your organisation has a policy here, it should be written against the endpoint, not the model. Our DeepSeek vs ChatGPT comparison goes into the hosted side in more detail.

The very large open models you will see in the news — DeepSeek V4 Pro, Kimi K3, GLM-5.2, MiniMax M3 — are open-weight but not locally runnable on consumer hardware at any quantisation. Both Ollama and LM Studio serve them from the cloud. That is not a workaround; it is an admission.

The quality gap, stated honestly

Epoch AI tracks capability across open and closed models. Since January 2026, the most capable open-weight models have lagged frontier closed models by an average of four months, or about 8 points on their Capabilities Index — a gap they compare to the distance between GPT-5 and GPT-5.5. That sounds narrow, and it is genuinely encouraging.

It is also not the number that applies to you. That comparison uses the best open-weight models, which are hundreds of billions of parameters and require datacentre hardware. The model on your laptop is an order of magnitude smaller. A 27B model at 4-bit is a capable assistant; it is not a frontier model with the branding filed off. It will hold a conversation, summarise a document, answer routine questions and write serviceable code. It will also fail more often on multi-step reasoning, lose the thread in long contexts, and invent facts with more confidence than it should. Anyone telling you a 7B quantised model rivals a frontier system is either benchmarking on tasks that do not discriminate, or selling something.

So should you bother?

For most casual users: no. If you want a good assistant and you are comparing against the free tiers of the major hosted products, local loses on quality, speed and convenience, and the electricity is not free either. The honest recommendation is to use the hosted tool and not feel bad about it.

The reasons that hold up:

  • Privacy that is structural rather than promised. If you handle legal, medical, financial or otherwise confidential material, a model running on your machine with the network off cannot leak it. No policy document is required, because there is no transmission. This is the strongest reason by a distance.
  • Offline operation. Aeroplanes, field work, air-gapped networks, unreliable connections. It works or it doesn’t; there is no service to be down.
  • Volume. If you are classifying a hundred thousand documents or generating embeddings at scale, per-token API pricing adds up and a machine you already own does not meter you.
  • Learning and control. Quantisation, context windows, sampling parameters and prompt templates stop being abstractions once you have to set them yourself. If you build with this technology, that understanding is worth the weekend.

If one of those applies, install Ollama if you are comfortable in a terminal and LM Studio if you are not, pull Gemma 4 at whichever size your memory allows, and give it an hour. You will know quickly whether it is for you — and if it isn’t, you have lost a download and learned something concrete about where this technology actually is.

Frequently asked questions

Is Ollama or LM Studio faster?

Neither, in any way that survives a controlled test. Both run on llama.cpp and Apple’s MLX framework, so with the same model file, the same quantisation, the same context length and the same GPU offload settings, they generate tokens at effectively the same rate. Benchmarks showing a large gap are almost always comparing different default context sizes or different quantisation levels rather than the tools themselves.

How much RAM do I need to run a local LLM?

16GB is a realistic minimum for a useful experience, and gets you a 12B-class model at 4-bit quantisation — around 7.6GB for Gemma 4 12B, plus headroom for context. 32GB opens up 27–31B models at 4-bit (roughly 18–20GB). 64GB lets you run those same models at 8-bit, or a 30B model at full precision. You can run something on 8GB, but only small models with short contexts.

What does Q4_K_M mean?

It is a 4-bit quantisation scheme with mixed precision across layers — the “K” refers to the k-quant method and “M” to the medium variant. In practice it is the default choice for local inference: roughly a quarter the size of the full-precision model, with quality loss that most users cannot detect in ordinary use. Q8_0 is 8-bit and about half size; BF16 is the uncompressed original.

Can a local model match ChatGPT or Claude?

No, not one that fits on a laptop. Epoch AI’s tracking puts the best open-weight models about four months behind frontier closed models, but those open models are hundreds of billions of parameters and need datacentre hardware. A 27B model at 4-bit quantisation running on your machine is a genuinely useful assistant for summarising, drafting, routine questions and everyday code, but it fails more often on complex multi-step reasoning and hallucinates more readily.

Are Ollama and LM Studio free?

Yes, for running models on your own hardware — unlimited, with no licence required, including commercial use at work. Both companies also sell hosted inference for models too large to run locally. Ollama charges $20/month for Pro and $100/month for Max, while LM Studio sells pay-as-you-go cloud credits priced per million tokens. None of that affects local use, which remains free on both.

Which local model should I start with?

Gemma 4 from Google is the easiest first choice. It comes in sizes from an E2B build that fits in 4.3GB up to 31B, includes vision and tool use, and Google ships quantisation-aware-training builds that perform better than equivalently sized naive compressions. On a 16GB machine start with the 12B at 4-bit; on 32GB or more, Qwen3.8 27B or Muse Glimmer 30B are stronger general-purpose options.

Is it safe to run Chinese-origin models like Qwen or DeepSeek locally?

Open weights you download and run on your own machine do not transmit anything anywhere — that is the point of local inference, and it is true regardless of who trained the model. Both families ship under permissive licences (Qwen3.8 27B under Apache 2.0, DeepSeek V4 under MIT) and are technically competitive in their size classes. Data-governance considerations apply to hosted endpoints, where jurisdiction, logging and retention policies vary by provider — so any organisational policy should be written against the endpoint you call rather than the model’s origin. As with any model, evaluate outputs for your own use case.

Can I use a local model with Claude Code or other coding agents?

Yes. LM Studio exposes an Anthropic-compatible API endpoint that Claude Code can be pointed at, alongside its OpenAI-compatible one. Ollama’s ollama launch command starts external agent harnesses — including Claude Code, Codex and Pi — against a locally running model. Expect a noticeable drop in reliability on long agentic tasks compared with a frontier model; agent workflows are where the capability gap shows up most sharply.

Sources

On this page

Leave a Reply

About geminy.ai

An independent, free-to-read comparison site for generative AI platforms. We review and compare the major tools and point readers to them. We do not host, resell or broker AI models.

No affiliate links. No sponsored placements. No paid rankings.

Corrections and enquiries: bestmarketingtools.ai@gmail.com

Discover more from Geminy AI — Independent AI Platform Comparisons

Subscribe now to keep reading and get access to the full archive.

Continue reading