llama.cpp spent two days on long context, and the gains landed on three different backends
Between August 29 and 31, 2026, llama.cpp shipped a run of changes that all point at the same place: the part of inference that gets slower as the context grows. Vulkan, CUDA and the Metal and OpenCL paths each got their own fix, with numbers the authors published. Three crashes were closed alongside them. None of it needs a flag; it arrives with the next build.
Read one at a time, the past three days of llama.cpp look like a changelog. Read together, they are one piece of work: long context is where local inference gets expensive, and four separate changes went after it on four different backends.
Long context, three fixes
The largest single number comes from one helper function. It scanned cache cells whose count grew with the context, and that work is now gone. On an RTX PRO 6000 running Qwen3.8-Flash-Next at 132,000 tokens of context, generation went from 33.6 to 50.9 tokens per second, shipped in b10707. Prompt processing is unchanged, and on short prompts nothing shows at all.
Vulkan got a radix sort for top-k selection, covering k of 1024 and above, which is what Qwen 3.8 Flash Next asks for. On a DGX Spark at 32,768 tokens of context, prompt processing went from 390.1 to 520.8 tokens per second — past the 498.5 measured on CUDA on the same machine. At zero context depth the same code is slightly slower, so the gain belongs to long context and nothing else.
On CUDA, the helper that assigns warp threads to tokens took a shortcut only when the number of active experts divided the warp evenly, with a single hand-written exception padding 6 up to 8. Generalizing that padding to the next power of two hands the shortcut to 10 as well. On the same RTX PRO 6000 at 55,000 tokens, prompt processing rose from 2,334 to 2,600 tokens per second in b10704.
Small batches on AMD
Two constants in Vulkan's matrix-vector path were retuned for RDNA3 cards, and the gain starts at a batch of five columns. In the author's micro-benchmark the four-bit quantized types gain the most, up to 46.2% at eight columns. The change is conditioned on AMD hardware of that architecture, and the author had a single Strix Halo machine, so whether the same numbers appear on other cards of the generation is open.
Phone silicon got its own pass
On Adreno X2, OpenCL now defaults to the faster matmul path. The author of the change measures prompt processing on gpt-oss-20b at about 25% faster, with a second change worth roughly 9% on gemma-3n-E4B. Token generation is unchanged in both cases. Both shipped in b10687.
The Hexagon backend stopped reading Qualcomm's NPU core count from a hard-coded table and now asks the chip at runtime, in b10693. The same change stops reserving NPU sessions while the backend starts, and reserves them only once a model is actually loaded. Of the devices the author tested, exactly one phone answers the new query, so everything else still falls back to the written-in values.
Three crashes closed
A bug report on August 29 showed llama.cpp crashing on Apple's Metal backend when a quantized weight met an F16 operand on the single-token path. The kernel that shape needs was never written, and the code used the null pointer it got back instead of refusing the work. Fixed in b10691.
A second crash, on context shift with an unquantized K cache, closed in b10690 the same morning. Separately, a client could not drive several RPC servers at once: pointers to remote buffers were sent even when the buffer belonged to a different server, which then received an address that means nothing to it and refused to build the graph. The fix sends the pointer only when the buffer belongs to that connection, and adds a two-server test, because the bug does not exist with one.
„Same visit order, same callback arguments, so behaviour is unchanged.“
Sources
- vulkan: radix sort for top-k
- b10704
- vulkan: tune mul_mat_vec for batch 5-8
- opencl: enable xmem F16xF32 GEMM by default on Adreno X2
- b10687
- opencl: bypass A7X f32 lm kernel
- hexagon: query NPU core count at runtime
- b10693
- Metal crash on quantized single-token decode
- b10691
- b10690
- rpc: only send buffer pointers that belong to the connection
Corrections
This piece was assembled from eight separate llama.cpp stories published on August 30 and 31, 2026. No fact, figure or measurement from them was changed — all of them are here, together. The addresses of all eight redirect permanently to this page. The reason for merging is editorial: eight notes about one project in two days gave the reader a changelog rather than an overview, and only together do they show that all of it aims at the same place, long context.
Once a week, in your inbox
The whole week's news, gathered into one email. No ads, no passing your address on, one-click unsubscribe.
The address is used only for this roundup. It is not sold and not passed to anyone.
Related
OpenAI opens healthcare model configurations to API organizations at base-model token prices
OpenAI has added four healthcare configurations of its models to the API. They combine healthcare-specific instructions with search over a dedicated index of medical sources. Token prices match the base models, but OpenAI calls the pricing promotional and search is billed separately. Access alone does not permit processing protected health information.
OpenAIverified
llama.cpp can now quantize a model to a file size you set and choose the bit mix itself
Build b12669 adds an option to llama-quantize that takes a target file size and decides how many bits each part of the model gets. The author reports matching or beating the standard presets in 93% of tests. A second contributor found an improvement on several models and a clear loss on one.
llama.cppverified
Anthropic will retire Claude Opus 4.5 on January 22, 2027, and points developers to Opus 5.5
Requests to Claude Opus 4.5 will fail from January 22, 2027, on the platforms Anthropic runs, including when the model is set in Claude Code. Opus 5.5 is cheaper per token but needs code changes. On the same day Anthropic opened a beta that lets eligible organizations use its most capable models without Anthropic keeping their prompts.
Anthropicverified
