llama.cpp vs LM Studio: which should you run local models with?
updated · #1 vs #3 in local models · prices checked
which one should you use?
want the fastest local inference, an MIT licence and a server you can drop on any box? llama.cpp, and it ranks higher on our board. want a desktop app to find, test and serve models without touching a build flag? LM Studio, which runs llama.cpp under the hood anyway.
llama.cpp ranks higher on our board: #1 vs #3 of 3 local models, 9.0/10 vs 7.5/10.
#1 of 3 in local models
llama.cpp
numptr says9.0/10
the engine everyone else is quietly running. fastest of the lot once you've set it up right.
- best for
- devs who want the fastest local inference and full control of the build
- why 9.0
- fastest of the three runners in two independent tests (Mozilla.ai, sep 2026; InventiveHQ, jun 2026), MIT and free for good. expect an afternoon of build flags, mind.
#3 of 3 in local models
LM Studio
numptr says7.5/10
local models with a proper app on top. point, click, chat, serve. lovely.
- best for
- devs who want a GUI for local models plus a local API for their app
- why 7.5
- Free, with a local server that talks OpenAI. independent tests had it level with llama.cpp on an NVIDIA card but 29% behind on a Mac, and the app itself isn't open source.
who wins for which job
raw speed and full control of the build
llama.cpp
best for: devs who want the fastest local inference and full control of the build.
a GUI for local models plus a local API
LM Studio
best for: devs who want a GUI for local models plus a local API for their app.
overall, on our scores
llama.cpp
#1 of 3 local models, 9.0/10. LM Studio: #3, 7.5/10.
the differences, side by side
rank
llama.cpp#1 of 3 in local models
LM Studio#3 of 3 in local models
numptr score
llama.cpp9.0/10
LM Studio7.5/10
best for
llama.cppdevs who want the fastest local inference and full control of the build
LM Studiodevs who want a GUI for local models plus a local API for their app
free tier
llama.cppfree and open source (MIT); no account, no paid tier
LM Studiorun local models via llama.cpp and MLX, Bionic Agent, limited web search
paid plans
llama.cppfree (MIT): you run it on your own hardware
LM StudioFree $0; Bionic+ $20/mo (US-hosted open models, web search); Pro $100/mo (5x usage limits)
price checked
llama.cpp2026-11-27 at github.com/ggml-org/llama.cpp
LM Studio2026-11-27 at lmstudio.ai/pricing
# straight from our rankings data. prices from each vendor's own page.
pick neither if
quick answer: llama.cpp vs LM Studio is the engine vs the car built round it. llama.cpp is #1 of 3 on our local models board (9.0/10): the fastest runner in the independent tests in our data, MIT licensed, and llama serve gives your code an OpenAI- and Anthropic-compatible API on any box you like. LM Studio is #3 (7.5/10): a desktop app for finding, downloading and chatting with models via llama.cpp and Apple's MLX, with a local server on top. both are free for local use. as of nov 27, 2026.
the short version
| llama.cpp | LM Studio | |
|---|---|---|
| our rank | #1, 9.0/10 | #3, 7.5/10 |
| what it is | the C/C++ inference engine, with llama cli, llama serve and a built-in chat app (llama chat) |
a desktop app for local models, plus the lms CLI and a headless daemon (llmster) |
| licence | MIT, the whole project | the lms CLI and the TypeScript and Python SDKs are MIT; the app's source is closed |
| engines | its own (metal on by default on macOS, plus CUDA, HIP, vulkan, SYCL and more) | llama.cpp (GGUF) everywhere, plus MLX on Apple silicon Macs |
| local API | llama serve: OpenAI-compatible chat completions, responses and embeddings, Anthropic Messages, reranking; port 9931 by default |
localhost:1234 by default: its own REST API, OpenAI-compatible responses, chat completions and embeddings, Anthropic Messages |
| free | free and open source (MIT); no account, no paid tier | run local models via llama.cpp and MLX, Bionic Agent, limited web search |
| paid bit | none | only cloud models and extras: Bionic+ $20 a month, Pro $100 a month |
ranks and scores come straight from our local models board, and nobody pays to move up it.
why llama.cpp comes out on top
it's the fastest of the lot. two independent tests recorded in our data (Mozilla.ai, september 2026; InventiveHQ, june 2026) had llama.cpp ahead of the other local runners. LM Studio was level with it on an NVIDIA card, but 29% behind on a Mac.
a proper server, not a side feature. llama serve handles parallel requests with continuous batching, does function calling, has an API key option, and in router mode it'll keep several models loaded and swap them in and out (4 at once by default). that's what you want behind an app or an agent that's hammering it all day.
it runs anywhere you can compile it. metal is on by default on macOS, and there are CUDA, HIP, vulkan and SYCL backends for everything else. pull a GGUF straight from Hugging Face with -hf, or install with one line from llama.app, Docker or the pre-built binaries.
MIT, no strings. no account, no paid tier, and you can ship it inside your own product. LM Studio's terms license the app for personal and internal business use, which is fine on your laptop and less fine baked into something you sell.
the honest bit: you pay in time, not money. picking build options, quant types and flags is on you. as our score note puts it: expect an afternoon of build flags.
where LM Studio wins
you can see what you're doing. search for models, download them, chat with them and compare them, all in one app. if you're still working out which model fits your RAM and your job, that beats juggling flags in a terminal.
MLX on a Mac. on Apple silicon LM Studio can run models with Apple's MLX as well as llama.cpp, so you can try both engines on the same machine without building anything. that's the "metal llama.cpp vs lm studio mlx" question. on a Mac, the tests in our data still had llama.cpp in front.
the server comes with the app. lms server start (port 1234 by default) gives you LM Studio's own REST API, OpenAI-compatible endpoints and an Anthropic-compatible Messages endpoint, plus first-party TypeScript (lmstudio-js) and Python (lmstudio-python) SDKs, MCP via the API and idle auto-evict for models you're not using.
headless when you need it. llmster is LM Studio's core packaged as a daemon for servers, cloud boxes or CI, and it doesn't need the GUI. so "lm studio vs llama.cpp server" is closer than it used to be.
the catch: the app isn't open source (its terms call the source code a trade secret), it's the slower of the two on a Mac in our data, and the paid plans are about cloud models, not local ones: Free $0, Bionic+ $20 a month, Pro $100 a month, as LM Studio's pricing page showed them tonight.
which should you pick?
- serving a local model to an app or an agent all day: llama.cpp
- chasing every last token per second, especially on a Mac: llama.cpp
- shipping a local model inside your own product: llama.cpp, for the MIT licence
- browsing, downloading and testing models in a GUI: LM Studio
- trying MLX against llama.cpp on Apple silicon without a build: LM Studio
- one command and an API, with less faff than either: Ollama is #2 (8.5/10). see Ollama vs llama.cpp and LM Studio vs Ollama
- a coding agent on local models: either, behind OpenCode or Cline
the rest of the field
the table: the rest of the field
| rank | tool | best for | free tier | paid from | numptr score |
|---|---|---|---|---|---|
| #1 | llama.cpp | devs who want the fastest local inference and full control of the build | free and open source (MIT); no account, no paid tier | free: you run it on your own hardware | 9.0/10 |
| #3 | LM Studio | devs who want a GUI for local models plus a local API for their app | run local models via llama.cpp and MLX, Bionic Agent, limited web search | Free $0 | 7.5/10 |
| #2 | Ollama | devs who want local models running in minutes behind a simple API | run models locally for free with no limits; cloud models are pay as you go, per token, from $0 | pay as you go $0 | 8.5/10 |
faq
is llama.cpp better than LM Studio?
on our board, yes: llama.cpp is #1 (9.0/10) and LM Studio #3 (7.5/10). llama.cpp wins on speed, licence and serving; LM Studio wins if you want an app to find and test models.
is llama.cpp faster than LM Studio?
in the independent tests recorded in our data, llama.cpp was the fastest of the local runners. LM Studio matched it on an NVIDIA card and was 29% behind on a Mac. your hardware and settings will move those numbers.
does LM Studio use llama.cpp?
yes. LM Studio runs GGUF models via llama.cpp on Mac, Windows and Linux, and on Apple silicon Macs it can also use MLX.
llama.cpp vs LM Studio on a Mac?
both use the GPU: metal is on by default in llama.cpp on macOS, and LM Studio adds MLX on Apple silicon. llama.cpp was quicker on a Mac in the tests in our data. LM Studio is the easier one to set up.
are llama.cpp and LM Studio free?
yes, both are free for running models on your own machine. llama.cpp has no paid tier at all; LM Studio's paid plans (Bionic+ $20 a month, Pro $100 a month) add US-hosted cloud models and extras.
is LM Studio open source?
not the app. its lms CLI and its TypeScript and Python SDKs are MIT licensed on GitHub. llama.cpp is MIT licensed as a whole.
sources
checked 2026-11-27, ~12:38-12:45 AM ET; lmstudio.ai and GitHub pages rendered in headless chrome, licences via the GitHub API
- llama.cpp README ("LLM inference in C/C++", MIT license, install via llama.app, Docker, pre-built binaries or from source; `llama cli -hf ...` and "launch OpenAI-compatible API server: llama serve -hf ..."; latest release v1.1.0, nov 26, 2026): https://github.com/ggml-org/llama.cpp
- llama.cpp server README (OpenAI API compatible chat completions, responses and embeddings routes, Anthropic Messages API, reranking endpoint, parallel decoding with multi-user support, continuous batching, function calling, llama chat built-in app; `--port` default 9931, `--host` default 127.0.0.1, `--api-key`, router server `--models-max` default 4): https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md
- llama.cpp build guide ("on MacOS, metal is enabled by default"; CUDA, HIP, vulkan, SYCL builds): https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md
- LM Studio pricing (Free $0: Bionic Agent, "run local LLMs using llama.cpp and MLX", LM Link for up to 5 devices, limited web search; Bionic+ $20/mo: US-hosted open source models, web search; Pro $100/mo: 5x usage limits): https://lmstudio.ai/pricing
- LM Studio system requirements (macOS, Windows and Linux; llama.cpp (GGUF) models everywhere, MLX on Apple silicon Macs): https://lmstudio.ai/docs/app
- LM Studio developer docs (lmstudio-js, lmstudio-python, REST API, OpenAI-, Anthropic-compatible endpoints, MCP via API, idle TTL and auto-evict, lms CLI; "llmster is LM Studio's core, packaged as a daemon for headless deployment ... not dependent on the LM Studio GUI"): https://lmstudio.ai/docs/developer
- LM Studio OpenAI compatibility docs (/v1/responses, chat completions, embeddings, models; examples on port 1234): https://lmstudio.ai/docs/developer/openai-compat
- LM Studio terms (licence "solely for your personal and / or internal business purposes"; "the software and its structure, organization, and source code constitute valuable trade secrets"): https://lmstudio.ai/terms
- LM Studio CLI and SDK licences (MIT, via the GitHub API): https://github.com/lmstudio-ai/lms, https://github.com/lmstudio-ai/lmstudio-js and https://github.com/lmstudio-ai/lmstudio-python
- speed tests as recorded in our data: https://blog.mozilla.ai/benchmarking-local-llm-servers-llama-cpp-llamafile-lm-studio-and-ollama/ and https://inventivehq.com/blog/ollama-vs-lm-studio-vs-llama-cpp
- ranks, scores, verdicts and free tiers: numptr data/tools.json (local models board)