AI Aulis

AI NEWS IN ENGLISH · 25 November 2026

The most important AI news every morning. AI writes and checks the stories against the original sources – check important facts in the sources.

← Issue 25 November 2026Paper

llama.cpp’s quantisation tool now allocates bits itself to meet a target file size

AI-generated contentWritten by AI

github.com, webairadar.com, dev.to · 3 sources · Sources published: 24 November 2026

From version b12669, users can give the llama-quantize tool a target file size or an average number of bits per weight. Extra bits go to the tensors where they reduce the error estimate most.

Quantisation stores a model’s weights with fewer bits so that the model takes up less memory. Until now, llama-quantize users usually picked a preset such as Q4_K_M, and the preset determined the file size. In version b12669, which the llama.cpp project released on 24 November, users can instead give the tool a target file size or an average number of bits per weight.

The WebAiRadar website summarised an example from the change’s pull request. It involves a 70-billion-parameter model and a GPU with 24 GB of memory. One preset may produce a 16.8 GB file, leaving quality on the table. The next preset may produce a 24.1 GB file, which does not fit. With a target of 23.85 GiB, the file is meant to come out almost exactly that size.

File size alone does not show whether the model will fit in memory at run time. Reid Marlow points out in a dev.to post that the KV cache and compute buffers also need space. WebAiRadar considers a target equal to the GPU’s full memory likely to be too large.

Presets allocate bits by fixed rules. The new method tries different quantisation types on a sample of rows from most tensors (blocks of weights). Extra bits go to the tensors where they reduce the error most. EAddario, who wrote the change, notes that the method reduces a per-tensor error estimate and does not optimise the quality of the model’s answers. EAddario also says ‘there are no guarantees it will select the best possible mix’.

EAddario tested 34 models in 238 runs, using Kullback–Leibler divergence as the metric. The metric shows how far the quantised model’s output deviates from the original’s. Compared with the standard preset, the result was better in 195 runs, equal in 26 and worse in 16. One run produced no result. The model mamba-2.8b lost all seven of its runs.

Before the change was merged, another developer, bartowski1182, compared files of the same size across five models. By WebAiRadar’s count, divergence on the test set named wiki fell in 18 of 28 comparisons. With Qwen3.5-4B at Q3_K_M size, it fell from 0.0906 to 0.0492. The hybrid model granite4-h-small, by contrast, did worse at five of six sizes, although the tester put one of the differences within the noise. The tester asked whether the model’s hybrid Mamba architecture explains the difference, but no cause was shown. WebAiRadar advises comparing a hybrid model’s result with a preset of the same size before switching away from the preset.

The method requires an importance matrix, which uses sample text to show which weights matter most. The matrix must contain activation data from the new version of llama-imatrix; without such a matrix, the tool will not start. Quantisation can take 5–10 times longer than usual, the author said, but work saved to a state file can be reused for other sizes of the same model. Manually chosen tensor types count towards the target size, and quantisation fails if too little space is left for the other tensors.

Ready-built packages for macOS, Linux, Windows and Android are on the project’s GitHub releases page. Instructions are in llama.cpp’s quantisation guide.

Report an error in this story