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, but the Qwen3.8-27B shard store is due a rebuild with a broader imatrix, and its measured numbers below will be redone then. The LFM2.5-2.6B numbers are not affected.
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 | imatrix | shard store |
|---|---|---|
| Qwen3.8-27B | its own, from chat data; a rebuild is planned | Arki05/Qwen3.8-27B-GGUF-shards |
| LFM2.5-2.6B | bartowski’s | Arki05/LFM2.5-2.6B-GGUF-shards |
Measurements
Each published file, as you would download it, against qalloc’s build at the same size,11 For unsloth’s files, at their size without the MTP layer, which qalloc leaves to the download. on two texts: WikiText-2, and bartowski’s calibration-v6. Mean KL divergence from the BF16 model, as llama-perplexity measures it, with qalloc’s change against the release; and the change in how often the top token agrees with the original’s.
Caveat: the Qwen3.8-27B store. Its tensors were quantized with a suboptimal imatrix, computed on chat data only, and they underperform on plain text. Every 27B build below inherits that. The store will be rebuilt with a broader imatrix, and these numbers measured again.
At a glance: qalloc’s mean KL against the release’s at the same size. Lower is closer to the original, so negative is better.
| WikiText-2 | calibration-v6 | |
|---|---|---|
| LFM2.5-2.6B, against bartowski and LiquidAI | −61 % to −5 % | −59 % to −10 % |
| Qwen3.8-27B, against unsloth and ISTA-DASLab | +23 % to +91 % | −12 % to +11 % |
LFM2.5-2.6B
Against bartowski’s quants and LiquidAI’s own. The store holds bartowski’s own tensors, from the same BF16 weights and his imatrix, so against his files the difference is the allocation alone. qalloc’s builds are closer to the original at every size, on both texts, and agree with its top token more often.22 LiquidAI’s files are quantized without an imatrix, which is part of their gap. Its KL model is fitted to the assistant turns of calibration-v6, so WikiText-2 is the out-of-sample check.
| quant | mean KLD vs BF16 | top token | ||
|---|---|---|---|---|
| release | qalloc | change | ||
Q2_Kbartowski · 1.10 GB | 0.932 | 0.436 | −53 % | +11.4 pts |
IQ3_XXSbartowski · 1.13 GB | 0.618 | 0.394 | −36 % | +6.3 pts |
Q3_K_Mbartowski · 1.37 GB | 0.301 | 0.163 | −46 % | +5.7 pts |
IQ4_XSbartowski · 1.52 GB | 0.143 | 0.109 | −24 % | +2.2 pts |
Q4_0LiquidAI · 1.59 GB | 0.224 | 0.087 | −61 % | +8.0 pts |
Q4_K_MLiquidAI · 1.67 GB | 0.157 | 0.066 | −58 % | +6.1 pts |
Q4_K_Mbartowski · 1.68 GB | 0.094 | 0.063 | −33 % | +2.2 pts |
Q5_K_MLiquidAI · 1.94 GB | 0.046 | 0.030 | −35 % | +1.9 pts |
Q5_K_Mbartowski · 1.95 GB | 0.031 | 0.030 | −5 % | +0.1 pts |
Q6_KLiquidAI · 2.22 GB | 0.0141 | 0.0096 | −32 % | +1.0 pts |
Q6_Kbartowski · 2.24 GB | 0.0108 | 0.0091 | −16 % | +0.3 pts |
| quant | mean KLD vs BF16 | top token | ||
|---|---|---|---|---|
| release | qalloc | change | ||
Q2_Kbartowski · 1.10 GB | 1.384 | 0.649 | −53 % | +8.6 pts |
IQ3_XXSbartowski · 1.13 GB | 0.816 | 0.592 | −27 % | +4.2 pts |
Q3_K_Mbartowski · 1.37 GB | 0.496 | 0.274 | −45 % | +5.0 pts |
IQ4_XSbartowski · 1.52 GB | 0.239 | 0.181 | −24 % | +1.9 pts |
Q4_0LiquidAI · 1.59 GB | 0.365 | 0.151 | −59 % | +6.9 pts |
Q4_K_MLiquidAI · 1.67 GB | 0.234 | 0.118 | −50 % | +4.8 pts |
Q4_K_Mbartowski · 1.68 GB | 0.172 | 0.113 | −34 % | +2.3 pts |
Q5_K_MLiquidAI · 1.94 GB | 0.086 | 0.058 | −33 % | +1.8 pts |
Q5_K_Mbartowski · 1.95 GB | 0.063 | 0.057 | −10 % | +0.4 pts |
Q6_KLiquidAI · 2.22 GB | 0.029 | 0.020 | −33 % | +1.1 pts |
Q6_Kbartowski · 2.24 GB | 0.021 | 0.019 | −12 % | +0.3 pts |
Qwen3.8-27B
Against unsloth’s dynamic quants and ISTA-DASLab’s GSQ-RCO. On bartowski’s calibration text qalloc is level with them, a little ahead of unsloth and a little behind ISTA. On WikiText-2 the published files stay closer to the original.33 ISTA’s quantizer computes its own weights, so their files can only be compared as published.
| quant | mean KLD vs BF16 | top token | ||
|---|---|---|---|---|
| release | qalloc | change | ||
UD-IQ2_XXSunsloth · 7.27 GB | 0.226 | 0.412 | +82 % | −6.8 pts |
GSQ-RCO-IQ2_XSISTA-DASLab · 8.42 GB | 0.198 | 0.251 | +27 % | −2.3 pts |
UD-Q2_K_XLunsloth · 9.83 GB | 0.089 | 0.169 | +91 % | −4.4 pts |
GSQ-RCO-IQ3_XXSISTA-DASLab · 10.09 GB | 0.099 | 0.122 | +23 % | −1.1 pts |
UD-IQ3_XXSunsloth · 10.93 GB | 0.059 | 0.096 | +63 % | −2.4 pts |
UD-Q4_K_XLunsloth · 17.56 GB | 0.0067 | 0.0111 | +65 % | −0.8 pts |
| quant | mean KLD vs BF16 | top token | ||
|---|---|---|---|---|
| release | qalloc | change | ||
UD-IQ2_XXSunsloth · 7.27 GB | 1.002 | 0.970 | −3 % | −0.4 pts |
GSQ-RCO-IQ2_XSISTA-DASLab · 8.42 GB | 0.681 | 0.754 | +11 % | −1.5 pts |
UD-Q2_K_XLunsloth · 9.83 GB | 0.615 | 0.576 | −6 % | −0.3 pts |
GSQ-RCO-IQ3_XXSISTA-DASLab · 10.09 GB | 0.474 | 0.501 | +6 % | −0.4 pts |
UD-IQ3_XXSunsloth · 10.93 GB | 0.509 | 0.446 | −12 % | +0.9 pts |
UD-Q4_K_XLunsloth · 17.56 GB | 0.158 | 0.140 | −11 % | +0.3 pts |
With the same tensors. To take the store out of the comparison, unsloth’s own recipes were also built from it: their choices of type per tensor, with the same underperforming tensors qalloc has to work with. On that equal footing qalloc is ahead on calibration-v6 at three of the four sizes and level at the smallest, and on WikiText-2 the gap narrows from +63 % to +91 % against their published files to +20 % to +35 %.
| quant | mean KLD vs BF16 | top token | ||
|---|---|---|---|---|
| unsloth, same tensors | qalloc | change | ||
UD-IQ2_XXSunsloth · 7.27 GB | 0.345 | 0.412 | +20 % | −2.3 pts |
UD-Q2_K_XLunsloth · 9.83 GB | 0.126 | 0.169 | +35 % | −2.1 pts |
UD-IQ3_XXSunsloth · 10.93 GB | 0.080 | 0.096 | +20 % | −0.7 pts |
UD-Q4_K_XLunsloth · 17.56 GB | 0.0089 | 0.0111 | +25 % | −0.2 pts |
| quant | mean KLD vs BF16 | top token | ||
|---|---|---|---|---|
| unsloth, same tensors | qalloc | change | ||
UD-IQ2_XXSunsloth · 7.27 GB | 0.961 | 0.970 | +1 % | 0.0 pts |
UD-Q2_K_XLunsloth · 9.83 GB | 0.650 | 0.576 | −11 % | +0.4 pts |
UD-IQ3_XXSunsloth · 10.93 GB | 0.510 | 0.446 | −13 % | +1.1 pts |
UD-Q4_K_XLunsloth · 17.56 GB | 0.160 | 0.140 | −13 % | +0.5 pts |
Limitations
- LFM2.5 below about 2 bits per weight: the prediction is optimistic, and the real KL is worse. The model is barely usable there anyway.