Ollama 0.40.19 speeds up short histories in its Inkling2 runner
The November 26 release changes how the Metal backend handles short histories. It also trims history buffers in the MLX runner and updates the bundled llama-server.
Ollama released version 0.40.19 on November 26, 2026. Its most specific performance change concerns Inkling2 on Metal. When a history has fewer than 1,024 keys, the runner now uses the split-attention kernels it already used for longer histories. Previously it expanded the history to 32-bit floats and built a mask for each query. Avoiding that extra work is particularly useful when the conversation is still short.
On the contributor's chat workload, generation rose from 64.1 to 78.5 tokens per second. On the coding workload it rose from 89.0 to 114.5. Those are measurements for the implementation change in two test cases. A different model, runner, or device can give a different result. The release also makes history buffers more compact in the MLX runner and updates llama-server.
If you want to compare two versions on your own machine, keep the model, prompt, context settings, and hardware the same. Run the same short conversation after the model has loaded, and record generation speed separately from the time it takes to load the model. Mixing those two timings can hide the effect of a change to the runner.
If you test 0.40.19, note the installed Ollama version along with the results. The release includes a sha256sum.txt file for checking the installer. Keeping its checksum with your measurements makes it easier to tell two builds apart when you repeat the test.
Downloads
Verify SHA-256
c938989f515977d56e8b4000573c9643b02aa0e8961f7c76c9c82e6aa7213bbf