Ollama, LM Studio, llama.cpp or MLX?
Four programs to run a model: who each one is for, and which to choose.
These four programs run the same open models. They differ in simplicity, in how much control they give you and in the machines they target. All of them are free.
Ollama, the simplest way to start
An app for Mac and Windows with its own chat window, a command for Linux, a library of models you download with one word (ollama run ministral-3:8b) and a programming interface compatible with OpenAI’s. Its code is open (MIT license). It builds on llama.cpp and, on Mac, on MLX.
Who it is for: everyone, and especially beginners. Limit: fewer fine-grained settings than llama.cpp. Our guide Your first model in ten minutes starts with it.
LM Studio, all point and click
A real desktop app: you search for models on Hugging Face, download them, chat with them and compare them, without ever opening a terminal. It can also serve models to other applications, through an interface compatible with OpenAI’s. On Mac, it uses MLX as well as llama.cpp.
It runs on Apple silicon Macs (macOS 14 or later, not Intel Macs), on Windows and on Linux. It has been free for personal and work use since July 2025, but its code is not open.
Who it is for: those who prefer windows to the terminal, and those who want to try lots of models.
llama.cpp, the engine, for full control
It is the open-source engine (MIT license) that many other tools are built on, Ollama and LM Studio included. Used directly, it gives access to every setting and gets new features first. It installs with brew install llama.cpp on Mac and Linux, or winget install llama.cpp on Windows. A single command downloads a model from Hugging Face and starts a chat page, to open in your browser:
llama-server -hf ggml-org/gemma-3-4b-it-GGUF:Q4_K_M
Then open the address shown at startup. The same server also answers applications that speak OpenAI’s language. The Llama app, for Mac and Windows 11, also lets you use it without a terminal: it suggests models suited to your machine and opens the chat in your browser.
Who it is for: those who are comfortable with a terminal and want to tune everything, or to serve a model to other software.
MLX, built for Apple chips
MLX is Apple’s library for its chips, with open code (MIT license). Its mlx-lm package runs models converted to its format, which you can find in large numbers on Hugging Face, notably from mlx-community:
pip install mlx-lm
mlx_lm.chat --model mlx-community/Llama-3.1-8B-Instruct-4bit
If your Mac refuses the pip command, first create a separate Python environment: python3 -m venv ~/mlx, then source ~/mlx/bin/activate.
The mlx_lm.server command serves the model to other applications, through an interface close to OpenAI’s, which its authors advise against using in production.
Who it is for: Mac users who want the most out of their chip. Without a terminal, LM Studio offers the same engine.
What about vLLM?
You will come across this name too. vLLM targets servers with NVIDIA graphics cards that answer many users at once. For a personal computer, the four tools above are a better fit.
Our advice
| If you… | Choose |
|---|---|
| are just starting, on Mac, Windows or Linux | Ollama |
| prefer to do everything with the mouse and compare models | LM Studio |
| want to tune everything, or serve a model to other software | llama.cpp |
| are on a Mac and want the most out of your chip | MLX, or LM Studio, which uses it |
Nothing stops you from installing several: they can live side by side on the same machine. Other programs exist, such as Jan, GPT4All, Open WebUI or AnythingLLM: the software comparison puts them side by side. To choose a model, “Which AI for my machine?” tells you what fits on your machine.
