Loading…
Loading…
Independent community quantization. Not an official release of the upstream author.
Made with an importance matrix (imatrix). The weights were quantized with importance weights computed from a fixed calibration text; the exact method and the hashes are in the technical details of section 5.
Architecture: qwen35 · source formats: gguf.
Original: 1.5 GB (BF16 GGUF, the source of these quantizations).
| Quant | Size | Compared with the original |
|---|---|---|
| Q2_K | 0.4 GB | 72 % smaller |
| Q3_K_M | 0.5 GB | 69 % smaller |
| Q4_K_M | 0.5 GB | 65 % smaller |
| Q5_K_M | 0.6 GB | 62 % smaller |
| Q6_K | 0.6 GB | 58 % smaller |
| Q8_0 | 0.8 GB | 46 % smaller |
quantized)prithivMLmods/Xiaomi-OCR-0-GGUF (file Xiaomi-OCR-0.BF16.gguf).webmp3. Upstream authors retain their license and attribution.| File | Size | Quant |
|---|---|---|
Sakura-Xiaomi-OCR-0-Q2_K.gguf |
0.4 GB | Q2_K |
Sakura-Xiaomi-OCR-0-Q3_K_M.gguf |
0.5 GB | Q3_K_M |
Sakura-Xiaomi-OCR-0-Q4_K_M.gguf |
0.5 GB | Q4_K_M |
Sakura-Xiaomi-OCR-0-Q5_K_M.gguf |
0.6 GB | Q5_K_M |
Sakura-Xiaomi-OCR-0-Q6_K.gguf |
0.6 GB | Q6_K |
Sakura-Xiaomi-OCR-0-Q8_0.gguf |
0.8 GB | Q8_0 |
Xiaomi-OCR-0.mmproj-bf16.gguf |
0.2 GB | vision projector |
Xiaomi-OCR-0.mmproj-bf16.gguf is the vision projector of the original GGUF repository prithivMLmods/Xiaomi-OCR-0-GGUF, copied unchanged. Use it together with any of the files above to give the model images. Image input has not been tested for this release.
llama-cli -m <file>.gguf -p "Hello" -n 32
# with images
llama-mtmd-cli -m <file>.gguf --mmproj Xiaomi-OCR-0.mmproj-bf16.gguf --image <picture>.jpg -p "Describe this image."
Needs a llama.cpp build that supports this architecture. If a quantization is split into numbered parts, keep them together and load the first one.
TrueyesMeasured with the stock llama-perplexity on two fixed public-domain texts that were not used for calibration (English: Pride and Prejudice; Chinese: Hongloumeng; 64 windows of 512 tokens). The BF16 source itself has a perplexity of 166.304 on this text. Q2_K to Q5_K_M and Q6_K to Q8_0 come from two runs on different machines: the BF16 source measured 166.304 in the first run and 166.250 in the second, and each ratio is relative to the reference of its own run. Q6_K was made with its own importance matrix from the second run (SHA-256 3671c48605c0a88abcbba686ea6a54fa6edc80677677ddc0f5f248c0de5052a1, same calibration text); the matrix named in the technical details belongs to Q2_K to Q5_K_M. Q8_0 does not use importance weights.
| Quant | Perplexity | Perplexity ratio to the source | Mean KL divergence | Same top token |
|---|---|---|---|---|
| Q2_K | 215.302 | 1.2946 ± 0.0200 | 0.42767 | 54.46 % |
| Q3_K_M | 169.899 | 1.0216 ± 0.0086 | 0.12704 | 72.68 % |
| Q4_K_M | 171.040 | 1.0285 ± 0.0047 | 0.03562 | 84.94 % |
| Q5_K_M | 170.568 | 1.0256 ± 0.0026 | 0.01284 | 90.62 % |
| Q6_K | 167.774 | 1.0092 ± 0.0020 | 0.00802 | 92.52 % |
| Q8_0 | 167.696 | 1.0087 ± 0.0009 | 0.00134 | 97.08 % |
A ratio close to 1, a small KL divergence and a high share of identical top tokens mean the quantized model predicts like the source. These numbers describe agreement with the source on this text only; they are not task benchmarks and say nothing about other languages or tasks.
Technical details: exact versions, hashes, how these were made7bbfa072e0f3d70ac722e26fbccef5b9f64b7121 (model card at that commit)7bbfa072e0f3d70ac722e26fbccef5b9f64b7121 of prithivMLmods/Xiaomi-OCR-0-GGUF, SHA-256 634d6bc95781ebf4a3f06570a59859fa5082d488db540fd474bc6b4061aec90e7bbfa072e0f3d70ac722e26fbccef5b9f64b7121, SHA-256 d796fa2cd211ba39a40f37691fc0046aa49f59c7968ec844eb9e81f2ae476a52 (provenance verified: True)| File | Bytes | SHA-256 | Quant |
|---|---|---|---|
Sakura-Xiaomi-OCR-0-Q2_K.gguf |
422327872 | 9255fc0fcda739f8973a675ad4ba74e85c47d3b77eeb4bb086e1bf86353ca7c1 |
Q2_K |
Sakura-Xiaomi-OCR-0-Q3_K_M.gguf |
466223168 | c0bbc2965ec56859b9c08a04ec97bd9216c214481796df715d7b9f3ea700cb06 |
Q3_K_M |
Sakura-Xiaomi-OCR-0-Q4_K_M.gguf |
529297984 | bfdcfb5e4fda2826f55676fa8a2d44f712c81009890f05bafe394e78bf879acd |
Q4_K_M |
Sakura-Xiaomi-OCR-0-Q5_K_M.gguf |
577999424 | 83747cdde1a765ca1924aab158c1f3dd35e2b4459231130a57e47acffb4e1d8c |
Q5_K_M |
Sakura-Xiaomi-OCR-0-Q6_K.gguf |
629744704 | 3a5d815b7156bc718ca860a0bc4bcb1d85e45a40ff1965fea54646438fc38c02 |
Q6_K |
Sakura-Xiaomi-OCR-0-Q8_0.gguf |
811844160 | b9da4d40e6051af58bb2e206147a4f6f6ac1d66cfdb9e1775ffb597ec16fba3a |
Q8_0 |
This route performs existing-GGUF requantization from the pinned BF16 source GGUF named above. This job did not convert the upstream BF16/safetensors checkpoint.
Quantized with the stock llama.cpp tools and an importance matrix (imatrix): the matrix was computed once with llama-imatrix from the fixed calibration text hfqa-original-calibration-v2 (6144 bytes of English, German and Chinese text, code and data formats, public domain; 11 chunks of 128 tokens) and applied with llama-quantize --imatrix. Matrix SHA-256: 83ea7a10917a9ccdaa14e7c5d6e35fdaf0f437dba59feffd8f3fa1bf3240bd12. Calibration text SHA-256: bc7216ea05c8bd05d6b9e94d813ec9eb651a2375288c08c06135a3f874d886f2. The calibration text is short; no quality improvement is claimed without a benchmark.
The quant label names the llama.cpp preset. Stock llama.cpp keeps some tensors (for example normalization weights) in higher precision, so not every tensor is stored in the named type; the table shows what each file really contains.
| File | Tensors by type |
|---|---|
Sakura-Xiaomi-OCR-0-Q2_K.gguf |
F32: 133, Q2_K: 132, Q3_K: 30, Q4_K: 24, Q6_K: 1 |
Sakura-Xiaomi-OCR-0-Q3_K_M.gguf |
F32: 133, Q3_K: 132, Q4_K: 51, Q5_K: 3, Q6_K: 1 |
Sakura-Xiaomi-OCR-0-Q4_K_M.gguf |
F32: 133, Q4_K: 162, Q6_K: 25 |
Sakura-Xiaomi-OCR-0-Q5_K_M.gguf |
F32: 133, Q5_K: 162, Q6_K: 25 |
Sakura-Xiaomi-OCR-0-Q6_K.gguf |
F32: 133, Q6_K: 187 |
Sakura-Xiaomi-OCR-0-Q8_0.gguf |
F32: 133, Q8_0: 187 |
| File | llama.cpp build | Executable SHA-256 |
|---|---|---|
Sakura-Xiaomi-OCR-0-Q2_K.gguf |
b11669-620d2225c |
3b7167843ffb0f3677be964dc80cfc59a0167c82e11eff62f6334f66e831f209 |
Sakura-Xiaomi-OCR-0-Q3_K_M.gguf |
b11669-620d2225c |
3b7167843ffb0f3677be964dc80cfc59a0167c82e11eff62f6334f66e831f209 |
Sakura-Xiaomi-OCR-0-Q4_K_M.gguf |
b11669-620d2225c |
3b7167843ffb0f3677be964dc80cfc59a0167c82e11eff62f6334f66e831f209 |
Sakura-Xiaomi-OCR-0-Q5_K_M.gguf |
b11669-620d2225c |
3b7167843ffb0f3677be964dc80cfc59a0167c82e11eff62f6334f66e831f209 |
Sakura-Xiaomi-OCR-0-Q6_K.gguf |
b11669-620d2225c |
3b7167843ffb0f3677be964dc80cfc59a0167c82e11eff62f6334f66e831f209 |
Sakura-Xiaomi-OCR-0-Q8_0.gguf |
b11669-620d2225c |
3b7167843ffb0f3677be964dc80cfc59a0167c82e11eff62f6334f66e831f209 |
Source license: apache-2.0. apache-2.0 allows redistribution with attribution
独立的社区量化版本,并非上游作者的官方发布。
使用重要性矩阵(imatrix)量化。 量化时使用了由固定校准文本计算出的重要性权重;具体方法和哈希见第 5 节的技术细节。
架构:qwen35 · 源格式:gguf。
原始模型:1.5 GB(BF16 GGUF,这些量化版本的来源)。
| 量化 | 大小 | 相比原始模型 |
|---|---|---|
| Q2_K | 0.4 GB | 小 72 % |
| Q3_K_M | 0.5 GB | 小 69 % |
| Q4_K_M | 0.5 GB | 小 65 % |
| Q5_K_M | 0.6 GB | 小 62 % |
| Q6_K | 0.6 GB | 小 58 % |
| Q8_0 | 0.8 GB | 小 46 % |
quantized)prithivMLmods/Xiaomi-OCR-0-GGUF(文件 Xiaomi-OCR-0.BF16.gguf)。webmp3。上游作者保留其许可证与署名。| 文件 | 大小 | 量化 |
|---|---|---|
Sakura-Xiaomi-OCR-0-Q2_K.gguf |
0.4 GB | Q2_K |
Sakura-Xiaomi-OCR-0-Q3_K_M.gguf |
0.5 GB | Q3_K_M |
Sakura-Xiaomi-OCR-0-Q4_K_M.gguf |
0.5 GB | Q4_K_M |
Sakura-Xiaomi-OCR-0-Q5_K_M.gguf |
0.6 GB | Q5_K_M |
Sakura-Xiaomi-OCR-0-Q6_K.gguf |
0.6 GB | Q6_K |
Sakura-Xiaomi-OCR-0-Q8_0.gguf |
0.8 GB | Q8_0 |
Xiaomi-OCR-0.mmproj-bf16.gguf |
0.2 GB | vision projector |
Xiaomi-OCR-0.mmproj-bf16.gguf 是原始 GGUF 仓库 prithivMLmods/Xiaomi-OCR-0-GGUF 的视觉投影文件,原样复制。与上方任一文件配合使用即可输入图像。本版本未测试图像输入。
llama-cli -m <file>.gguf -p "Hello" -n 32
# with images
llama-mtmd-cli -m <file>.gguf --mmproj Xiaomi-OCR-0.mmproj-bf16.gguf --image <picture>.jpg -p "Describe this image."
需要支持该架构的 llama.cpp 版本。如果某个量化被拆分为带编号的多个部分,请将它们放在一起并加载第一个。
Trueyes使用 llama.cpp 标准工具 llama-perplexity 在两段固定的公有领域文本上测量,文本未用于校准(英文:《傲慢与偏见》;中文:《红楼梦》;64 个窗口,每个 512 个词元)。BF16 源本身在该文本上的困惑度为 166.304。Q2_K 至 Q5_K_M 与 Q6_K、Q8_0 来自两次在不同机器上的运行:BF16 源在第一次运行中为 166.304,第二次为 166.250,各比值均相对于各自运行的参考值。Q6_K 使用第二次运行中单独计算的重要性矩阵(SHA-256 3671c48605c0a88abcbba686ea6a54fa6edc80677677ddc0f5f248c0de5052a1,校准文本相同);技术细节中给出的矩阵属于 Q2_K 至 Q5_K_M。Q8_0 不使用重要性权重。
| 量化 | 困惑度 | 与源的困惑度之比 | 平均 KL 散度 | 首选词元相同 |
|---|---|---|---|---|
| Q2_K | 215.302 | 1.2946 ± 0.0200 | 0.42767 | 54.46 % |
| Q3_K_M | 169.899 | 1.0216 ± 0.0086 | 0.12704 | 72.68 % |
| Q4_K_M | 171.040 | 1.0285 ± 0.0047 | 0.03562 | 84.94 % |
| Q5_K_M | 170.568 | 1.0256 ± 0.0026 | 0.01284 | 90.62 % |
| Q6_K | 167.774 | 1.0092 ± 0.0020 | 0.00802 | 92.52 % |
| Q8_0 | 167.696 | 1.0087 ± 0.0009 | 0.00134 | 97.08 % |
比值接近 1、KL 散度小、首选词元相同的比例高,说明量化模型的预测更接近源模型。这些数字仅说明在该文本上与源模型的一致程度,不是任务基准测试,也不代表其他语言或任务。
技术细节:确切版本、哈希、制作方式7bbfa072e0f3d70ac722e26fbccef5b9f64b7121(该提交的模型卡)7bbfa072e0f3d70ac722e26fbccef5b9f64b7121,SHA-256 634d6bc95781ebf4a3f06570a59859fa5082d488db540fd474bc6b4061aec90e7bbfa072e0f3d70ac722e26fbccef5b9f64b7121,SHA-256 d796fa2cd211ba39a40f37691fc0046aa49f59c7968ec844eb9e81f2ae476a52(出处已验证:True)| 文件 | 字节数 | SHA-256 | 量化 |
|---|---|---|---|
Sakura-Xiaomi-OCR-0-Q2_K.gguf |
422327872 | 9255fc0fcda739f8973a675ad4ba74e85c47d3b77eeb4bb086e1bf86353ca7c1 |
Q2_K |
Sakura-Xiaomi-OCR-0-Q3_K_M.gguf |
466223168 | c0bbc2965ec56859b9c08a04ec97bd9216c214481796df715d7b9f3ea700cb06 |
Q3_K_M |
Sakura-Xiaomi-OCR-0-Q4_K_M.gguf |
529297984 | bfdcfb5e4fda2826f55676fa8a2d44f712c81009890f05bafe394e78bf879acd |
Q4_K_M |
Sakura-Xiaomi-OCR-0-Q5_K_M.gguf |
577999424 | 83747cdde1a765ca1924aab158c1f3dd35e2b4459231130a57e47acffb4e1d8c |
Q5_K_M |
Sakura-Xiaomi-OCR-0-Q6_K.gguf |
629744704 | 3a5d815b7156bc718ca860a0bc4bcb1d85e45a40ff1965fea54646438fc38c02 |
Q6_K |
Sakura-Xiaomi-OCR-0-Q8_0.gguf |
811844160 | b9da4d40e6051af58bb2e206147a4f6f6ac1d66cfdb9e1775ffb597ec16fba3a |
Q8_0 |
该路线从上方标明的固定版本 BF16 源 GGUF 进行现有 GGUF 的再量化。本任务没有转换上游的 BF16/safetensors 检查点。
使用 llama.cpp 标准工具和重要性矩阵(imatrix)量化:矩阵由 llama-imatrix 根据固定的校准文本 hfqa-original-calibration-v2(6144 字节,含英文、德文、中文、代码和数据格式,属公有领域;11 个块,每块 128 个词元)计算一次,再由 llama-quantize --imatrix 应用。矩阵 SHA-256:83ea7a10917a9ccdaa14e7c5d6e35fdaf0f437dba59feffd8f3fa1bf3240bd12。校准文本 SHA-256:bc7216ea05c8bd05d6b9e94d813ec9eb651a2375288c08c06135a3f874d886f2。校准文本较短,没有基准测试,因此不声称质量提升。
量化标签指 llama.cpp 的预设名称。标准 llama.cpp 会把部分张量(例如归一化权重)保留为更高精度,因此并非每个张量都以所标注的类型存储;下表列出每个文件实际包含的内容。
| 文件 | 按类型的张量数 |
|---|---|
Sakura-Xiaomi-OCR-0-Q2_K.gguf |
F32: 133, Q2_K: 132, Q3_K: 30, Q4_K: 24, Q6_K: 1 |
Sakura-Xiaomi-OCR-0-Q3_K_M.gguf |
F32: 133, Q3_K: 132, Q4_K: 51, Q5_K: 3, Q6_K: 1 |
Sakura-Xiaomi-OCR-0-Q4_K_M.gguf |
F32: 133, Q4_K: 162, Q6_K: 25 |
Sakura-Xiaomi-OCR-0-Q5_K_M.gguf |
F32: 133, Q5_K: 162, Q6_K: 25 |
Sakura-Xiaomi-OCR-0-Q6_K.gguf |
F32: 133, Q6_K: 187 |
Sakura-Xiaomi-OCR-0-Q8_0.gguf |
F32: 133, Q8_0: 187 |
| 文件 | llama.cpp 版本 | 可执行文件 SHA-256 |
|---|---|---|
Sakura-Xiaomi-OCR-0-Q2_K.gguf |
b11669-620d2225c |
3b7167843ffb0f3677be964dc80cfc59a0167c82e11eff62f6334f66e831f209 |
Sakura-Xiaomi-OCR-0-Q3_K_M.gguf |
b11669-620d2225c |
3b7167843ffb0f3677be964dc80cfc59a0167c82e11eff62f6334f66e831f209 |
Sakura-Xiaomi-OCR-0-Q4_K_M.gguf |
b11669-620d2225c |
3b7167843ffb0f3677be964dc80cfc59a0167c82e11eff62f6334f66e831f209 |
Sakura-Xiaomi-OCR-0-Q5_K_M.gguf |
b11669-620d2225c |
3b7167843ffb0f3677be964dc80cfc59a0167c82e11eff62f6334f66e831f209 |
Sakura-Xiaomi-OCR-0-Q6_K.gguf |
b11669-620d2225c |
3b7167843ffb0f3677be964dc80cfc59a0167c82e11eff62f6334f66e831f209 |
Sakura-Xiaomi-OCR-0-Q8_0.gguf |
b11669-620d2225c |
3b7167843ffb0f3677be964dc80cfc59a0167c82e11eff62f6334f66e831f209 |
源许可证:apache-2.0。apache-2.0 allows redistribution with attribution
完整独立的中文版:README_zh.md
xiaomi-research/Xiaomi-OCR-0