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.
Source
llama.cpp b12669: quantize: add option to automatically choose optimal quant typesllama.cpp · Original published November 24, 2026
The llama.cpp project released build b12669 on November 24, 2026, with two new options in its llama-quantize tool. Quantization stores a model's weights with fewer bits, so that the model takes up less memory. Until now the usual way was to pick a preset such as Q4_K_M and accept whatever size came out. With --target-size you name the size, and the tool works out how to spend the bits. That lets you fill the memory you have instead of settling for the nearest preset that fits.
The pull request gives an example: a 70-billion-parameter model and a graphics card with 24 GB of memory. One preset might produce a 16.8 GB file that leaves quality unused, and the next a 24.1 GB file that does not fit. A target of 23.85 GiB is meant to produce a file of almost exactly that size. The other option, --target-bpw, sets an average number of bits per weight, which makes it easier to compare different models at the same compression.
Standard presets follow fixed rules about which parts of a model keep more bits. The new method estimates instead how much error each tensor, a block of weights, would pick up in different formats. It then gives more bits to the tensors where they reduce the error most.
What the tests show
Both sets of measurements use Kullback–Leibler divergence (KLD), which shows how far the output of the compressed model drifts from the original. Lower is better. The author of the change, EAddario, tested 34 models in 238 runs: 195 came out better than the standard preset, 26 tied, 16 were worse, and one had no result. Wins and ties together make up the 93% in the announcement. One model, mamba-2.8b, lost in all seven runs.
Another contributor, bartowski1182, compared files of equal size on five models before the change was merged. By our count, divergence on the test set labeled wiki fell in 18 of 28 comparisons. The largest relative drop came with Qwen3.5-4B at the size of Q3_K_M, from 0.0906 to 0.0492. The summary calls it an improvement for several models in the middle range, from Q5_K_M to IQ2_M.
The model granite4-h-small was the exception: it did worse in five of six sizes, although the contributor put one of those within the noise. They asked whether its hybrid Mamba design is the cause but did not establish it, and a smaller Granite hybrid, granite-4.0-h-tiny, has no losses in the author's table. Maintainers merged the change with a plan to tune specific cases later.
What it takes
The method needs an importance matrix, a file that records which weights matter on sample text, with activation data from a recent version of llama-imatrix. Without one, the tool refuses to run. According to the author, quantizing this way can take five to 10 times as long, because a sample of most tensors is tried in 15 formats. The --state-file option saves that work, so later sizes of the same model are made at normal speed.
The two target options cannot be combined. Any tensor whose type you fix by hand keeps it and counts toward the total, and the tool fails if too little room is left for the rest. The author also notes that the method optimizes an estimate of the error in each tensor rather than the quality of the model's answers.
„there are no guarantees it will select the best possible mix“
Sources
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
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

llama.cpp can now run Hibiki, a model that translates spoken French into spoken English in real time
llama.cpp build b12619 adds Kyutai's Hibiki, a speech translation model that listens and speaks at the same time. It runs only through the realtime WebSocket endpoint of llama-server, which gains a full-duplex mode for it. The model translates only from French to English, and its original checkpoint has to be converted first.
llama.cppverified