Runtimes.
A model is a file of numbers. The runtime is the program that loads it and does the work. Which one you use decides what you can run, how fast, and what breaks.
- Runtimes run
- 11
- Runs
- 951
Measured on our own Macs: most of the run log on a Mac Studio (M1 Max, 64 GB), the rest and the lab notes on our other Macs. A page that used another Mac says which.
Every number here comes from a locked dataset with a recorded grader. Where a measurement is not valid, it is marked rather than removed.
What a runtime is
A language model you download is a file of weights. On its own it does nothing. A runtime is the program that loads that file into memory, takes your prompt, and works out the reply one token at a time. Most also run as a small server, so other programs can send them requests.
The same model on two runtimes is still the same model. What changes is everything around it.
Why it matters
- Which files you can load. Runtimes read different formats. llama.cpp reads GGUF files. The MLX family reads MLX files. A model published in only one format runs on only one family of runtime, unless someone converts it.
- Whether a new model runs at all. A new design often needs new code in the runtime. Some models here ran only on their maker's own engine, or on a maker's fork of llama.cpp, because nothing else could load them yet.
- How much memory it takes. Runtimes hold the model, the conversation and their own caches differently. Near the limit of a Mac's memory that is the difference between running and crashing.
- How fast it reads and writes. Speed depends on the runtime as well as the model, and the gap changes with the length of the prompt.
- Whether it does what you asked. Several of our tests ask for a reply in a set shape. Some runtimes hold the model to that shape, some ignore the request, and one does it for some models and not others. That changes the score, so every run here records its runtime and its version.
What we have found so far is in the findings, for example runtime-does-not-affect-throughput and runtime-does-not-change-capability-on-dense-models, and in the lab note Models bigger than your memory, where three runtimes on the same file behaved differently once memory ran short.
What runs on a Mac
- llama.cpp. The open-source engine most local tools are built on. It reads GGUF files and runs on almost anything. Most of our runs are on it.
- Tools built on llama.cpp. Ollama and LM Studio are the best known. They add a model library and an app around the same kind of engine. We run llama.cpp directly, so we can record exactly how each run was set up.
- MLX. Apple's own framework for its chips. mlx_lm is its language-model server, and other servers are built on it. It reads MLX files.
- A maker's own engine. Some makers ship their own, or a fork of llama.cpp, when their model needs something the others don't have yet.
What we don't test
We only test on Macs, because that is what our cluster is: a Mac Studio (M1 Max, 64 GB) for most runs so far, and Mac minis (M4 Pro with 24 GB, an Intel one from 2018, and a base M4 next). Runtimes built for NVIDIA cards and data centres are not here. That is not a judgement on them. We can only measure what we can run.
Every runtime a run in the log was made on, the most used first. The last column is whether the runtime made the model answer in the shape we asked for, which several of our tests depend on.
| Runtime | Runs | Configurations | Holds a reply to a set shape |
|---|---|---|---|
| llama.cpp | 778 | 151 | For some models |
| mlx_lm (MLX) | 69 | 28 | No |
| rapid-mlx | 29 | 12 | Yes |
| splash | 21 | 3 | Yes |
| edge0-strata | 16 | 1 | Not shown either way |
| ExLlamaV3 (exl3) | 11 | 1 | No |
| edge0 | 9 | 1 | No |
| oMLX | 9 | 7 | Not shown either way |
| Not recorded | 4 | 1 | Not shown either way |
| mlx-vlm (MLX) | 4 | 1 | No |
| swiftlm | 1 | 1 | Not shown either way |