KernelFox
Home / LM Studio vs Ollama

LM Studio vs Ollama: The Verdict?

6 Oct 2026By Adrien M.7 min read

LM Studio or Ollama: which one runs local AI best? I installed both on the same computer, ran exactly the same model file, and measured speed, memory and startup. Here is the verdict, the figures, and what it changes depending on your profile.

The verdict in short

In my test, Ollama clearly wins on speed, memory and reliability. LM Studio wins on the interface.

  • Speed. Ollama generates about twice as fast: 15.0 versus 8.1 tokens per second on the small model, 8.1 versus 3.8 on the big one.
  • Memory. On the big model, Ollama uses 18.6 GB, LM Studio 28.1 GB.
  • Reliability. With its default settings, LM Studio crashed twice out of two on the big model.
  • Price. A tie: both are free locally.
  • Interface and model discovery. Advantage to LM Studio, which is a real application with a window.

Mind the scope: this is a single computer, an old laptop without a dedicated graphics card, and the version of LM Studio without an interface. On a PC with an NVIDIA card or on a Mac, I do not know what the same test would give: I did not run it.

How I tested

  • The machine. An old laptop running Linux: Intel Core i5-7200U (2 cores, 4 threads), 30 GB of DDR4 RAM, no dedicated graphics card.
  • The versions. Ollama 0.35.1, and LM Studio in its version without an interface (llmster 0.0.25, llama.cpp engine 2.41.0), on October 6, 2026.
  • The models. Llama 3.2 1B (1.3 GB) and Qwen3 30B-A3B (18.6 GB, quantized to 4 bits). The file is the same for both tools: LM Studio reads Ollama's directly, so same weights, same quantization.
  • The settings. Context of 4,096 tokens, temperature 0, same questions: a short question (120 tokens generated) and a long text to read (1,650 tokens) followed by 60 tokens generated. Qwen3's thinking is disabled.
  • The measurements. On each tool's OpenAI-compatible API, streaming. One model loaded at a time, two passes in reversed order, median of 4 measurements per case.

Three configurations: Ollama as it is; LM Studio as it is (it picks an engine called Vulkan on its own); LM Studio forced onto the processor.

Generation speed

In tokens per second: higher is better. A token is a small word or a piece of a word; people read about 5 tokens per second.

CaseOllamaLM Studio (default)LM Studio (processor)
Llama 3.2 1B, short question15.05.68.1
Llama 3.2 1B, after a long text9.15.37.3
Qwen3 30B-A3B, short question8.1crashes3.8
Qwen3 30B-A3B, after a long text3.7crashes3.3

Reading a long text (1,650 tokens) is measured separately, in tokens read per second:

CaseOllamaLM Studio (default)LM Studio (processor)
Llama 3.2 1B414922
Qwen3 30B-A3B12.9crashes6.9

This is the only case where LM Studio beats Ollama: reading with the small model on its default engine. For the big model, reading this text takes about 2 minutes with Ollama and about 4 minutes with LM Studio.

Memory and startup

CaseOllamaLM Studio (default)LM Studio (processor)
1B, memory used2.0 GB1.0 GB2.0 GB
1B, first word cold5.4 s12.7 s9.5 s
30B-A3B, memory used18.6 GBcrashes28.1 GB
30B-A3B, loading50.7 scrashes34.3 s
30B-A3B, first word cold55.2 scrashes57.7 s

LM Studio loads the big model faster (34 s versus 51 s), but it uses 9.5 GB more. On 30 GB of RAM, the margin is thin: I observed 1.7 to 2.5 GB of swap during its measurements, which may have slowed it down a bit. I did not isolate the cause of this memory gap; it starts its engine with four possible requests in parallel, which reserves memory, a likely lead.

Why LM Studio is slower here

It is not the engine. Both rely on llama.cpp, and by looking at how LM Studio launches, I found the main cause: it starts its engine with a single compute thread out of the processor's four.

To check, I launched LM Studio's engine by hand with the small model, changing only the number of threads:

  • 1 thread: 9.1 tokens per second;
  • 2 threads: 15.5;
  • 4 threads: 14.1 (Ollama: 15.0).

With the same settings, the same engine goes as fast as Ollama: the gap therefore comes from a default setting, not a weakness of the engine. LM Studio's documentation describes a "CPU Thread Pool Size" setting in the load parameters. I could not change it through the command line or a configuration file, and I did not test it in the application with a window, which may be set differently.

The crash has another origin: on the big model, the Vulkan engine chosen automatically tries to use the integrated Intel graphics chip, and it ends with a driver error (vk::DeviceLostError), with no answer at all. It happened twice out of two. Forcing the engine onto the processor works. Someone installing LM Studio on a comparable computer could run into the same problem.

And with Claude Code?

Both tools can talk to Claude Code, Anthropic's terminal program: Ollama documents it, and LM Studio offers it since its version 0.4.1. You just give it the address of the local server instead of Anthropic's:

Terminal
export ANTHROPIC_BASE_URL=http://localhost:11434   # Ollama
export ANTHROPIC_AUTH_TOKEN=ollama
Terminal
export ANTHROPIC_BASE_URL=http://localhost:1234    # LM Studio
export ANTHROPIC_AUTH_TOKEN=lmstudio

But here is what it costs. I captured Claude Code's very first request, for a simple "Say hello": it weighs about 14,900 tokens, of which 11,300 just to describe its 20 tools. At the reading speed measured with Qwen3 30B-A3B, that is about 19 minutes before the first answer with Ollama (12.9 tokens read per second), more than 35 with LM Studio (6.9). These are calculations from my measurements, not a direct measurement, and reading slows down further as the text gets longer.

Another limit: LM Studio's documentation recommends more than 25,000 tokens of context for Claude Code, far more than the 4,096 of my test. On a computer like mine, without a graphics card, the local agent is not usable; with a 16 GB card or a recent Mac, it is another story.

Price, license and architecture

CriterionOllamaLM Studio
Local priceFree, unlimitedFree, at home and at work
Paid offerModels in the cloud: Pro $20/month, Max $100, Team $500Bionic (agent with optional cloud inference): $20/month, Pro $100
LicenseMIT, open sourceClosed source application, lms command line under MIT
InterfaceTerminal first, chat app on macOS and WindowsFull application on Windows, macOS and Linux
ArchitectureBackground service, command line and API, written in Go, official Docker imageDesktop application, lms command line, version without an interface (llmster)
Model sourceIts libraryHugging Face
Engines and formatsBased on llama.cpp, with its own engine for some modelsllama.cpp (GGUF), engines of your choice (processor, Vulkan, CUDA), MLX on Mac
Local APIOpenAI and Anthropic, port 11434OpenAI and Anthropic, port 1234

For the details of each, see my article on Ollama and my article on LM Studio.

Which one to choose

  • You are starting out and want an application with a window: LM Studio, checking that it runs well on your hardware (engine and number of threads).
  • You have a computer without a dedicated graphics card, or little memory: Ollama, faster and more economical in my test.
  • You want a server, a script, Docker or an open source tool: Ollama.
  • You have a Mac with an Apple chip: LM Studio can use MLX, Apple's library. I did not test it: it is up to you to compare.

Nothing prevents installing both: they read the same model files, as I did for this test. To know which model to pick for your hardware, the path that shows which model fits on your computer even estimates the speed.

The limits of this test

  • A single computer, without a dedicated graphics card: results on an NVIDIA or AMD card or on a Mac may be different.
  • The version of LM Studio tested is the one without an interface. The application with a window should use the same engine, but its default settings may not be the same.
  • Two models, two passes, four measurements per case: the order of magnitude is sound, the decimals less so.
  • This software evolves quickly: the figures hold for Ollama 0.35.1 and llmster 0.0.25, on October 6, 2026.

Official sources: Ollama's Anthropic compatibility, Claude Code with LM Studio and Ollama's pricing.

Going further
Which graphics card for local AI?
See the graphics card ranking