Ollama, llama.cpp and LiteRT-LM Are Not Substitutes

Key Takeaways
- •llama.cpp serves as the low-level C++ inference engine with direct support for custom quantization kernels (GGUF).
- •Ollama packages llama.cpp into a developer-friendly Docker-like CLI with automated model pull and background daemon management.
- •LiteRT-LM targets on-device mobile hardware (NPU/GPU) using TensorFlow Lite runtimes with strict thermal throttling.
Ollama published version 0.40.17-rc0 on 10 November 2026 with changes including concurrent MLX generation and memory-mapped model handling for Vulkan integrated graphics. llama.cpp published build b12283 on 11 November. LiteRT-LM added multimodal GPU support on 5 November.
Three releases in six days, and the temptation is to read them as competing options. They are not. Each solves a different part of the problem that begins when you have downloaded a model file and want it to produce text.
Five layers, and who fills them
Running a local model involves five layers, and understanding which tool covers which explains the whole comparison.
The checkpoint is the weights and the architecture description, in a format such as GGUF or safetensors.
The tokenizer converts text into token identifiers and back. It must match the checkpoint's vocabulary or the output is nonsense.
The runtime executes the operations. It provides kernels for matrix multiplication, attention and the rest, implemented for a specific hardware backend.
The server exposes the loaded model over HTTP so an application can call it.
The client is whatever consumed the output: a chat interface, an editor plugin, a script.
llama.cpp spans the middle. It provides the runtime and implements the tokenizer, with broad backend coverage across CUDA, Metal, Vulkan, ROCm and CPU. It is the layer that knows how to turn a GGUF file into tokens.
Ollama sits above it. It manages models, handles download and storage, wraps a server around a runtime and presents a simple interface. A user installs it, pulls a model and gets an endpoint.
LiteRT-LM sits beside it, aimed at phones and embedded devices with its own backends and its own priorities.
Where the confusion comes from
The overlap is real, which is why the question gets asked.
Both Ollama and llama.cpp can load a GGUF file and serve it over an HTTP endpoint. Both are written primarily in C++ with similar performance characteristics because they share lineage. Ollama has in the past used llama.cpp as a backend, which is why a bug fixed in one can appear fixed in the other.
The difference is abstraction rather than capability. Ollama hides the model format, the hardware flags and the batching configuration behind defaults. llama.cpp exposes them, which is what you want when the defaults are wrong for your hardware.
A developer who needs a model running in five minutes wants Ollama. A developer who needs to run a quantisation that Ollama does not offer, or tune the number of layers offloaded to GPU, needs the layer below.
What GGUF actually is
The format is a container. It holds the tensors, the tokenizer vocabulary, the architecture metadata and the quantisation information in one file.
The self-contained property is why the ecosystem works. A single file can be copied to a machine with the runtime installed and will run, without a separate configuration describing which of several architecture variants it is.
Quantisation lives inside the file. A Q4_K_M label describes a specific scheme, and the scheme is applied at conversion time rather than at load time. That means two files for the same model at different quantisations are different artefacts with different quality and memory characteristics, and a benchmark that does not name the quantisation is not reproducible.
Backends are hardware, not preference
The backend determines which processors the runtime can use.
CUDA covers NVIDIA cards. ROCm covers AMD. Metal covers Apple silicon. Vulkan is a cross-vendor graphics interface that reaches many GPUs and, notably, integrated graphics. MLX is Apple's machine learning framework, which Ollama added concurrent generation support for.
Each has different maturity. CUDA is the most developed because it was the first target and the largest install base. Metal is well supported for Apple hardware. Vulkan support is the newest and reaches hardware the others do not, which is why the memory-mapped handling for integrated GPUs in Ollama's release matters: integrated graphics share memory with the CPU, and naive loading doubles the footprint.
The practical implication is that a performance comparison between two runtimes on the same machine measures the backend more than the software.
Memory mapping and why it appears in release notes
Memory mapping a model file lets the operating system page parts of it in and out rather than reading it entirely into application memory.
On a machine with enough memory, the effect is modest. On integrated graphics, where the GPU and the CPU draw from the same pool, it matters because the alternative is holding two copies.
The trade is that paging introduces latency when a page is not resident, so a memory-mapped model can be slower on first inference and faster overall on a constrained machine. That is a reasonable default for a laptop and a poor one for a server.
What a reproducible comparison requires
Seven variables, and a comparison that does not hold them constant is measuring the setup.
The same model file, at the same quantisation, because different quantisations produce different quality. The same prompt with the same context length. The same backend. The same hardware with the same thermal state. The same batch size and concurrency. The same number of warm-up runs, because first-token latency includes loading. And the same measurement point, because time to first token and tokens per second describe different things.
Published release notes do not provide those, and they are not meant to. They describe a change. A reader who converts a release note into a speed ranking has made an inference the note does not support.
Choosing by target
A workstation with a discrete GPU: llama.cpp directly, because the flags matter and the backend is mature.
A laptop belonging to someone who does not want to tune anything: Ollama, because the defaults are good and the model management saves time.
An iPhone or an Android device: LiteRT-LM or the platform's own runtime, because the constraints are different and the desktop paths do not transfer.
A server serving multiple users: an inference server built for batching and continuous scheduling rather than any of these, because single-user optimisations do not compose.
That is a decision about the deployment target rather than about the software's quality. The three projects are not in a race, and treating them as one produces a comparison that is not useful to anyone deciding what to install.



