arki05

qalloc

For a model and any size you choose, the per-tensor quantization with the lowest predicted mean KL divergence from the original: an exact knapsack over every tensor’s types, solved in your browser, and the GGUF assembled there too.

Open the allocator →

Early version, shared quietly: the tool works. LFM2.5-24B-A2B is off this page until its store is rebuilt.

Live figure (frontier): loads the qalloc WebAssembly bundle (about 9 MB) when it scrolls into view. Needs JavaScript.
Mean KL against size: the most accurate build at each size from the store’s types (predicted), every tensor at one type, and the published files and qalloc’s builds as measured. LFM2.5-2.6B, whose measurements follow below; the menu at the top right switches to Qwen3.8-27B. Live, from the tool.

Usage

Models

modeltensorsshard store
LFM2.5-2.6Brebuilt, every type re-quantizedArki05/LFM2.5-2.6B-GGUF-shards
Qwen3.8-27Brebuilt, every block tensor re-quantizedArki05/Qwen3.8-27B-GGUF-shards

The LFM2.5-2.6B store is rebuilt: llama.cpp’s types re-quantized from the BF16 weights, replacing the first store, which held bartowski’s tensors. Each type is there in two Hessian-quantized (GPTQ-family) builds, -hq, the higher-quality one, and -hq1, the first, with the same type, format and size as llama.cpp’s. What qalloc builds from it is plain GGUF and runs on stock llama.cpp.

Prebuilt files: 17 GGUF files from 3.01 to 8.50 bits per weight, each sized to a published bartowski or LiquidAI file, at Arki05/LFM2.5-2.6B-GGUF.

The Qwen3.8-27B store holds every block tensor in one Hessian-quantized build, -hq, re-quantized from Qwen’s BF16 weights, and the embedding, the output and the linear attention’s small gate tensors at llama.cpp’s own quantization. Its prebuilt files are below.

Measurements

LFM2.5-2.6B

Three of the prebuilt files against the published files at their size (at 4.70 bpw also LiquidAI’s QAD-Q4_0, benchmarks only), with LiquidAI’s F16 as the reference. Mean KL divergence from LiquidAI’s BF16 GGUF, with llama-perplexity, on WikiText-2 and bartowski’s calibration-v6 and four generation benchmarks, scores in percent. Calibration-v6, bartowski’s imatrix dataset, overlaps the data the store was rebuilt with; WikiText-2 is held out.

mean KLDbenchmarks, %
WikiText-2wikicalibration-v6calibIFBenchMulti-IFAIME25BFCL
IQ2_M → 3.01bpwbartowski0.848 → 0.411−52 %1.083 → 0.539−50 %49.3 → 53.3+4.0 ± 3.157.9 → 75.8+17.9 ± 2.17.9 → 17.5+9.6 ± 3.535.3 → 54.0+18.7 ± 1.9
Q4_0 → 4.70bpwLiquidAI0.226 → 0.058−74 %0.367 → 0.089−76 %55.7 → 59.0+3.3 ± 2.776.0 → 77.7+1.7 ± 1.636.7 → 40.4+3.8 ± 3.055.3 → 58.3+3.0 ± 1.7
QAD-Q4_0 → 4.70bpwLiquidAI––57.7 → 59.0+1.3 ± 2.579.7 → 77.7−2.0 ± 1.542.9 → 40.4−2.5 ± 2.860.0 → 58.3−1.7 ± 1.7
Q4_K_M → 4.94bpwLiquidAI0.160 → 0.050−69 %0.235 → 0.076−68 %58.3 → 60.7+2.3 ± 2.878.7 → 81.8+3.1 ± 1.538.8 → 42.9+4.2 ± 3.860.4 → 60.5+0.2 ± 1.6
F16LiquidAI, reference––62.380.744.260.4
Each cell: the published file’s number, then the prebuilt file’s, with the change under it. A benchmark difference is paired (the same items for both) and coloured where it is more than twice its standard error.

Across all 17 prebuilt files: from 3 to 5.2 bits per weight (IQ2_M’s size to Q4_K_L’s) they have about half the mean KL or less, 48 to 77 % less on both texts, a 99th percentile 36 to 78 % lower, and the top token agrees 4.0 to 18.9 points more often. From Q5_K_M’s size up the gain is smaller: 26 to 57 % in mean KL. Every pair, and the benchmarks in full, are in the appendix.

Qwen3.8-27B

Prebuilt files: 10 GGUF files from 2.16 to 4.46 bits per weight at Arki05/Qwen3.8-27B-GGUF, each at the size of one of Unsloth’s dynamic quants or of ISTA-DASLab’s GSQ-RCO quants. Against that file: mean KL divergence from BF16, its 99th percentile, and how often the top token agrees with the original’s, in percent, on held-out documents from nine domains (128 windows of 4096 tokens).

mean KLDKLD p99same top, %
UD-IQ2_XXS → 2.16bpwUnsloth0.305 → 0.209−32 %2.59 → 2.0679.9 → 83.5
UD-IQ2_S → 2.49bpwUnsloth0.152 → 0.124−19 %1.42 → 1.3185.8 → 87.6
UD-Q2_K_XL → 2.82bpwUnsloth0.0984 → 0.0823−16 %0.959 → 0.88888.6 → 89.7
UD-IQ3_XXS → 3.15bpwUnsloth0.0711 → 0.0513−28 %0.725 → 0.53190.3 → 91.8
UD-Q3_K_XL → 3.81bpwUnsloth0.0288 → 0.0213−26 %0.289 → 0.23093.7 → 94.7
UD-Q4_K_S → 4.46bpwUnsloth0.0155 → 0.00964−38 %0.169 → 0.10395.4 → 96.4
Each cell: Unsloth’s number, then the prebuilt file’s. Sizes are compared without the multi-token-prediction layer (about 0.35 GB), which Unsloth’s files from UD-Q2_K_XL up carry and these leave out.
mean KLDKLD p99same top, %
GSQ-RCO-IQ2_XS → 2.51bpwISTA-DASLab0.1511 → 0.1222−19 %1.540 → 1.29986.0 → 87.6
GSQ-RCO-IQ2_S → 2.75bpwISTA-DASLab0.1015 → 0.0901−11 %1.013 → 0.97188.3 → 89.4
GSQ-RCO-IQ3_XXS → 3.00bpwISTA-DASLab0.0740 → 0.0641−13 %0.760 → 0.68590.1 → 90.8
GSQ-RCO-IQ3_S → 3.50bpwISTA-DASLab0.0424 → 0.0312−26 %0.449 → 0.32192.5 → 93.6
Against ISTA-DASLab’s GSQ-RCO quants (their files without the multi-token-prediction layer): their number, then the prebuilt file’s. Two of the prebuilt files, 2.51 and 3.50 bpw, are 1 MB smaller than ISTA-DASLab’s file of their size.

Appendix

LFM2.5-2.6B, KL divergence: all 22 pairs

Every prebuilt file against each published file it is sized to (two where those are within 1 % of each other): mean KL divergence from BF16, its 99th percentile, and how often the top token agrees with the original’s, in percent. Each cell: the published file’s number, then the prebuilt file’s, with the change under it.

WikiText-2calibration-v6
mean KLDKLD p99same top, %mean KLDKLD p99same top, %
IQ2_M → 3.01bpwbartowski · 1.02 GB0.848 → 0.411−52 %5.07 → 3.17−37 %59.5 → 71.4+11.9 pts1.083 → 0.539−50 %10.67 → 6.85−36 %65.6 → 75.7+10.2 pts
Q2_K → 3.24bpwbartowski · 1.10 GB0.940 → 0.318−66 %5.62 → 2.50−56 %58.6 → 75.0+16.4 pts1.389 → 0.395−72 %16.51 → 4.95−70 %65.7 → 78.8+13.1 pts
IQ3_XXS → 3.33bpwbartowski · 1.13 GB0.619 → 0.296−52 %4.20 → 2.40−43 %65.5 → 76.1+10.6 pts0.817 → 0.362−56 %9.74 → 4.60−53 %71.1 → 79.7+8.6 pts
Q2_K_L → 3.43bpwbartowski · 1.17 GB0.939 → 0.253−73 %5.64 → 2.11−63 %58.6 → 77.6+18.9 pts1.390 → 0.324−77 %16.55 → 4.31−74 %65.7 → 80.8+15.1 pts
IQ3_XS → 3.62bpwbartowski · 1.23 GB0.486 → 0.187−62 %3.52 → 1.64−53 %69.2 → 80.4+11.2 pts0.689 → 0.266−61 %8.74 → 3.73−57 %73.4 → 82.9+9.5 pts
IQ3_M → 3.81bpwbartowski · 1.29 GB0.384 → 0.150−61 %2.99 → 1.31−56 %72.5 → 82.4+9.9 pts0.542 → 0.229−58 %6.87 → 3.30−52 %75.8 → 84.3+8.5 pts
Q3_K_M → 4.05bpwbartowski · 1.37 GB0.303 → 0.114−63 %2.402 → 0.996−59 %75.3 → 84.6+9.3 pts0.495 → 0.172−65 %7.21 → 2.42−66 %77.9 → 86.3+8.4 pts
Q3_K_L → 4.29bpwbartowski · 1.45 GB0.281 → 0.085−70 %2.240 → 0.708−68 %76.3 → 86.4+10.1 pts0.468 → 0.135−71 %6.95 → 1.99−71 %78.5 → 87.7+9.2 pts
Q3_K_XL → 4.47bpwbartowski · 1.52 GB0.279 → 0.068−76 %2.250 → 0.597−73 %76.3 → 87.6+11.3 pts0.464 → 0.105−77 %6.93 → 1.50−78 %78.6 → 89.1+10.5 pts
IQ4_XS → 4.47bpwbartowski · 1.52 GB0.145 → 0.068−53 %1.169 → 0.597−49 %82.1 → 87.6+5.5 pts0.241 → 0.105−56 %3.68 → 1.50−59 %84.2 → 89.1+4.9 pts
Q4_0 → 4.70bpwLiquidAI · 1.59 GB0.226 → 0.058−74 %1.772 → 0.516−71 %78.1 → 88.6+10.5 pts0.367 → 0.089−76 %5.14 → 1.29−75 %80.3 → 89.9+9.6 pts
Q4_K_M → 4.94bpwLiquidAI · 1.67 GB0.160 → 0.050−69 %1.291 → 0.447−65 %81.4 → 89.6+8.2 pts0.235 → 0.076−68 %3.44 → 1.13−67 %83.6 → 90.7+7.1 pts
Q4_K_M → 4.94bpwbartowski · 1.68 GB0.095 → 0.050−48 %0.801 → 0.447−44 %85.6 → 89.6+4.0 pts0.175 → 0.076−57 %2.76 → 1.13−59 %86.3 → 90.7+4.4 pts
Q4_K_L → 5.16bpwbartowski · 1.75 GB0.095 → 0.041−56 %0.805 → 0.372−54 %85.7 → 90.4+4.7 pts0.174 → 0.065−63 %2.817 → 0.937−67 %86.7 → 91.4+4.8 pts
Q4_1 → 5.16bpwbartowski · 1.75 GB0.128 → 0.041−68 %1.087 → 0.372−66 %83.5 → 90.4+6.8 pts0.214 → 0.065−70 %3.430 → 0.937−73 %85.0 → 91.4+6.4 pts
Q5_K_M → 5.73bpwLiquidAI · 1.94 GB0.049 → 0.023−52 %0.395 → 0.195−51 %89.3 → 92.5+3.2 pts0.087 → 0.037−57 %1.339 → 0.506−62 %90.0 → 93.1+3.1 pts
Q5_K_M → 5.73bpwbartowski · 1.95 GB0.033 → 0.023−30 %0.277 → 0.195−30 %91.2 → 92.5+1.3 pts0.065 → 0.037−42 %0.959 → 0.506−47 %91.5 → 93.1+1.6 pts
Q5_K_L → 5.94bpwbartowski · 2.01 GB0.031 → 0.019−40 %0.263 → 0.150−43 %91.5 → 93.1+1.7 pts0.062 → 0.030−51 %0.944 → 0.417−56 %91.8 → 93.7+1.9 pts
Q6_K → 6.56bpwLiquidAI · 2.22 GB0.0166 → 0.0094−44 %0.1306 → 0.0704−46 %93.4 → 94.9+1.5 pts0.031 → 0.016−49 %0.432 → 0.200−54 %93.8 → 95.3+1.5 pts
Q6_K → 6.56bpwbartowski · 2.24 GB0.0131 → 0.0094−29 %0.1009 → 0.0704−30 %94.2 → 94.9+0.7 pts0.024 → 0.016−32 %0.326 → 0.200−39 %94.6 → 95.3+0.7 pts
Q6_K_L → 6.80bpwbartowski · 2.30 GB0.0103 → 0.0067−34 %0.0853 → 0.0573−33 %95.0 → 95.7+0.7 pts0.021 → 0.013−40 %0.305 → 0.168−45 %95.1 → 96.1+1.0 pts
Q8_0 → 8.50bpwLiquidAI · 2.87 GB0.0034 → 0.0025−26 %0.0277 → 0.0201−27 %96.8 → 97.2+0.3 pts0.0076 → 0.0050−34 %0.0955 → 0.0620−35 %97.0 → 97.4+0.4 pts
LFM2.5-2.6B, benchmarks: scores with standard errors, and how they were run

Scores in percent ± one standard error. Under a prebuilt file’s score, its paired difference to each published file of its size, coloured where it is more than twice its standard error.

IFBenchMulti-IFAIME25 avg@8BFCL v4 offline
IQ2_M bartowski · 3.01 bpw49.3 ± 2.957.9 ± 2.17.9 ± 3.835.3 ± 1.6
3.01bpw prebuilt · 3.01 bpw53.3 ± 2.9+4.0 ± 3.175.8 ± 1.9+17.9 ± 2.117.5 ± 5.3+9.6 ± 3.554.0 ± 1.7+18.7 ± 1.9
Q4_0 LiquidAI · 4.70 bpw55.7 ± 2.976.0 ± 1.936.7 ± 6.855.3 ± 1.8
QAD-Q4_0 LiquidAI · 4.70 bpw57.7 ± 2.879.7 ± 1.742.9 ± 6.960.0 ± 1.8
4.70bpw prebuilt · 4.70 bpw59.0 ± 2.8+3.3 ± 2.7 vs Q4_0+1.3 ± 2.5 vs QAD-Q4_077.7 ± 1.9+1.7 ± 1.6 vs Q4_0−2.0 ± 1.5 vs QAD-Q4_040.4 ± 6.9+3.8 ± 3.0 vs Q4_0−2.5 ± 2.8 vs QAD-Q4_058.3 ± 1.8+3.0 ± 1.7 vs Q4_0−1.7 ± 1.7 vs QAD-Q4_0
Q4_K_M LiquidAI · 4.94 bpw58.3 ± 2.878.7 ± 1.838.8 ± 7.360.4 ± 1.9
4.94bpw prebuilt · 4.94 bpw60.7 ± 2.8+2.3 ± 2.881.8 ± 1.7+3.1 ± 1.542.9 ± 7.3+4.2 ± 3.860.5 ± 1.9+0.2 ± 1.6
F16 LiquidAI, reference · 16.00 bpw62.3 ± 2.880.7 ± 1.844.2 ± 7.660.4 ± 1.9