Unlimited-OCR-2 GGUF (CrispEmbed)
GGUF conversions of baidu/Unlimited-OCR-2 by Baidu, for CrispEmbed's native ggml runtime. All credit for the model belongs to the original authors; these files only change the storage format.
License and attribution
- The original model is released under the MIT License, Copyright (c) 2026 Baidu.
LICENSEis the verbatim upstream MIT text. The model repository declareslicense: mitbut ships no LICENSE file, so it is taken from the upstream code repository baidu/Unlimited-OCR@6e64831ab434 (SHA256d985048c6d69429d685fdbe7557340aa0897c0fd8dc038299b148b9c75dc3383).UPSTREAM_README.mdis the unmodified upstream model card at revision04647c7a6098d8d58915f003536a741c82eafb40(SHA2563276903e26b37f30d2443ed767a86bc422bebba74fe4c64394b6d6255bd01676).- These GGUFs are a modified (converted and, where noted, quantized) form of the original weights.
Files
| File | Precision | Bytes | SHA256 |
|---|---|---|---|
unlimited-ocr-2-f16.gguf |
F16 | 6,692,751,392 | f15d33d42fd1a63d7b70fbb8b92552369185bacd803560ae3bbd0cb6351a3697 |
unlimited-ocr-2-q8_0.gguf |
Q8_0 | 3,571,946,656 | a603cedac5577e0b9c3d98b7cbe78dc7642933df67f90e4e84ef8234365afd7b |
unlimited-ocr-2-q4_k-mix.gguf |
Q4_K_MIX | 2,295,035,584 | b71f158d36713e1c7ee39b7fb48193aa87a8592bca666f92caeae41093da493a |
Status and quality
Experimental: Q4_K_MIX - see the quality table before use.
Status per file. F16 is recommended (token-ID exact against the original on all four tiled trial pages). Q8_0 carries a caveat (box-coordinate tokens differ by 1-3 on 2 of 4 tiled pages; text unchanged; CUDA final-logit cosine 0.9555 is below the 0.97 Q8_0 bar). Experimental: Q4_K_MIX - it clears the owner's Q4_K final-logit cosine bar (> 0.94) on CPU and CUDA, but is not token-ID exact on any of the four cases; the recognized text matches F16 only after layout boxes are stripped.
| Precision | File size | Token IDs vs original (4 tiled pages) | Decoded text | Final-logit cosine min (teacher-forced) | Known divergences | Status |
|---|---|---|---|---|---|---|
| F16 | 6,383 MiB | 4/4 exact (tests/results/unlimited-ocr2/trial.json, verify-text-v2.json) |
raw UTF-8 text byte-exact 4/4 | reference for Q4_K_MIX scoring | none on the panel | recommended |
| Q8_0 | 3,397 MiB | 2/4 exact; table at token 7, receipt at tokens 131 and 258 (tests/results/unlimited-ocr2/trial.json) |
text unchanged; one box-coordinate token off by 1-3 per divergence | 0.9739 CPU / 0.9555 CUDA (docs/unlimited-ocr2-q4k-recipes.md) |
CUDA below the 0.97 Q8_0 bar | caveat |
Q4_K_MIX (unlimited_ocr2_q4k_shared8_v1) |
2,188.6 MiB | 0/4 exact vs F16; first divergence paragraphs@30, table@10, receipt@28, german@4 (tests/results/unlimited-ocr2/q4k-precision-q4kns.json) |
text equal to F16 with boxes stripped 4/4; box coordinates differ (max 2 px); every case reaches EOS; CER not measured | 0.9634 CPU (portable) / 0.9540 CUDA T4; top-1 agreement 0.980-0.993 | layout box coordinates; real-scan quality and Metal not measured | experimental |
Cells marked "not measured" were not measured; numbers come from the CrispEmbed receipts named in each row.
How the files were produced
- Downloaded
baidu/Unlimited-OCR-2at the pinned revision04647c7a6098d8d58915f003536a741c82eafb40; both safetensors shards were checked against the SHA256 values in CrispEmbed'sdocs/unlimited-ocr2-source.json. - Converted with
models/convert-unlimited-ocr-to-gguf.py(F32 lossless; F16 with--fp16). - Quantized variants were produced with CrispEmbed's own
crispembed-quantize(tools/quantize.cpp; 1-D tensors keep their source type, embeddings/router/lm_head/vision keep a Q8_0 floor): Q8_0 from the F32 GGUF; Q4_K_MIX, where listed, from the F16 GGUF with the named policyunlimited_ocr2_q4k_shared8_v1. - Built and uploaded by CrispEmbed commit
ff4cd2d50dbe62b088ceb2bf1baa0701f8dc3f74(workflowunlimited-ocr2-publish.yml);manifest.jsonlists every recipe, input pin, receipt and file hash.
Parity status (CrispEmbed native vs. the original PyTorch model, CPU, greedy)
Receipts were measured on the F32 conversion. A CPU precision sweep (receipt
tests/results/unlimited-ocr2/precision-sweep.json in CrispEmbed) found the F16 and Q8_0
conversions also token-ID exact on the untiled page; Q4_K and mixed Q4 variants were not (the experimental
Q4_K_MIX, where listed, is qualified only by the final-logit cosine gate above).
Untiled pages: generated token IDs are exactly identical to the original (65 tokens on
small-untiled).Tiled pages: generated token IDs are exactly identical to the original on 2 tiled pages (4x3 tiles, 1503 vision tokens), from CrispEmbed commit
595156eaon. Earlier runtimes emitted 256 instead of 100 vision tokens per 640px tile and matched the text only; the weights were never affected.The opt-in fast decoder reproduces the exact decoder token-for-token on all 3 pages.
Published files, user-style trial (Kaggle CPU, receipt
tests/results/unlimited-ocr2/trial.jsonin CrispEmbed; four tiled pages compared with the original): F16 is token-ID exact on all 4 (paragraphs, table, receipt, German), with the fast decoder equal to the exact decoder everywhere. Q8_0 is exact on the untiled panel page but diverges on 2 of the 4 tiled trial pages (table at generated token 7, receipt at tokens 131 and 258). Each divergence is one bounding-box coordinate token off by 1-3 (for example102vs99); sequence length and recognized text are unchanged. Use F16 when exact agreement with the original matters; Q8_0 is smaller and faster.Raw decoded output: original IDs and complete raw UTF-8 text are byte-exact on all four synthetic tiled F16 pages at runtime
8ca9d3de. Default tiling was used. Published GGUFs contain only the128000 base pieces; this runtime supplies the pinned831 missing added pieces, including<PAGE>,<BLOCK>,<FORK>and table<tr>/<td>markup. The converter now writes added-token metadata for future conversions; these published weights are unchanged and continue to require that runtime fallback.OUTPUT=legacypreserves the old marker-dropping output;OUTPUT=cleanis a separate layout-stripped rendering retaining table HTML.Real scans (receipt
tests/results/ocr-real-scans/native-uocr2-v2.jsonvstests/results/ocr-real-scans/ref-uocr2.jsonin CrispEmbed; published F16, runtimec077c719, default tiling, Kaggle CPU): 11/19 pages token-ID identical to the original. Mean CER on 14 public-domain book/report/table scans 0.0594 native vs 0.0589 original; word recall on 5 CORD receipts 0.53 vs 0.53. 3 of the 5 receipts also score word recall below 0.8 in the original model (repetition loops, hallucinated LaTeX): source-model behaviour, reproduced by the port.Not verified: GPU backends, long multi-page documents, task-level quality benchmarks.
Usage
Unlimited-OCR-2 support is default-off in CrispEmbed and is enabled with an environment gate:
CRISPEMBED_UNLIMITED_OCR2=1 crispembed -m unlimited-ocr-2-f16.gguf --ocr page.png
# pages larger than 640 px are tiled like the original (crop_mode=None);
# CRISPEMBED_UNLIMITED_OCR2_TILES=0 forces the faster untiled view.
# Output is the original's raw decode (layout markup kept);
# CRISPEMBED_UNLIMITED_OCR2_OUTPUT=clean strips <PAGE>/<BLOCK>label[box]<FORK> and keeps tables.
unlimited-ocr-2-q8_0-sh16.gguf (EXPERIMENTAL, 2026-11-08)
Q8_0 with the shared experts kept F16 (recipe q8sh16), quantized from unlimited-ocr-2-f16.gguf. Teacher-forced final-output cosine vs F16 on the four frozen cases: min 0.9728 on CPU, 0.9762 on CUDA (T4); box-stripped text equals F16 on 4/4; box coordinates can differ. Method: https://github.com/CrispStrobe/CrispEmbed/blob/main/docs/unlimited-ocr2-q4k-recipes.md
- Downloads last month
- 846
8-bit
16-bit
Model tree for cstr/Unlimited-OCR-2-GGUF
Base model
baidu/Unlimited-OCR-2