LM Studio vs Ollama: which local LLM app to use

Both download open-weight models and serve them on localhost. One is a desktop app with a server inside it, the other a server with a desktop app on top. Here is what that means in practice.

Type
Comparison
Last reviewed
November 29, 2026
Sources cited
19 sources ↓

The short answer

LM Studio and Ollama both run open-weight models on your own computer, both read GGUF files, use MLX on Apple Silicon, and expose OpenAI- and Anthropic-compatible endpoints that apps and coding agents can call. Most of the difference is where each one starts. LM Studio began as a desktop app for finding, configuring and chatting with models, and grew a CLI and a headless daemon. Ollama began as a command-line tool and background service, and grew a desktop chat app.

  • Choose LM Studio when you want to browse Hugging Face from inside the app, pick a quantization by eye, tune context length and GPU offload with sliders, and chat or test prompts in a full interface, including split view, document chat and MCP tools.
  • Choose Ollama when you want a fully open-source tool, models by short name from one library, a background service that apps and scripts can count on, or a Docker image and Modelfiles you can keep in a repository.
  • Choose neither when many people will use the server at once from datacenter GPUs. Both are built around one machine and a few users; our vLLM vs llama.cpp comparison covers what a throughput-first server does differently.

LM Studio and Ollama at a glance

LM StudioOllama
Made byElement LabsOllama
LicenseProprietary app, free for personal and work use; the lms CLI and the MLX engine are MIT-licensed on GitHubMIT, fully open source
InterfaceDesktop app first, with the lms CLI and the headless llmster daemonCLI and background service first, with a desktop app on macOS and Windows
Enginesllama.cpp for GGUF on every platform; MLX on Apple Silicon. Runtimes update separately from the appIts own engine on the ggml library; an MLX-based engine on Apple Silicon
Getting a modelDiscover tab or lms get, searching Hugging Face; lms import for a local GGUFollama pull by name from the ollama.com library, hf.co/<user>/<repo> from Hugging Face, or a Modelfile
SettingsModel loader in the app, per-model defaults and presets, or lms load flagsChosen for you; override in a Modelfile, per request, or with environment variables
Local serverPort 1234; OpenAI-compatible, Anthropic-compatible and its own REST APIPort 11434; its own API plus OpenAI- and Anthropic-compatible endpoints
macOSApple Silicon, macOS 14 or newer; Intel Macs not supportedmacOS 14 or newer; Apple Silicon with GPU, Intel on CPU only
Windows and LinuxWindows on x64 (AVX2) and Arm; Linux x64 and ARM64 as an AppImage, or llmster for serversWindows app; Linux install script; official Docker image
CloudNone for inference; models run on your machineOptional cloud-hosted models, used only if you sign in and pick one

Both projects ship often and their defaults move. Check the LM Studio docs and the Ollama docs for the version you have installed.

What actually runs your model

LM Studio runs models on llama.cpp and, on Apple Silicon Macs, also on Apple's MLX. It packages each as an "LM Runtime" that you can update independently of the app, from the runtime manager (Cmd/Ctrl + Shift + R) or with lms runtime update llama.cpp and lms runtime update mlx. A GGUF file goes to llama.cpp; an MLX-format model goes to MLX. LM Studio's MLX engine is published on GitHub under the MIT license.

Ollama started out running models through llama.cpp and has since moved to an engine of its own, built in Go on the ggml tensor library, with an MLX-based engine on Apple Silicon that first shipped as a preview in 2026. Our Ollama vs llama.cpp comparison covers that history in detail.

So the same GGUF file can run on different code in the two apps, and support for a brand-new model architecture can reach one before the other. If a model you want is days old, check both projects' release notes before assuming either will load it.

Finding and downloading models

LM Studio's Discover tab searches Hugging Face directly: type a keyword, a user/model name or a full Hugging Face URL, then choose one of the listed quantizations (Q4_K_M, Q8_0 and so on). LM Studio's own docs suggest a 4-bit option or higher when your machine can run it. The same thing works from a terminal:

lms get llama-3.1-8b
lms get llama-3.1-8b@q4_k_m
lms get --mlx          # only MLX builds
lms import ./model.gguf  # a file you downloaded yourself

Downloads land in ~/.lmstudio/models/<publisher>/<model>/, mirroring the Hugging Face layout, so you can also drop files there by hand.

Ollama names models by name and tag from its own library, and the library decides which quantization each tag is. Any GGUF repository on Hugging Face also works by path, and a Modelfile turns your own file plus a system prompt and parameters into a named model:

ollama run llama3.2
ollama run hf.co/<user>/<repo>:Q4_K_M

# Modelfile
FROM ./my-model.gguf
PARAMETER num_ctx 16384

ollama create my-model -f Modelfile

A Modelfile is a small text file you can check into a repository, which makes Ollama setups easy to reproduce on another machine. LM Studio's equivalent is its presets, which save load and inference settings and can be shared through the LM Studio Hub. Whichever you use, a lower-bit file saves memory at some cost in accuracy; our GPTQ vs AWQ comparison explains the trade-offs behind weight quantization.

Running a local server for apps and agents

Both work as a drop-in local endpoint for tools that speak the OpenAI or Anthropic API. Change the base URL and keep the rest of your client code:

LM StudioOllama
OpenAI base URLhttp://localhost:1234/v1http://localhost:11434/v1
Anthropic base URLhttp://localhost:1234http://localhost:11434
Start itDeveloper tab in the app, or lms server startRuns whenever the app or service is running; ollama serve otherwise
Listen beyond localhostlms server start --bind 0.0.0.0 (localhost only by default)Set OLLAMA_HOST (default 127.0.0.1:11434)
Without a desktopllmster: install with the script, start with lms daemon upThe Linux service or the Docker image

LM Studio's server is part of the app, so on a desktop it runs while the app does, or in the background if you tick "run the LLM server on login" in settings. Since LM Studio 0.4.0 (January 2026) the same core also ships as llmster, a daemon with no GUI for Linux boxes, cloud instances and CI:

curl -fsSL https://lmstudio.ai/install.sh | bash
lms daemon up
lms get openai/gpt-oss-20b
lms server start

LM Studio can require an API token on its server, and its docs recommend turning that on before binding to anything other than 127.0.0.1. Ollama's local server has no built-in authentication; if you expose it beyond your machine, put it behind a proxy or firewall that controls who can reach it.

Context, memory and model loading

The settings that most change how either app behaves are context length, GPU offload and how long a model stays in memory. The two handle them very differently.

  • Context length and GPU offload. In LM Studio you set both in the model loader before loading, or with lms load <model> --context-length 16384 --gpu max, and lms load --estimate-only prints a memory estimate without loading anything. Ollama picks a default context for you (its current docs tie it to available VRAM) and decides how many layers fit on the GPU; raise context with num_ctx or OLLAMA_CONTEXT_LENGTH, and check the CPU/GPU split with ollama ps. If long prompts seem forgotten in Ollama, check the context setting first.
  • Loading on demand. LM Studio's just-in-time loading (on by default) loads a model the first time an API request names it. Models loaded that way unload after 60 minutes idle by default, and auto-evict unloads the previous JIT model before loading the next. Models you load yourself with lms load stay until you unload them, unless you pass --ttl.
  • Ollama's keep-alive. Ollama loads models on request too, keeps each one for five minutes after its last request, then unloads it. Change that with keep_alive per request or OLLAMA_KEEP_ALIVE; -1 keeps it loaded.

The practical upshot: with default settings, a coding agent that calls Ollama after a coffee break pays the model load time again, while LM Studio keeps a JIT-loaded model warm for an hour but also holds that memory for an hour. Set the timeout that suits how you work.

Parallel requests and several models

LM Studio 0.4.0 added parallel requests through llama.cpp's continuous batching. The "Max Concurrent Predictions" load option defaults to 4, and a unified KV cache, on by default, lets those requests share memory instead of splitting it evenly. It needs the llama.cpp runtime at version 2.0.0 or later. At the time of writing LM Studio's docs say MLX support for parallel requests is still to come, so check the parallel requests page if you run MLX models.

Ollama's OLLAMA_NUM_PARALLEL sets how many requests one model handles at once and defaults to 1 on most backends, so a second request queues until the first finishes. OLLAMA_MAX_LOADED_MODELS caps how many different models stay loaded (three per GPU by default, if they fit). Raising either costs memory.

If several tools or teammates hit the same machine at once, these defaults matter more than any speed difference between the engines. Neither app is designed for dozens of simultaneous users; for that, see our vLLM architecture and PagedAttention internals piece.

Inside the apps: chat, documents, tools

LM Studio's interface is the more complete workbench. It chats with documents locally, connects MCP servers so local models can call tools, opens chats side by side in split view, exports chats, and exposes prompt templates, per-model defaults and presets. In Power User mode it also offers speculative decoding: pick a smaller draft model that shares the main model's vocabulary, such as a 1B model of the same family drafting for an 8B one. Our speculative decoding piece explains when that speeds things up and when it does not.

Ollama's desktop app, released for macOS and Windows in July 2025, is a simpler chat window: pick a model, chat, drop in text or PDF files, send images to models that accept them, and raise the context length in settings. Most of Ollama's control lives in the CLI, Modelfiles, environment variables and the API.

On privacy, LM Studio's docs say chatting, document chat and the local server work entirely offline once models are downloaded; only searching and downloading need the internet. Ollama runs local models locally too, and also offers cloud-hosted models that you use only if you sign in and choose them.

Which to pick for your situation

You want toStart withWhy
Try local models without touching a terminalLM StudioSearch, download, configure and chat all happen in one app
Compare quantizations of one model before choosingLM StudioThe download list shows every quantization in a Hugging Face repository side by side
Use only open-source softwareOllamaOllama is MIT-licensed; the LM Studio app itself is not open source
Run on an Intel MacOllamaLM Studio requires Apple Silicon; Ollama runs on Intel Macs, on the CPU only
Back a coding agent, editor plugin or script with a local endpointEitherBoth serve OpenAI- and Anthropic-compatible APIs; check which one your tool lists as a provider
Serve a few people from one GPU boxEither; check defaultsLM Studio allows 4 parallel requests per model by default; Ollama queues after 1 unless you raise OLLAMA_NUM_PARALLEL
Script setups you can rebuild on any machineOllamaModelfiles, environment variables and an official Docker image
Give local models tools through MCPLM StudioIt acts as an MCP client inside the app
Serve many concurrent users from datacenter GPUsNeitherUse a throughput-oriented server; see vLLM vs llama.cpp

How to compare them on your machine

Published speed comparisons between the two rarely use the same model file, context length, GPU offload and engine version, so treat them as hints. For a fair test, load the same model at the same quantization in both, set the same context length, make sure both offload every layer to the GPU (or the same number of layers), and run one request at a time before testing parallel load.

ollama run --verbose prints prompt and generation speed after each answer, and LM Studio shows generation stats under each reply in its chat view. To test the servers the way your app will use them, point the same OpenAI client at each base URL and change nothing else:

lms load <model> --context-length 8192 --gpu max
lms server start
# client base URL: http://localhost:1234/v1

ollama run --verbose <model>
# client base URL: http://localhost:11434/v1

Measure time to first token and tokens per second at the prompt lengths you actually send. Flags and defaults change between releases; check lms --help, the LM Studio CLI docs and the Ollama FAQ for your version.

Sources

  1. LM Studio documentation
  2. LM Studio docs: LM Studio, llmster and lms
  3. LM Studio docs: system requirements
  4. LM Studio docs: parallel requests
  5. LM Studio docs: idle TTL and auto-evict
  6. LM Studio docs: headless mode and llmster
  7. LM Studio docs: OpenAI compatibility
  8. LM Studio docs: Anthropic compatibility
  9. LM Studio docs: offline operation
  10. LM Studio docs: speculative decoding
  11. LM Studio blog: Introducing LM Studio 0.4.0 (January 2026)
  12. LM Studio blog: LM Studio is free for use at work (July 2025)
  13. lmstudio-ai/mlx-engine on GitHub
  14. Ollama documentation
  15. Ollama FAQ: context, concurrency, keep-alive and network access
  16. Ollama docs: macOS
  17. Ollama docs: Anthropic compatibility
  18. Ollama blog: Ollama's new app (July 2025)
  19. Ollama on GitHub