Sakura — granite-4.2-8b (GGUF, three sizes)
granite-4.2-8b is IBM's 8B dense instruct and reasoning model with tool calling and multilingual support (English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, Chinese). This repository holds three GGUF files of different size made from the BF16 weights with our measured mixed-codec method. Pick one on the Files page; the table below says what each file is. Independent community quantization, not an official IBM release. Part of the Sakura Mini line.
Quality at a glance
Same method, same texts, same machine for every file; lower KL divergence means closer to the BF16 original:
Sakura-granite-4.2-8b-3.38GiB.ggufvs bartowski IQ3_XXS (3.47 GiB): KL divergence to the BF16 original 15 % lower on average over all 3 texts (0.09 GiB smaller).Sakura-granite-4.2-8b-4.69GiB.ggufvs bartowski IQ4_XS (4.60 GiB): KL divergence to the BF16 original 4 % lower on average over all 3 texts (0.09 GiB larger).Sakura-granite-4.2-8b-5.22GiB.ggufvs bartowski Q4_K_M (5.16 GiB): KL divergence to the BF16 original 22 % lower on average over all 3 texts (0.07 GiB larger).
Why: the bit budget per tensor is allocated from measured sensitivity (see How it was made), not from fixed rules. Full table below.
Which file should I take?
| File | For |
|---|---|
Sakura-granite-4.2-8b-3.38GiB.gguf (3.38 GiB, 3.30 bpw) |
smallest: for tight memory budgets; expect visible quality loss |
Sakura-granite-4.2-8b-4.69GiB.gguf (4.69 GiB, 4.58 bpw) |
middle: best balance of size and quality for most machines |
Sakura-granite-4.2-8b-5.22GiB.gguf (5.22 GiB, 5.10 bpw) |
largest: closest to the BF16 original of the three |
The files
| File | Size | bits/weight | KLD en | KLD dev | KLD wiki | same top token (avg) | Tensor types by size |
|---|---|---|---|---|---|---|---|
Sakura-granite-4.2-8b-3.38GiB.gguf |
3.38 GiB | 3.30 | 0.1090 | 0.0704 | 0.4164 | 86.6 % | IQ3_S 60%, IQ3_XXS 20%, Q5_K 6%, Q3_K 5%, IQ2_S 4%, IQ2_XXS 3% |
Sakura-granite-4.2-8b-4.69GiB.gguf |
4.69 GiB | 4.58 | 0.0279 | 0.0135 | 0.1198 | 93.3 % | IQ4_XS 63%, Q5_K 32%, Q4_K 4% |
Sakura-granite-4.2-8b-5.22GiB.gguf |
5.22 GiB | 5.10 | 0.0153 | 0.0084 | 0.0807 | 94.8 % | Q5_K 73%, IQ4_XS 24%, Q4_K 2% |
"Tensor types by size" lists the share of the file's bytes per ggml type (all are standard llama.cpp types, so the files run in stock llama.cpp). Quality columns: mean KL divergence of the quantized model's next-token distribution against the BF16 source on held-out text (lower is better) and how often the most likely token is unchanged (higher is better).
Comparison at similar size
Same texts, same context, same chunks, measured by us with llama-perplexity (BF16 source = reference; PPL of the BF16 model: en: 2.309, dev: 1.938, wiki: 17.119). The reference quants are: bartowski (imatrix), measured the same way. Sorted by size.
| Quant | Source | Size | KLD en | KLD dev | KLD wiki | PPL en | same top token (avg) |
|---|---|---|---|---|---|---|---|
Sakura-granite-4.2-8b-3.38GiB.gguf |
this repository | 3.38 GiB | 0.1090 | 0.0704 | 0.4164 | 2.469 | 86.6 % |
| IQ3_XXS | bartowski (imatrix) | 3.47 GiB | 0.1371 | 0.0950 | 0.4115 | 2.449 | 86.3 % |
| IQ4_XS | bartowski (imatrix) | 4.60 GiB | 0.0307 | 0.0142 | 0.1179 | 2.340 | 93.4 % |
Sakura-granite-4.2-8b-4.69GiB.gguf |
this repository | 4.69 GiB | 0.0279 | 0.0135 | 0.1198 | 2.372 | 93.3 % |
| Q4_K_M | bartowski (imatrix) | 5.16 GiB | 0.0201 | 0.0111 | 0.0985 | 2.359 | 94.7 % |
Sakura-granite-4.2-8b-5.22GiB.gguf |
this repository | 5.22 GiB | 0.0153 | 0.0084 | 0.0807 | 2.388 | 94.8 % |
| Q5_K_M | bartowski (imatrix) | 5.97 GiB | 0.0091 | 0.0035 | 0.0526 | 2.368 | 96.9 % |
Method: 12 chunks of 512 tokens per text; texts: English held-out text, developer-text held-out set, English encyclopedia held-out text (not used in any calibration). Single measurement on one machine; small KLD differences at similar size are not a quality ranking.
How it was made
- BF16 GGUF of the original model and the importance matrix come from bartowski/granite-4.2-8b-GGUF; we used both unchanged (credit and thanks to bartowski).
- Every large weight matrix was quantized once per candidate type (Q2_K, IQ2_S, IQ3_XXS, IQ3_S, Q3_K, IQ4_XS, Q4_K, Q5_K, Q6_K, Q8_0) with
llama-quantizeand the importance matrix; the error of each choice was estimated per matrix (importance-weighted) and scaled by a sensitivity factor measured with real KL divergence: every group of tensors (for example the FFN down projections, the attention value projections, the first and last layers) was moved alone to a lower-bit type, and the KL divergence it caused was compared with its quantization error. - An exact budget allocation (multiple-choice knapsack over bytes) picked one type per matrix for each target size; the final model was assembled from the stored tensors without re-quantizing. We do not publish per-tensor choices. Norms, small tensors and the multi-token-prediction layers stay at high precision.
Limits
- Measured only with KL divergence and perplexity on short held-out texts and not with downstream benchmarks; do not read it as a task-quality claim.
- Quantization always costs some quality; the smallest file costs the most.
Credits
- Original model: granite-4.2-8b (IBM, Apache-2.0), Apache-2.0 license (included as
LICENSE). - BF16 GGUF, importance matrix and the reference quants: bartowski.
- GGUF format and tools: ggml-org/llama.cpp (MIT).
中文说明 · 樱花 (Simplified Chinese)
English above. 本节为上文的中文翻译(Sakura = 樱花 yīnghuā);完整的独立中文版见 README_zh.md。
Sakura — granite-4.2-8b(GGUF,三种大小)
granite-4.2-8b 是 IBM 的 8B 稠密指令与推理模型,支持工具调用和多语言(英语、德语、西班牙语、法语、日语、葡萄牙语、阿拉伯语、捷克语、意大利语、韩语、荷兰语、中文)。本仓库包含 三个不同大小的 GGUF 文件,由 BF16 权重通过我们实测得出的混合编码方法制作。请在 Files 页面选择其中一个;下表说明了每个文件的用途。 这是独立的社区量化版本,不是 IBM 的官方发布。属于 Sakura Mini 系列。
质量概览
每个文件使用相同的方法、相同的文本、同一台机器;KL 散度越低,越接近 BF16 原始模型:
Sakura-granite-4.2-8b-3.38GiB.gguf对比 bartowski IQ3_XXS (3.47 GiB):相对于 BF16 原始模型,在全部 3 个文本上平均 KL 散度 低 15 %(小 0.09 GiB)。Sakura-granite-4.2-8b-4.69GiB.gguf对比 bartowski IQ4_XS (4.60 GiB):相对于 BF16 原始模型,在全部 3 个文本上平均 KL 散度 低 4 %(大 0.09 GiB)。Sakura-granite-4.2-8b-5.22GiB.gguf对比 bartowski Q4_K_M (5.16 GiB):相对于 BF16 原始模型,在全部 3 个文本上平均 KL 散度 低 22 %(大 0.07 GiB)。
原因:每个张量的比特预算是根据实测的敏感度分配的(见 制作方式),而不是按固定规则。完整表格见下文。
我该选哪个文件?
| 文件 | 适用场景 |
|---|---|
Sakura-granite-4.2-8b-3.38GiB.gguf(3.38 GiB,3.30 bpw) |
最小:适合内存预算紧张的情况;预计质量会有明显损失 |
Sakura-granite-4.2-8b-4.69GiB.gguf(4.69 GiB,4.58 bpw) |
居中:对大多数机器而言,大小与质量的最佳平衡 |
Sakura-granite-4.2-8b-5.22GiB.gguf(5.22 GiB,5.10 bpw) |
最大:三者中最接近 BF16 原始模型 |
这些文件
| 文件 | 大小 | bits/weight | KLD en | KLD dev | KLD wiki | same top token (avg) | 各张量类型(按大小) |
|---|---|---|---|---|---|---|---|
Sakura-granite-4.2-8b-3.38GiB.gguf |
3.38 GiB | 3.30 | 0.1090 | 0.0704 | 0.4164 | 86.6 % | IQ3_S 60%, IQ3_XXS 20%, Q5_K 6%, Q3_K 5%, IQ2_S 4%, IQ2_XXS 3% |
Sakura-granite-4.2-8b-4.69GiB.gguf |
4.69 GiB | 4.58 | 0.0279 | 0.0135 | 0.1198 | 93.3 % | IQ4_XS 63%, Q5_K 32%, Q4_K 4% |
Sakura-granite-4.2-8b-5.22GiB.gguf |
5.22 GiB | 5.10 | 0.0153 | 0.0084 | 0.0807 | 94.8 % | Q5_K 73%, IQ4_XS 24%, Q4_K 2% |
“各张量类型(按大小)”列出每个 ggml 类型占文件字节数的比例(全部是标准的 llama.cpp 类型,因此这些文件可在原版 llama.cpp 中运行)。质量列:量化模型的下一个 token 分布相对于 BF16 源文件在留出文本上的平均 KL 散度(越低越好),以及最可能的 token 保持不变的频率(越高越好)。
相近大小的比较
相同的文本、相同的上下文、相同的分块,由我们使用 llama-perplexity 测量(BF16 源文件 = 参照;BF16 模型的 PPL:en: 2.309,dev: 1.938,wiki: 17.119)。参照量化为:bartowski(imatrix),以相同方式测量。按大小排序。
| 量化 | 来源 | 大小 | KLD en | KLD dev | KLD wiki | PPL en | same top token (avg) |
|---|---|---|---|---|---|---|---|
Sakura-granite-4.2-8b-3.38GiB.gguf |
本仓库 | 3.38 GiB | 0.1090 | 0.0704 | 0.4164 | 2.469 | 86.6 % |
| IQ3_XXS | bartowski (imatrix) | 3.47 GiB | 0.1371 | 0.0950 | 0.4115 | 2.449 | 86.3 % |
| IQ4_XS | bartowski (imatrix) | 4.60 GiB | 0.0307 | 0.0142 | 0.1179 | 2.340 | 93.4 % |
Sakura-granite-4.2-8b-4.69GiB.gguf |
本仓库 | 4.69 GiB | 0.0279 | 0.0135 | 0.1198 | 2.372 | 93.3 % |
| Q4_K_M | bartowski (imatrix) | 5.16 GiB | 0.0201 | 0.0111 | 0.0985 | 2.359 | 94.7 % |
Sakura-granite-4.2-8b-5.22GiB.gguf |
本仓库 | 5.22 GiB | 0.0153 | 0.0084 | 0.0807 | 2.388 | 94.8 % |
| Q5_K_M | bartowski (imatrix) | 5.97 GiB | 0.0091 | 0.0035 | 0.0526 | 2.368 | 96.9 % |
方法:每个文本取 12 个块,每块 512 个 token;文本为:英文留出文本、开发者文本留出集、英文百科留出文本(未用于任何校准)。这是在一台机器上的单次测量;相近大小下 KLD 的细小差异并不构成质量排名。
制作方式
- 原始模型的 BF16 GGUF 和重要性矩阵来自 bartowski/granite-4.2-8b-GGUF;我们原样使用了这两者(感谢并归功于 bartowski)。
- 每个大型权重矩阵针对每种候选类型(Q2_K、IQ2_S、IQ3_XXS、IQ3_S、Q3_K、IQ4_XS、Q4_K、Q5_K、Q6_K、Q8_0)使用
llama-quantize和重要性矩阵各量化一次;每种选择的误差按矩阵估计(按重要性加权),并乘以一个 用真实 KL 散度测得的敏感度系数:每组张量(例如 FFN down 投影、注意力 value 投影、首尾几层)被单独移到较低比特的类型,并将它造成的 KL 散度与其量化误差进行比较。 - 精确的预算分配(以字节为单位的多选背包问题)为每个目标大小为每个矩阵挑选一种类型;最终模型由已存储的张量组装而成,无需重新量化。 我们不公布逐张量的选择。归一化层、小张量和多 token 预测层保持高精度。
局限
- 仅用短的留出文本上的 KL 散度和困惑度测量,没有使用下游基准测试;请勿将其理解为任务质量的声明。
- 量化总会损失一些质量;最小的文件损失最大。
致谢
- 原始模型:granite-4.2-8b (IBM, Apache-2.0),Apache-2.0 许可证(以
LICENSE随附)。 - BF16 GGUF、重要性矩阵和参照量化:bartowski。
- GGUF 格式和工具:ggml-org/llama.cpp (MIT)。