Skip to content

Ollama vs LM Studio vs llama.cpp vs vLLM

Four free ways to run open models on your own hardware. Ollama and llama.cpp are MIT-licensed command-line tools, LM Studio is a free desktop app, and vLLM is an Apache-licensed Python server. Every row below restates each project’s own documentation, read 25 November 2026.

Side by side

FeatureOllamaLM Studiollama.cppvLLM
What it isA command-line tool and local server for running open models, with its own model library at ollama.com/library.A desktop app for downloading and chatting with models, with a local server for developers.An LLM inference engine in C/C++ built on the ggml library, with a CLI, a server and a built-in chat app (Llama Chat).A Python library and server for LLM inference and serving, started at UC Berkeley’s Sky Computing Lab.
LicenseMITClosed-source app, free to use at home and at work; its terms license it for personal and internal business use.MITApache 2.0
Operating systemsmacOS, Windows, Linux; official Docker image ollama/ollama.macOS on Apple Silicon (macOS 14+), Windows on x64 (AVX2 required) and ARM, Linux on x64 and ARM64 (AppImage).Install scripts for macOS/Linux (curl) and Windows (PowerShell), pre-built binaries, Docker, and a build guide for Android.Linux (Python 3.11-3.14). Not supported natively on Windows (WSL works); macOS through vLLM-Metal on Apple Silicon.
Model formatsModels from its library; imports GGUF and Safetensors through a Modelfile. Does not quantize GGUF on import.GGUF through its llama.cpp runtime; MLX models on Apple Silicon Macs.GGUF, downloadable straight from Hugging Face with -hf.Hugging Face models, 200+ architectures; quantized formats including FP8, INT8, INT4, GPTQ/AWQ and GGUF.
HardwareNVIDIA GPUs with compute capability 5.0+ (driver 550+), AMD Radeon through ROCm v7, Apple GPUs through Metal, and Vulkan.Runs on the llama.cpp and MLX runtimes. Recommends 16 GB+ RAM, and at least 4 GB of dedicated VRAM on Windows.CPU (with BLAS options), Apple Metal, NVIDIA CUDA, AMD HIP, Vulkan, SYCL, MUSA and CANN backends, and multi-GPU splitting.NVIDIA, AMD and Intel GPUs; x86, ARM and PowerPC CPUs; plugins for Google TPUs, Intel Gaudi, Huawei Ascend, Apple Silicon and others.
API and default addressOwn REST API plus OpenAI-compatible /v1 routes (chat completions, responses) at http://localhost:11434.OpenAI-compatible API; the docs’ examples use http://localhost:1234/v1.Server with OpenAI-compatible chat completions, responses and embeddings routes, listening on 127.0.0.1:9931 by default.OpenAI-compatible server, plus Anthropic Messages API and gRPC, at http://localhost:8000. Hosts one model at a time.
Serving many usersNot stated in the docs read.Not stated in the docs read.Server lists parallel decoding with multi-user support and continuous batching.PagedAttention, continuous batching, prefix caching, and tensor, pipeline, data and expert parallelism.

Ollama

A command-line tool and local server for running open models, with its own model library at ollama.com/library.

curl -fsSL https://ollama.com/install.sh | sh   # macOS, Linux
irm https://ollama.com/install.ps1 | iex      # Windows PowerShell

How to install Ollama · Sources: Ollama README, Hardware support, OpenAI compatibility, Importing a model

LM Studio

A desktop app for downloading and chatting with models, with a local server for developers.

Download the installer from lmstudio.ai

How to install LM Studio · Sources: LM Studio docs, System requirements, OpenAI compatibility, LM Studio is free for use at work, App terms

llama.cpp

An LLM inference engine in C/C++ built on the ggml library, with a CLI, a server and a built-in chat app (Llama Chat).

curl -LsSf https://llama.app/install.sh | sh   # macOS, Linux
irm https://llama.app/install.ps1 | iex       # Windows PowerShell

How to install llama.cpp · Sources: llama.cpp README, Build guide (backends), Server README

vLLM

A Python library and server for LLM inference and serving, started at UC Berkeley’s Sky Computing Lab.

uv pip install vllm

Sources: vLLM README, Quickstart, GPU installation

Frequently asked questions

What is the difference between Ollama and llama.cpp?+

llama.cpp is the C/C++ inference engine; it runs GGUF models through its own CLI and server. Ollama is a separate tool with its own model library, a REST API on port 11434 and OpenAI-compatible routes, and it imports GGUF and Safetensors models. Both are MIT-licensed.

Is LM Studio free?+

Yes. LM Studio announced it is free to use both at home and at work. It is not open source: its terms license the app for personal and internal business use and forbid modifying it.

Does vLLM run on Windows or Mac?+

vLLM’s docs list Linux as the supported OS and state it does not support Windows natively; it can run under the Windows Subsystem for Linux. On Apple Silicon Macs it runs through the separate vLLM-Metal project.

Which of these have an OpenAI-compatible API?+

All four. By default Ollama serves it at localhost:11434/v1, LM Studio’s examples use localhost:1234/v1, llama.cpp’s server listens on 127.0.0.1:9931 and vLLM serves at localhost:8000.

Which ones run GGUF models?+

llama.cpp runs GGUF natively, LM Studio runs GGUF through its llama.cpp runtime, Ollama imports GGUF files through a Modelfile, and vLLM lists GGUF among its supported quantization formats.

Related: how to run an LLM locally · local LLM hardware requirements · running open models with llama.cpp, Ollama and vLLM · vLLM vs SGLang vs TensorRT-LLM