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.
Early version, shared quietly: the tool works. LFM2.5-24B-A2B is off this page until its store is rebuilt.
frontier): loads the qalloc WebAssembly bundle (about 9 MB) when it scrolls into view. Needs JavaScript.Usage
- Pick any size; set types, freeze regions or weight tensors, and see what each choice costs.
- Download the result: it streams from the shard store, only the tensors it uses, each sha256-checked, straight to disk.
Models
| model | tensors | shard store |
|---|---|---|
| LFM2.5-2.6B | rebuilt, every type re-quantized | Arki05/LFM2.5-2.6B-GGUF-shards |
| Qwen3.8-27B | rebuilt, every block tensor re-quantized | Arki05/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 KLD | benchmarks, % | |||||
|---|---|---|---|---|---|---|
| WikiText-2wiki | calibration-v6calib | IFBench | Multi-IF | AIME25 | BFCL | |
IQ2_M → 3.01bpwbartowski | 0.848 → 0.411−52 % | 1.083 → 0.539−50 % | 49.3 → 53.3+4.0 ± 3.1 | 57.9 → 75.8+17.9 ± 2.1 | 7.9 → 17.5+9.6 ± 3.5 | 35.3 → 54.0+18.7 ± 1.9 |
Q4_0 → 4.70bpwLiquidAI | 0.226 → 0.058−74 % | 0.367 → 0.089−76 % | 55.7 → 59.0+3.3 ± 2.7 | 76.0 → 77.7+1.7 ± 1.6 | 36.7 → 40.4+3.8 ± 3.0 | 55.3 → 58.3+3.0 ± 1.7 |
QAD-Q4_0 → 4.70bpwLiquidAI | – | – | 57.7 → 59.0+1.3 ± 2.5 | 79.7 → 77.7−2.0 ± 1.5 | 42.9 → 40.4−2.5 ± 2.8 | 60.0 → 58.3−1.7 ± 1.7 |
Q4_K_M → 4.94bpwLiquidAI | 0.160 → 0.050−69 % | 0.235 → 0.076−68 % | 58.3 → 60.7+2.3 ± 2.8 | 78.7 → 81.8+3.1 ± 1.5 | 38.8 → 42.9+4.2 ± 3.8 | 60.4 → 60.5+0.2 ± 1.6 |
F16LiquidAI, reference | – | – | 62.3 | 80.7 | 44.2 | 60.4 |
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 KLD | KLD p99 | same top, % | |
|---|---|---|---|
UD-IQ2_XXS → 2.16bpwUnsloth | 0.305 → 0.209−32 % | 2.59 → 2.06 | 79.9 → 83.5 |
UD-IQ2_S → 2.49bpwUnsloth | 0.152 → 0.124−19 % | 1.42 → 1.31 | 85.8 → 87.6 |
UD-Q2_K_XL → 2.82bpwUnsloth | 0.0984 → 0.0823−16 % | 0.959 → 0.888 | 88.6 → 89.7 |
UD-IQ3_XXS → 3.15bpwUnsloth | 0.0711 → 0.0513−28 % | 0.725 → 0.531 | 90.3 → 91.8 |
UD-Q3_K_XL → 3.81bpwUnsloth | 0.0288 → 0.0213−26 % | 0.289 → 0.230 | 93.7 → 94.7 |
UD-Q4_K_S → 4.46bpwUnsloth | 0.0155 → 0.00964−38 % | 0.169 → 0.103 | 95.4 → 96.4 |
| mean KLD | KLD p99 | same top, % | |
|---|---|---|---|
GSQ-RCO-IQ2_XS → 2.51bpwISTA-DASLab | 0.1511 → 0.1222−19 % | 1.540 → 1.299 | 86.0 → 87.6 |
GSQ-RCO-IQ2_S → 2.75bpwISTA-DASLab | 0.1015 → 0.0901−11 % | 1.013 → 0.971 | 88.3 → 89.4 |
GSQ-RCO-IQ3_XXS → 3.00bpwISTA-DASLab | 0.0740 → 0.0641−13 % | 0.760 → 0.685 | 90.1 → 90.8 |
GSQ-RCO-IQ3_S → 3.50bpwISTA-DASLab | 0.0424 → 0.0312−26 % | 0.449 → 0.321 | 92.5 → 93.6 |
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-2 | calibration-v6 | |||||
|---|---|---|---|---|---|---|
| mean KLD | KLD p99 | same top, % | mean KLD | KLD p99 | same top, % | |
IQ2_M → 3.01bpwbartowski · 1.02 GB | 0.848 → 0.411−52 % | 5.07 → 3.17−37 % | 59.5 → 71.4+11.9 pts | 1.083 → 0.539−50 % | 10.67 → 6.85−36 % | 65.6 → 75.7+10.2 pts |
Q2_K → 3.24bpwbartowski · 1.10 GB | 0.940 → 0.318−66 % | 5.62 → 2.50−56 % | 58.6 → 75.0+16.4 pts | 1.389 → 0.395−72 % | 16.51 → 4.95−70 % | 65.7 → 78.8+13.1 pts |
IQ3_XXS → 3.33bpwbartowski · 1.13 GB | 0.619 → 0.296−52 % | 4.20 → 2.40−43 % | 65.5 → 76.1+10.6 pts | 0.817 → 0.362−56 % | 9.74 → 4.60−53 % | 71.1 → 79.7+8.6 pts |
Q2_K_L → 3.43bpwbartowski · 1.17 GB | 0.939 → 0.253−73 % | 5.64 → 2.11−63 % | 58.6 → 77.6+18.9 pts | 1.390 → 0.324−77 % | 16.55 → 4.31−74 % | 65.7 → 80.8+15.1 pts |
IQ3_XS → 3.62bpwbartowski · 1.23 GB | 0.486 → 0.187−62 % | 3.52 → 1.64−53 % | 69.2 → 80.4+11.2 pts | 0.689 → 0.266−61 % | 8.74 → 3.73−57 % | 73.4 → 82.9+9.5 pts |
IQ3_M → 3.81bpwbartowski · 1.29 GB | 0.384 → 0.150−61 % | 2.99 → 1.31−56 % | 72.5 → 82.4+9.9 pts | 0.542 → 0.229−58 % | 6.87 → 3.30−52 % | 75.8 → 84.3+8.5 pts |
Q3_K_M → 4.05bpwbartowski · 1.37 GB | 0.303 → 0.114−63 % | 2.402 → 0.996−59 % | 75.3 → 84.6+9.3 pts | 0.495 → 0.172−65 % | 7.21 → 2.42−66 % | 77.9 → 86.3+8.4 pts |
Q3_K_L → 4.29bpwbartowski · 1.45 GB | 0.281 → 0.085−70 % | 2.240 → 0.708−68 % | 76.3 → 86.4+10.1 pts | 0.468 → 0.135−71 % | 6.95 → 1.99−71 % | 78.5 → 87.7+9.2 pts |
Q3_K_XL → 4.47bpwbartowski · 1.52 GB | 0.279 → 0.068−76 % | 2.250 → 0.597−73 % | 76.3 → 87.6+11.3 pts | 0.464 → 0.105−77 % | 6.93 → 1.50−78 % | 78.6 → 89.1+10.5 pts |
IQ4_XS → 4.47bpwbartowski · 1.52 GB | 0.145 → 0.068−53 % | 1.169 → 0.597−49 % | 82.1 → 87.6+5.5 pts | 0.241 → 0.105−56 % | 3.68 → 1.50−59 % | 84.2 → 89.1+4.9 pts |
Q4_0 → 4.70bpwLiquidAI · 1.59 GB | 0.226 → 0.058−74 % | 1.772 → 0.516−71 % | 78.1 → 88.6+10.5 pts | 0.367 → 0.089−76 % | 5.14 → 1.29−75 % | 80.3 → 89.9+9.6 pts |
Q4_K_M → 4.94bpwLiquidAI · 1.67 GB | 0.160 → 0.050−69 % | 1.291 → 0.447−65 % | 81.4 → 89.6+8.2 pts | 0.235 → 0.076−68 % | 3.44 → 1.13−67 % | 83.6 → 90.7+7.1 pts |
Q4_K_M → 4.94bpwbartowski · 1.68 GB | 0.095 → 0.050−48 % | 0.801 → 0.447−44 % | 85.6 → 89.6+4.0 pts | 0.175 → 0.076−57 % | 2.76 → 1.13−59 % | 86.3 → 90.7+4.4 pts |
Q4_K_L → 5.16bpwbartowski · 1.75 GB | 0.095 → 0.041−56 % | 0.805 → 0.372−54 % | 85.7 → 90.4+4.7 pts | 0.174 → 0.065−63 % | 2.817 → 0.937−67 % | 86.7 → 91.4+4.8 pts |
Q4_1 → 5.16bpwbartowski · 1.75 GB | 0.128 → 0.041−68 % | 1.087 → 0.372−66 % | 83.5 → 90.4+6.8 pts | 0.214 → 0.065−70 % | 3.430 → 0.937−73 % | 85.0 → 91.4+6.4 pts |
Q5_K_M → 5.73bpwLiquidAI · 1.94 GB | 0.049 → 0.023−52 % | 0.395 → 0.195−51 % | 89.3 → 92.5+3.2 pts | 0.087 → 0.037−57 % | 1.339 → 0.506−62 % | 90.0 → 93.1+3.1 pts |
Q5_K_M → 5.73bpwbartowski · 1.95 GB | 0.033 → 0.023−30 % | 0.277 → 0.195−30 % | 91.2 → 92.5+1.3 pts | 0.065 → 0.037−42 % | 0.959 → 0.506−47 % | 91.5 → 93.1+1.6 pts |
Q5_K_L → 5.94bpwbartowski · 2.01 GB | 0.031 → 0.019−40 % | 0.263 → 0.150−43 % | 91.5 → 93.1+1.7 pts | 0.062 → 0.030−51 % | 0.944 → 0.417−56 % | 91.8 → 93.7+1.9 pts |
Q6_K → 6.56bpwLiquidAI · 2.22 GB | 0.0166 → 0.0094−44 % | 0.1306 → 0.0704−46 % | 93.4 → 94.9+1.5 pts | 0.031 → 0.016−49 % | 0.432 → 0.200−54 % | 93.8 → 95.3+1.5 pts |
Q6_K → 6.56bpwbartowski · 2.24 GB | 0.0131 → 0.0094−29 % | 0.1009 → 0.0704−30 % | 94.2 → 94.9+0.7 pts | 0.024 → 0.016−32 % | 0.326 → 0.200−39 % | 94.6 → 95.3+0.7 pts |
Q6_K_L → 6.80bpwbartowski · 2.30 GB | 0.0103 → 0.0067−34 % | 0.0853 → 0.0573−33 % | 95.0 → 95.7+0.7 pts | 0.021 → 0.013−40 % | 0.305 → 0.168−45 % | 95.1 → 96.1+1.0 pts |
Q8_0 → 8.50bpwLiquidAI · 2.87 GB | 0.0034 → 0.0025−26 % | 0.0277 → 0.0201−27 % | 96.8 → 97.2+0.3 pts | 0.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.
| IFBench | Multi-IF | AIME25 avg@8 | BFCL v4 offline | |
|---|---|---|---|---|
IQ2_M bartowski · 3.01 bpw | 49.3 ± 2.9 | 57.9 ± 2.1 | 7.9 ± 3.8 | 35.3 ± 1.6 |
3.01bpw prebuilt · 3.01 bpw | 53.3 ± 2.9+4.0 ± 3.1 | 75.8 ± 1.9+17.9 ± 2.1 | 17.5 ± 5.3+9.6 ± 3.5 | 54.0 ± 1.7+18.7 ± 1.9 |
Q4_0 LiquidAI · 4.70 bpw | 55.7 ± 2.9 | 76.0 ± 1.9 | 36.7 ± 6.8 | 55.3 ± 1.8 |
QAD-Q4_0 LiquidAI · 4.70 bpw | 57.7 ± 2.8 | 79.7 ± 1.7 | 42.9 ± 6.9 | 60.0 ± 1.8 |
4.70bpw prebuilt · 4.70 bpw | 59.0 ± 2.8+3.3 ± 2.7 vs Q4_0+1.3 ± 2.5 vs QAD-Q4_0 | 77.7 ± 1.9+1.7 ± 1.6 vs Q4_0−2.0 ± 1.5 vs QAD-Q4_0 | 40.4 ± 6.9+3.8 ± 3.0 vs Q4_0−2.5 ± 2.8 vs QAD-Q4_0 | 58.3 ± 1.8+3.0 ± 1.7 vs Q4_0−1.7 ± 1.7 vs QAD-Q4_0 |
Q4_K_M LiquidAI · 4.94 bpw | 58.3 ± 2.8 | 78.7 ± 1.8 | 38.8 ± 7.3 | 60.4 ± 1.9 |
4.94bpw prebuilt · 4.94 bpw | 60.7 ± 2.8+2.3 ± 2.8 | 81.8 ± 1.7+3.1 ± 1.5 | 42.9 ± 7.3+4.2 ± 3.8 | 60.5 ± 1.9+0.2 ± 1.6 |
F16 LiquidAI, reference · 16.00 bpw | 62.3 ± 2.8 | 80.7 ± 1.8 | 44.2 ± 7.6 | 60.4 ± 1.9 |
- IFBench: all 300 prompts, prompt-level loose accuracy. Multi-IF: a fixed subset of 300 conversations (stratified by language, the same for every file), prompt-level loose accuracy averaged over the three turns. AIME25: the 30 problems of AIME 2025, 8 samples each, mean accuracy, up to 32768 output tokens.
- BFCL v4 offline: the offline categories only (non-live, live, irrelevance, multi-turn), on a fixed subset of 1026 entries stratified by category, with BFCL’s weights minus the agentic part. Not comparable to the full BFCL v4 overall (LiquidAI’s 56.88), 40 % of which is agentic.
- Sampling as LiquidAI evaluates (vLLM with the model’s generation config): temperature 0.6 (BFCL 0.001), top-k 50, repetition penalty 1.1, one seed per item. The model reasons before it answers; only the answer is scored.
- Standard errors by bootstrap over items (conversations, problems; per category for BFCL). AIME’s 30 problems leave wide error bars.
- Served with llama.cpp’s
llama-server, the same build and settings for every file, with one local change to LFM2’s short-convolution block: parallel sequences go through one matrix multiply instead of one each. The math is unchanged (single-sequence decode is bit-identical); batched decode is faster.