Research review / opensource

llama.cpp 1.1 Quantizes to a Size Budget: --target-size Picks Per-Tensor Types for Your VRAM

llama.cpp v1.1.0, released November 26, adds --target-bpw and --target-size, which choose a per-tensor quantization mix to hit a file size or bits-per-weight budget at lowest estimated error. It also deprecates the old llama_batch API and makes chat parsing token-aware.

By Sandeep Belgavi · Published 2026-11-27

llama.cpp v1.1.0 was published on November 26, 2026. llama.cpp is ggml-org's MIT-licensed C/C++ engine for running models locally. The release is large: new model families, many audio models, a redesigned web UI and ggml v1.1.1. For anyone fitting a model onto a fixed GPU, one change matters most.

Quantize to a size, not to a preset

The release adds "--target-bpw/--target-size per-tensor quant selection with a resumable state file." The pull request, merged November 23, describes the method:

  1. Error estimation: for each tensor, it dequantizes a subset of rows weighted by an importance matrix (imatrix) and measures the error.
  2. Pareto frontier: per tensor, it discards types that grow size without enough error reduction.
  3. Lagrangian optimisation: it spreads the global bit budget to the tensors where extra bits reduce error most.
  4. Resumable state: --state-file saves the computation so it can be interrupted and reused.

The PR's motivating example: on a 24 GB GPU, standard quants of a 70B model might give "a 16.8GB file (too small, quality left on table) or a 24.1GB file (won't fit)," while --target-size 23.85g aims at the budget directly. The author reports that across "34 models across 238 tests," the method "matched or exceeded the quality of standard quantization in 93% of cases," measured by KL divergence. That is the author's evaluation, not an independent benchmark.

The PR lists the costs too: quantization "can take 5x-10x longer," the objective is "only a proxy for the model's performance quality," and it needs an imatrix with activation statistics, without which the target options "will refuse to run."

Other changes that affect integrators

  • API deprecation: the old llama_batch API is deprecated "in favour of llama_batch_ext and llama_process." Bindings that wrap llama.h should plan the move.
  • Token-aware chat parsing: special tokens are now matched "in chat parsing instead of text," which should reduce cases where user text that looks like a template tag confuses the parser.
  • Server: OpenAI-style named tool_choice, a slot-scheduling refactor, and 400 errors for rejected reasoning_effort levels.

Analysis: a size target also improves comparisons. The PR notes two models at the same Q4_K_M label "can end up with very different bpw (e.g. 4.75 and 4.30)," so a quality comparison between them is not controlled. Quantizing both to the same --target-bpw removes that confounder. For local deployment, think of the budget as VRAM minus KV cache minus activations, not the card's full memory.

Original calculation, not executed: Dinky wants the Belgavi's Book Store help-desk model on a 24 GB card with an 8K context. If the KV cache and runtime need about 3 GB, the weight budget is about 21 GB, so the target is --target-size 21g rather than the largest preset that loads. She keeps the state file so a second run at 20.5g is fast, and compares both on the same held-out CASE-xxxx transcripts.

What to watch

Independent KLD and task-accuracy comparisons against standard presets, and the promised llama_batch_ext migration guide.

Sources accessed November 27, 2026. Views are my own and do not represent any employer, past or present.

Sources and evidence

llama.cpp v1.1.0 adds --target-size and --target-bpw, which choose per-tensor quant types to hit a memory budget at lowest estimated error. The author reports matching or beating presets in 93% of 238 tests, at 5x-10x the quantization time. Budget for KV cache before picking the target.