Topic 1 of 6 · 5 min read
Choosing a local runner for your setup
Goal: Pick a local runner for a given operating system, GPU and use case and justify the choice in two sentences.
A local runner is the program that loads a model file into memory and answers requests; pick it by your hardware, your workflow and the model format you need, not by popularity.
Check yourself · 1 of 3
Which runner runs models in the MLX format?
Why it matters
The same open-weight model behaves differently in different runners: speed, memory use, the chat template applied and the API you can call all change. Picking the wrong runner costs you an evening of setup, or leaves a fast GPU idle.
The six you will meet
- Ollama is a command-line tool and background service.
ollama pullfetches a model,ollama runchats, and it serves an HTTP API on port 11434. Best default for developers who want something scriptable fast. Runs on macOS, Linux and Windows. - LM Studio is a desktop app with a model browser, sliders for GPU offload and context, and a built-in server. Best when you want to explore models and see settings.
- llama.cpp is the C/C++ engine under many other tools. You get
llama-cliandllama-server, GGUF files, and every flag. Best for control, odd hardware (CUDA, Metal, Vulkan, CPU only) and servers you tune yourself. - MLX-LM runs models in Apple's MLX format on Apple silicon only. Best on a Mac when you want that format.
- Jan is an open-source desktop chat app, similar in role to LM Studio.
- vLLM is a serving engine for GPU machines, built for many users at once. It is not a laptop tool; choose it when several people or services hit one model.
How to choose
- Platform and GPU. NVIDIA, AMD, Apple silicon or CPU only? MLX-LM needs a Mac.
- Who uses it. Just you, a script, a team?
- Format. Most downloads for desktop tools are GGUF. Server stacks usually load Hugging Face safetensors.
- API. Ollama, LM Studio, llama-server and vLLM all expose an OpenAI-style endpoint, so your client code can stay the same when you swap runners.
Before and after
Weak: "I read Ollama is popular, so I installed it on our shared 4-GPU Linux box for the whole team."
Better: "Eight people will call one model concurrently from CI and editors, on Linux with NVIDIA GPUs. vLLM is built for that load; Ollama stays on each developer's laptop for experiments."
What goes wrong
- Choosing by a benchmark post. Speed numbers depend on the quantization, the context and the GPU, so they rarely transfer to your machine.
- Assuming one model file works everywhere. A GGUF will not load in vLLM by default, and an MLX model will not load in Ollama.
- Ignoring the template. Runners apply chat templates differently, so the same model can answer worse in one tool.
Examples
Decision table
| Situation | Runner | Reason |
|---|---|---|
| Mac laptop, solo, want a quick chat | Ollama or LM Studio | one install, models download inside the tool |
| Mac, want MLX weights | MLX-LM | native MLX format on Apple silicon |
| Windows with an NVIDIA card, tuning flags | llama.cpp | CUDA build and every flag exposed |
| Linux GPU box serving a team | vLLM | built for many concurrent requests |
Same client, two runners
from openai import OpenAI
# Ollama
client = OpenAI(base_url="http://localhost:11434/v1", api_key="unused")
# llama-server
# client = OpenAI(base_url="http://localhost:8080/v1", api_key="unused")
Only the base URL changes. That is why the API matters more than the brand when you pick.
Key points
- Choose a runner by platform, GPU, number of users and model format, not by popularity.
- Ollama is the quickest scriptable start, LM Studio and Jan suit exploring in a desktop app, and llama.cpp gives full control.
- MLX-LM runs only on Apple silicon; vLLM targets GPU servers with many concurrent users.
- Most local runners expose an OpenAI-style API, so client code moves between them with little change.
- A model file format must match the runner: GGUF for llama.cpp-based tools, MLX for MLX-LM, safetensors for vLLM.
Common mistakes
- Installing the most popular tool without checking that it supports your GPU.
- Downloading a model in a format the chosen runner cannot load.
- Putting a laptop-oriented tool behind a service that many users call at once.
- Comparing runners by someone else's speed numbers instead of timing your own prompts.
Check yourself · 2 of 3
Twelve developers' CI jobs will call one self-hosted model on a Linux server with NVIDIA GPUs. Which runner fits best?
Check yourself · 3 of 3
Your app calls an OpenAI-compatible endpoint. You switch from Ollama to llama-server. What must change in the client?
Practice items, not counted towards your mastery.
Start here
- Ollama documentation (opens in a new tab)DocsFree
Install steps, the Modelfile format, context length and the local API in one place.
- LM Studio docs (opens in a new tab)DocsFree
How the desktop app downloads models, sets GPU offload and serves a local API.
- llama.cpp (opens in a new tab)ToolFree
The reference runtime for GGUF files: build options, llama-cli and llama-server flags.
More for this topic
- vLLM documentation (opens in a new tab)DocsFree
The server-grade runner for GPUs: what it supports and when it replaces a desktop tool.