TL;DR: llama.cpp v1.1.1 was tagged on 2026-12-04, eight days after v1.1.0 (2026-11-26). The changelog lists 203 commits, but only about nine of them change how a long-running llama-server behaves, and those are the ones an operator should read. They are: a fix so a prompt-checkpoint restore at temperature 0 always makes progress, reuse of sliding-window (SWA) KV cells shared by several sequences, a graph-node budget for KV cache rotation so quantized K/V caches fit the scheduler, a CORS change that answers a list of allowed origins with the origin that asked, background tasks for the built-in shell tool, an RPC fix for a stale allocation-size cache entry, an unblocking fix for response readers on termination, a refusal of -sm tensor for Hadamard-folded models, and GGUF rejection of keys and tensor names containing NUL bytes. This post sorts them into a triage order, shows the memory arithmetic behind the KV items (illustrative numbers, labeled), gives a small probe script you can point at a staging server, and ends with a checklist. Facts come from the public release notes and commit list; counts are my own tally, and the code and calculations are illustrative.
What is actually in llama.cpp v1.1.1?
The release overview lists new model support (Qwen4-35B-A3B, Amazon-FMR/Ergo as a 1.1T MoE with MXFP4 conversion, clef-omni, Apertus v1.5 text support, MiniCPM5 MoE), a rework of the decision-model batch API into pool spans and attention scopes, background tasks for the shell tool in llama-server, and an update of ggml to v1.2.0. Counting commit subjects by prefix gives a rough picture of where the effort went (my own tally of the 203 listed commits, grouped by the first word of the subject, so treat it as a reading aid):
| Prefix | Commits | Reading |
|---|---|---|
| CUDA | 23 | Fusion refactor, few-row MMQ for NVFP4, flat CONCAT kernel |
| ui | 23 | Chat UI, background-task list, slideshow, share to dataset |
| ggml | 19 | Version bump to 1.2.0, quant scales for FP8 and NVFP4, internal ops |
| Vulkan | 18 | FP8 and scaled matmul, flash attention KV rows, shader work |
| Metal | 9 | Neural Accelerator detection, fusion baseline |
| server | 9 | The part this post is about |
| model | 8 | New architectures and fixes |
| jinja | 7 | Template engine semantics |
| Hexagon, WebGPU, SYCL | 6 each | Backend catch-up |
If you run a single CUDA box with a handful of models, most of this is invisible to you. The server, KV cache and RPC items are not.
Which server changes can bite a long-running llama-server?
I regroup the items by the symptom an on-call engineer would see, not by file.
Progress and liveness (rare, expensive):
-
server : avoid re-verifying tokens on checkpoint replay at temp 0 (#33373). The release note phrases it as "so a checkpoint restore always makes progress". The failure it describes is a request that restores a prompt checkpoint, replays tokens, re-verifies them, and does not advance. At temperature 0 sampling is deterministic, which is exactly the setting evaluation harnesses and agent loops use. -
server : unblock server_response readers on termination (#33404). A reader blocked on a response queue during shutdown is a classic cause of a process that ignores SIGTERM until the orchestrator sends SIGKILL.
Memory and cache correctness (silent until load):
-
kv-cache : reuse SWA cells shared by several sequences once masked for all of them (#32309). Sliding-window attention layers only need the last window of tokens. When several sequences share a prefix, a cell that is masked for every one of them can be reused instead of held. -
llama : budget graph nodes for KV cache rotation (#33382). The note says this lets quantized K/V caches fit the scheduler hash set. If you run--cache-type-kand--cache-type-vwith a quantized type, this is the item that decides whether the graph builds at all. -
graph : read recurrent states in place instead of copying (#30139)matters for hybrid and state-space models, where a copy per step is pure overhead.
Network surface (a config problem, not a bug):
-
ui: answer a list of CORS origins with the origin that asked (#33602). With several allowed origins the server now echoes the requesting origin rather than a fixed value. This is how browsers expect multi-origin allow lists to work, and it changes what your reverse proxy sees. -
server: background tasks for the built-in shell tool (#33391)with/tools/tasksroutes, andserver: run tool commands as a job ended with everything it started (#33367). Moving a running shell command to the background, reading its output and stopping it is a real feature, and also a reason to check that/toolsis not reachable from anywhere you did not intend.
Distributed and file-format hardening:
-
rpc : fix stale alloc_size cache entry reused for larger src tensor (#33611)andrpc : add SUPPORTS_OP command (#32532). If you split a model over RPC workers, a stale cached allocation size reused for a larger tensor is a memory-safety style bug, andSUPPORTS_OPlets a client ask a worker whether it can run an op before sending work. -
gguf: reject keys and tensor names containing NUL bytes (#33355)andgguf: document and test the NUL byte rule for keys and tensor names (#33443). If you load third-party GGUF files, this closes a class of parser-confusion problems. -
llama : refuse SPLIT_MODE_TENSOR for Hadamard-folded models (#33080). A launch that used-sm tensorwith such a model is now refused instead of producing something you have to debug.
How much does the KV cache cost, and why do the KV items matter?
The KV items only matter if the cache is a big part of your memory bill, so it is worth doing the arithmetic once. For one sequence, the cache holds K and V for every layer:
bytes = 2 x layers x kv_heads x head_dim x context x bytes_per_element
The model below is hypothetical (48 layers, 8 KV heads, head dimension 128), chosen only to show the shape of the curve. Bytes per element are 2.0 for f16, 1.0625 for q8_0 (8.5 bits) and 0.5625 for q4_0 (4.5 bits).
# Illustrative: KV cache GiB for ONE sequence of a hypothetical GQA model
LAYERS, KV_HEADS, HEAD_DIM = 48, 8, 128
BPE = {"f16": 2.0, "q8_0": 8.5 / 8, "q4_0": 4.5 / 8}
def kv_gib(ctx, kind):
return 2 * LAYERS * KV_HEADS * HEAD_DIM * ctx * BPE[kind] / 2**30
for ctx in (32_768, 65_536, 131_072):
print(ctx, {k: round(kv_gib(ctx, k), 2) for k in BPE})
For this hypothetical model the result is 6.0 GiB at 32K tokens in f16, 12.0 GiB at 64K and 24.0 GiB at 128K, per sequence. Four parallel slots at 128K in f16 would need 96 GiB for the cache alone. Quantizing both K and V to q8_0 cuts each figure to about 53 percent, and q4_0 to about 28 percent. That is why people quantize the cache, and why a graph-node budget bug for KV cache rotation with quantized K/V would show up first on the configurations that save the most memory.
SWA reuse works in the other direction: it does not shrink a global-attention layer, but for models that interleave local and global layers, cells masked for all sequences no longer count against you. How much that saves depends on your window size and how many sequences share a prefix, so measure it on your own model rather than trusting a number from a post.
In what order should you test the nine items?
My triage order, by how badly a miss hurts and how late it shows up. This is author judgment, not a project ranking.
-
Checkpoint replay at temp 0. A hang is the worst outcome because health checks may still pass. Test with a long shared prompt, a restore, and
temperature: 0. - Shared SWA cell reuse. Cache bugs produce wrong output, not crashes. Compare outputs at temperature 0 against your pinned version across several parallel slots.
- KV rotation node budget. Start the server with your real quantized cache types and watch for a graph or scheduler error at load.
-
Shell tool and
/toolsexposure. Confirm that the route is off or authenticated for your deployment. - CORS origins. Check the headers your browser clients and proxy see.
- RPC stale allocation size. Only if you split across RPC workers.
-
-sm tensorrefusal. Only if you launch with tensor split on folded-weight models. -
Jinja semantics. Seven template-engine commits change modulo, negative indexing, string iteration, truthiness of functions and
replacewithcount=0. If you ship custom chat templates, diff the rendered prompt for a fixed conversation before and after. - GGUF NUL rule. Only if you load files you did not build.
How can you probe a staging server for these changes?
The script below uses only the standard library and endpoints named in the release notes or the long-standing server API (/health, /completion, /tools). Point it at a staging instance, never at production. It is a smoke test, not a proof.
import json, sys, urllib.request, urllib.error
BASE = sys.argv[1].rstrip("/") # e.g. http://127.0.0.1:8080
ORIGINS = sys.argv[2:] or ["http://localhost:3000", "http://example.test"]
def req(path, data=None, headers=None):
r = urllib.request.Request(BASE + path, data=data, headers=headers or {})
try:
with urllib.request.urlopen(r, timeout=120) as resp:
return resp.status, dict(resp.headers), resp.read()
except urllib.error.HTTPError as e:
return e.code, dict(e.headers), e.read()
# 1. liveness
print("health", req("/health")[0])
# 2. temperature-0 determinism with a shared prompt, twice (checkpoint reuse path)
body = json.dumps({"prompt": "List the planets in order. " * 200,
"n_predict": 32, "temperature": 0,
"cache_prompt": True}).encode()
outs = []
for i in range(2):
s, _, b = req("/completion", body, {"Content-Type": "application/json"})
outs.append(json.loads(b).get("content") if s == 200 else f"HTTP {s}")
print("temp0 stable:", outs[0] == outs[1], repr(outs[0])[:60])
# 3. CORS: what does the server say for each origin?
for o in ORIGINS:
s, h, _ = req("/health", headers={"Origin": o})
print("origin", o, "->", h.get("Access-Control-Allow-Origin"))
# 4. is the tool listing reachable without credentials?
s, _, b = req("/tools")
print("/tools status", s, "(200 means anyone who can reach you can list tools)")
Run it once against your pinned version and once against v1.1.1, and diff the output. If temp0 stable flips from True to False, stop and open an issue with your prompt and flags.
What does 203 commits in 8 days mean for pinning?
Two releases in eight days is a fast cadence for something many teams run as a pinned binary. Two practical consequences:
-
Pin by tag and by build. The notes link a nightly build number (
b12977) next to the tag. Record both in your deployment manifest so a rollback is a lookup, not an archaeology exercise. -
Treat
ggmlas part of the release.v1.1.1carriesggml v1.2.0, which adds quantization-scale support for FP8 and NVFP4 through extended matrix-multiplication APIs and cleans up the FlashAttention sinks and bias API. If you build a custom backend againstggml, that API cleanup is your breaking change even though thellama.cppnotes list none.
For comparison, I covered the previous release in the same series, where the slot scheduler refactor and prompt-cache restore fixes were the headline. This release continues that thread with the replay fix at temperature 0.
FAQ
Is llama.cpp v1.1.1 safe to upgrade to from v1.1.0?
The notes list API changes only in llama-ext.h (the decision-model batch function renamed to llama_batch_ext_set_pool_span_type(), plus new llama_batch_ext_set_pool_span(), llama_get_embeddings_pool_span() and llama_batch_ext_set_attn_scope()) and additive server aliases. If you do not use the extended batch API, the upgrade is mostly additive. Test on staging first regardless.
What is the temperature 0 checkpoint replay fix?
Commit #33373 stops the server from re-verifying replayed tokens at temperature 0, so restoring a prompt checkpoint always advances generation.
Does the shell tool run by default?
The release notes describe background tasks for the built-in shell tool and /tools/tasks routes. I did not verify defaults, so check your launch flags and the server README for your build, and keep the tool endpoints off public interfaces.
Does SWA cell reuse change model output?
It is described as reusing cells once they are masked for all sequences, so output should be identical. Verify with a temperature 0 comparison on your model.
Which new models does v1.1.1 add?
Qwen4-35B-A3B, Amazon-FMR/Ergo (1.1T MoE, MXFP4 conversion), clef-omni, Apertus v1.5 8B and 70B text support, and MiniCPM5 MoE, plus a DFlash2 draft head for Inkling-2-Mini.
Checklist before you pin v1.1.1
- [ ] Record tag
v1.1.1and nightlyb12977in the deployment manifest. - [ ] Run the probe script on staging and diff against your current version.
- [ ] Replay a long shared prompt at temperature 0 across all slots.
- [ ] Start with your real quantized K/V cache types and check the log for graph errors.
- [ ] Confirm
/toolsand/tools/tasksare not reachable from untrusted networks. - [ ] Re-render your custom chat templates for a fixed conversation and diff.
- [ ] If you use RPC workers, upgrade workers and client together.
Sources
- llama.cpp release v1.1.1: https://github.com/ggml-org/llama.cpp/releases/tag/v1.1.1
- llama.cpp release v1.1.0: https://github.com/ggml-org/llama.cpp/releases/tag/v1.1.0
- ggml release v1.2.0: https://github.com/ggml-org/ggml/releases/tag/v1.2.0
Top comments (0)