Home / use case

LM Studio vs Ollama on an RTX 5080: memory settings mattered more than the app

At a glance
Hardware
RTX 5080 16 GB on Windows 11, NVIDIA driver 610.88
Models & engines
Ollama 0.32.15 and LM Studio 0.4.21 with llama.cpp CUDA runtime 2.29.1
Llama 3.2 3B Q4_K_M, Qwen 2.5 14B Q4_K_M and gpt-oss 20B MXFP4
Key gotcha
LM Studio did not warn that automatic offload had left part of the model on the CPU.

What they built

LK Wood IV benchmarked LM Studio and Ollama side by side on one Windows 11 PC with an RTX 5080, loading the same hash-verified GGUF files wherever the formats allowed. The goal was to settle which wrapper is faster, and the answer turned out to be that the settings matter more than the app.

Process captures showed llama-server serving the model on both sides: Ollama runs its own vendored build and LM Studio downloads its own llama.cpp runtime. That shared engine explains why the dense-model results landed close together.

The post ends with a plain recommendation: use Ollama when the model is infrastructure (a background service, an API, a Docker stack) and LM Studio when it is an interactive appliance with a model browser, chat and per-model controls.

Setup

  • RTX 5080 16 GB on Windows 11, NVIDIA driver 610.88
  • Ollama 0.32.15 and LM Studio 0.4.21 with llama.cpp CUDA runtime 2.29.1
  • Llama 3.2 3B Q4_K_M, Qwen 2.5 14B Q4_K_M and gpt-oss 20B MXFP4
  • Context length 4,096, full GPU offload, temperature 0, seed 42, one serving slot, five runs per decode cell

How it works

  1. Both apps loaded identical GGUF files for Llama 3.2 3B and Qwen 2.5 14B; LM Studio imported Ollama's blobs directly with its hard-link option.
  2. Decode speed, prompt prefill speed and GPU memory were recorded for each model in each app.
  3. When a result looked off, the author changed one setting at a time to isolate the cause.

Results & numbers

  • Ollama decoded the two dense models 5-11% faster (Llama 3.2 3B: 350.5 vs 316.0 tok/s); LM Studio prefilled every tested model 5-14% faster.
  • gpt-oss 20B ran at 242.8 tok/s in LM Studio and 213.7 in Ollama, but that was not an identical-file comparison.
  • LM Studio's automatic GPU offload held part of gpt-oss on the CPU and ran it at about 186 tok/s; moving only the offload slider gave 244.9 tok/s.
  • A leftover 256k context setting in Ollama grew Llama 3.2 3B's footprint to about 18 GB split across RAM and VRAM, dropping decode from about 351 to 102 tok/s.
  • GPU memory differed by under 50 MiB on identical files; idle, Ollama's service used 78-132 MB of RAM and LM Studio's GUI and server 709-928 MB.
  • Ollama's Llama 3.2 3B result moved from roughly 319 to 351 tok/s across fourteen patch releases in six days.

Gotchas

  • LM Studio did not warn that automatic offload had left part of the model on the CPU.
  • Ollama clamped the oversized context to the model's 131,072-token maximum and kept running, just much slower.
  • LM Studio's upstream runtime rejected Ollama's gpt-oss blob (tagged with Ollama's own gptoss architecture), so that model needed the ggml-org GGUF.
  • A benchmark without app and runtime versions is only a snapshot.
“The application gap was at most 14%. A wrong memory setting was worth up to 240%.”— LK Wood IV

Do it yourself

  1. Pick by workflow: Ollama for a background service or API, LM Studio for a GUI with per-model controls; both can coexist on ports 11434 and 1234.
  2. In LM Studio, check that automatic GPU offload hasn't left layers on the CPU.
  3. If Ollama is unexpectedly slow, check the configured context length and run ollama ps to confirm the model and KV cache aren't spilling into system RAM.
  4. Retest with the context length your workload actually needs.
  5. Share GGUF files between the two by importing Ollama blobs into LM Studio with the hard-link option, and record app and runtime versions with every benchmark.
Source: LK Wood IV (DEV Community) · Published 2026-10-31 · Added 2026-11-01. This write-up summarizes the original source; see it for full details.

Similar setups

A copy-paste path to a local OpenAI-compatible LLM endpoint with LM Studio, Ollama, or llama.cpp

Mikalai Karytka’s Nov 2026 guide walks through installing LM Studio’s lms CLI (plus Ollama and llama.cpp equivalents), sizing RAM for a quantized model, serving an OpenAI-compatible API, and checking tool-calling before you build agents on top.

Mikalai Karytka (DEV.to) · 2026-11-05

L.A.T.E.: a local tool engine where code plans and a 3B model only writes

A Node.js engine plugs into Ollama, LM Studio or any OpenAI-compatible API and lets rules plan multi-step jobs and tools verify them, so a small model like qwen2.5:3b can't skip steps or fake success.

DEV Community (Ishx.dev) · 2026-11-23

Two Qwen Code sessions on one Ollama slot waited 46 seconds; a slot each waited one

Tensward ran two Qwen Code sessions against Qwen3.8-27B on a 24 GB L4 and found that sharing one Ollama slot raised the median wait for a response to start from about one second to 46.

Tensward · 2026-11-19

Running a 35B MoE model on a laptop with a 4 GB GTX 1650: measured, not guessed

Nabil Doghri ran Qwen3.6-35B-A3B (Q4_K_M) through Ollama on a GTX 1650 Max-Q laptop and measured about 21-22 tokens per second once loaded, with most of the 23 GB model sitting in system RAM.

Nabil Doghri on DEV (in French) · 2026-11-18