Skip to content
mentoor

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?

Choose one answer

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 pull fetches a model, ollama run chats, 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-cli and llama-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

  1. Platform and GPU. NVIDIA, AMD, Apple silicon or CPU only? MLX-LM needs a Mac.
  2. Who uses it. Just you, a script, a team?
  3. Format. Most downloads for desktop tools are GGUF. Server stacks usually load Hugging Face safetensors.
  4. 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?

Choose one answer

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?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic