Mindket

Unlimited-OCR-2-GGUF

Newversion 1 · updated

Overview

GGUF files of the Unlimited-OCR-2 document OCR model in BF16, Q8_0 and Q4_K_M, with a vision projector. They run only in a llama.cpp build with the repository's patch, for people reading scanned and multi-page documents locally.

Unlimited-OCR-2-GGUF is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python with pip, to download the files
  • git, cmake and a C++ compiler, which is Visual Studio 2022 with C++ tools on Windows, the standard build tools package on Linux or the Xcode command line tools on macOS
  • The CUDA Toolkit, if you want to use an NVIDIA GPU
  • The official llama.cpp source at release b11913, which the card tested
Runs in
  • A llama.cpp build with the repository's patch applied, using its llama-mtmd-cli and llama-server tools
  • Windows, through a small prebuilt overlay that goes on top of the official llama.cpp Windows package
  • Linux and macOS, by building the patched llama.cpp yourself
Start with
pip install -U huggingface_hub
hf download RX5950XT/Unlimited-OCR-2-GGUF

Platform

WindowsOperating system
LinuxOperating system
macOSOperating system

About

What it is

This is a GGUF version of baidu/Unlimited-OCR-2, an OCR model that reads document pages from images. It comes in BF16, Q8_0 and Q4_K_M, with a vision projector file and a multimodal imatrix. It only runs in a llama.cpp build with the patch included in the repository.

Who it suits

People who need to read scanned pages or multi-page documents on their own machine, and who are comfortable compiling a patched llama.cpp. The card says Chinese and English pages were used in its tests.

IndustryWho uses itHow they use itExample
Document workBack-office teamsRead scanned pages into text with layout tagsParse a single scanned page
Legal and financeRecords teamsProcess multi-page documents locallyParse a three-page report
SoftwareOCR developersRun a local document parser through the llama.cpp toolsCall the command-line tool from a script
ResearchQuantization researchersStudy how quants affect OCR accuracyCompare Q8_0 and Q4_K_M with BF16

Anyone who wants to load it in LM Studio or Ollama can skip it, because the card says those tools cannot load these files.

Where to use it

  • A llama.cpp build with the repository's patch applied, using its llama-mtmd-cli and llama-server tools
  • Windows, through a small prebuilt overlay that goes on top of the official llama.cpp Windows package
  • Linux and macOS, by building the patched llama.cpp yourself
Use caseWhoWhat they get back
Single page parsingDocument teamsRecognized text with layout tags and box coordinates
Multi-page parsingRecords teamsText for each page of a document in one run
Custom quantizationAdvanced usersYour own quants, using the multimodal imatrix file

How to set it up

  • Python with pip, to download the files
  • git, cmake and a C++ compiler, which is Visual Studio 2022 with C++ tools on Windows, the standard build tools package on Linux or the Xcode command line tools on macOS
  • The CUDA Toolkit, if you want to use an NVIDIA GPU
  • The official llama.cpp source at release b11913, which the card tested
  1. Install the Hugging Face hub package and download the files.
  2. Download the official llama.cpp source and check out release b11913.
  3. Apply the patch file from this repository, then build the two tools.
pip install -U huggingface_hub
hf download RX5950XT/Unlimited-OCR-2-GGUF
hf download RX5950XT/Unlimited-OCR-2-GGUF llama.cpp-patch/unlimited-ocr2.patch --local-dir .
git apply /path/to/unlimited-ocr2.patch
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j --target llama-mtmd-cli llama-server

The card says to drop the CUDA flag if you have no NVIDIA GPU, and that macOS uses Metal automatically.

How to use it

Run llama-mtmd-cli with the language model file, the vision projector file and your page image. The card says every precision needs the projector file. This single-page command matches the original model's default mode.

./build/bin/llama-mtmd-cli \
  --jinja --temp 0 -c 32768 -n 8000 \
  --image page.png \
  -p "<PAGE><__media__>Multi page parsing."

Put your own value in its key setting first.

ToolWhat it does
llama-mtmd-cliRuns the model on one or more images from the command line
llama-serverServes the model from a local server
git applyAdds the Unlimited-OCR-2 support to llama.cpp
hf downloadFetches the model files or a single file such as the patch

Example

You run the command with Q8_0 and a scanned page named page.png. The model prints the recognized text with layout tags and box coordinates. For several pages, the card gives a second command with a larger context and a list of page images.

For newcomers and experts

If you are new, expect some setup work. Download the files, build the patched llama.cpp, then try one page with Q8_0, which the card recommends. Check the text against the page.

Experts will note why the patch exists. The decoder matches version 1 but the attention differs, using 2D page position encoding and sparse routed attention. Converting it like version 1 ran, but the card measured only 5.6 percent text match on a page. The patch implements the routing and keeps the router weights unquantized.

Mean text similarity to BF16, 64 test pages
Q8_099.46 percent
Q4_K_M99.18 percent
File sizes
FileSize
BF165.48 GiB
Q8_02.92 GiB
Q4_K_M2.01 GiB
Vision projector F16787 MiB
  1. Download the GGUF and projector files
  2. Apply the patch and build llama.cpp
  3. Run llama-mtmd-cli on page images
  4. Read the recognized text and tags

Good to know

  • Compatibility: mainline llama.cpp, LM Studio and Ollama cannot load these files, since the architecture is new
  • Quality: the median text match for both quants is 100 percent, but the worst Q4_K_M page scored 79.39 percent
  • Q4_K_M recipe: key layers stay at Q8_0 and the router stays unquantized, for a larger file than plain Q4_K_M
  • License: MIT
  • Cost to run: none named, no API key or account
  • Data it reaches: it downloads files from Hugging Face and reads the page images you give it
  • Not for: loading in tools that use mainline llama.cpp, or converting the model with the version 1 method, which gives wrong output

README and files

README

Unlimited-OCR-2-GGUF

GGUF files of the Unlimited-OCR-2 document OCR model in BF16, Q8_0 and Q4_K_M, with a vision projector. They run only in a llama.cpp build with the repository's patch, for people reading scanned and multi-page documents locally.

Made by RX5950XT on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: This is a GGUF version of baidu/Unlimited-OCR-2, an OCR model that reads document pages from images. It comes in BF16, Q8_0 and Q4_K_M, with a vision projector file and a multimodal imatrix. It only runs in a llama.cpp build with the patch included in the repository.

Who it suits: People who need to read scanned pages or multi-page documents on their own machine, and who are comfortable compiling a patched llama.cpp. The card says Chinese and English pages were used in its tests.

Industry | Who uses it | How they use it | Example
Document work | Back-office teams | Read scanned pages into text with layout tags | Parse a single scanned page
Legal and finance | Records teams | Process multi-page documents locally | Parse a three-page report
Software | OCR developers | Run a local document parser through the llama.cpp tools | Call the command-line tool from a script
Research | Quantization researchers | Study how quants affect OCR accuracy | Compare Q8_0 and Q4_K_M with BF16

Anyone who wants to load it in LM Studio or Ollama can skip it, because the card says those tools cannot load these files.

Where to use it:

  • A llama.cpp build with the repository's patch applied, using its llama-mtmd-cli and llama-server tools
  • Windows, through a small prebuilt overlay that goes on top of the official llama.cpp Windows package
  • Linux and macOS, by building the patched llama.cpp yourself
Use case | Who | What they get back
Single page parsing | Document teams | Recognized text with layout tags and box coordinates
Multi-page parsing | Records teams | Text for each page of a document in one run
Custom quantization | Advanced users | Your own quants, using the multimodal imatrix file

How to set it up:

  • Python with pip, to download the files
  • git, cmake and a C++ compiler, which is Visual Studio 2022 with C++ tools on Windows, the standard build tools package on Linux or the Xcode command line tools on macOS
  • The CUDA Toolkit, if you want to use an NVIDIA GPU
  • The official llama.cpp source at release b11913, which the card tested
  1. Install the Hugging Face hub package and download the files.
  2. Download the official llama.cpp source and check out release b11913.
  3. Apply the patch file from this repository, then build the two tools.
pip install -U huggingface_hub
hf download RX5950XT/Unlimited-OCR-2-GGUF
hf download RX5950XT/Unlimited-OCR-2-GGUF llama.cpp-patch/unlimited-ocr2.patch --local-dir .
git apply /path/to/unlimited-ocr2.patch
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j --target llama-mtmd-cli llama-server

The card says to drop the CUDA flag if you have no NVIDIA GPU, and that macOS uses Metal automatically.

How to use it: Run llama-mtmd-cli with the language model file, the vision projector file and your page image. The card says every precision needs the projector file. This single-page command matches the original model's default mode.

./build/bin/llama-mtmd-cli \
  --jinja --temp 0 -c 32768 -n 8000 \
  --image page.png \
  -p "<PAGE><__media__>Multi page parsing."

Put your own value in its key setting first.

Tool | What it does
llama-mtmd-cli | Runs the model on one or more images from the command line
llama-server | Serves the model from a local server
git apply | Adds the Unlimited-OCR-2 support to llama.cpp
hf download | Fetches the model files or a single file such as the patch

Example: You run the command with Q8_0 and a scanned page named page.png. The model prints the recognized text with layout tags and box coordinates. For several pages, the card gives a second command with a larger context and a list of page images.

For newcomers and experts: If you are new, expect some setup work. Download the files, build the patched llama.cpp, then try one page with Q8_0, which the card recommends. Check the text against the page.

Experts will note why the patch exists. The decoder matches version 1 but the attention differs, using 2D page position encoding and sparse routed attention. Converting it like version 1 ran, but the card measured only 5.6 percent text match on a page. The patch implements the routing and keeps the router weights unquantized.

Title: Mean text similarity to BF16, 64 test pages
Q8_0: 99.46 percent
Q4_K_M: 99.18 percent
Title: File sizes
File | Size
BF16 | 5.48 GiB
Q8_0 | 2.92 GiB
Q4_K_M | 2.01 GiB
Vision projector F16 | 787 MiB
Download the GGUF and projector files
Apply the patch and build llama.cpp
Run llama-mtmd-cli on page images
Read the recognized text and tags

Good to know:

  • Compatibility: mainline llama.cpp, LM Studio and Ollama cannot load these files, since the architecture is new
  • Quality: the median text match for both quants is 100 percent, but the worst Q4_K_M page scored 79.39 percent
  • Q4_K_M recipe: key layers stay at Q8_0 and the router stays unquantized, for a larger file than plain Q4_K_M
  • License: MIT
  • Cost to run: none named, no API key or account
  • Data it reaches: it downloads files from Hugging Face and reads the page images you give it
  • Not for: loading in tools that use mainline llama.cpp, or converting the model with the version 1 method, which gives wrong output

On Hugging Face, 13 November 2026

  • Task: image text to text
  • Library: gguf
  • Parameters: 2.9B
  • Weights: about 1.5 GB at 4-bit (estimate)
  • Formats: GGUF
  • Downloads in the last 30 days: 8,452
  • Likes: 8
  • License: mit
  • Based on: baidu/Unlimited-OCR-2
  • Tags: gguf, llama.cpp, document-parsing, vision-language, unlimited-ocr, quantized, imatrix, image-text-to-text, multilingual, conversational

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download RX5950XT/Unlimited-OCR-2-GGUF

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Unlimited-OCR-2-GGUF This page8,45282.9Bmit
Unlimited-OCR-2Shares unlimited-ocr · vision-language · multilingual519,3716843.3Bmit
MiniCPM-V-4.7-1B-ggufShares imatrix · llama.cpp · quantized168,6361141Bapache-2.0
Arete-27B-GGUFShares imatrix · llama.cpp · quantized1,9331526.9Bapache-2.0
Axion-1.0-35B-APEX-I-MiniPlus-V2.1-GGUFShares imatrix · llama.cpp · quantized686434.7Bapache-2.0
MiniCPM-OCR 1.0Shares document-parsing · vision-language · image-text-to-text128,4834571.3Bapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

upscaler

uwg · Kit

Holds a set of image upscaling models gathered from the OpenModelDB community, for people who want to enlarge low-resolution pictures with AI on their own comp…

New

Pixel Art XL

nerijs · Kit

A pixel art style add-on for Stable Diffusion XL that turns text prompts into pixel-style images, with an optional LCM LoRA for faster runs. For game makers, d…

New

VibeVoice-1.5B

microsoft · Kit

Turns written conversations into spoken audio with up to four speakers and about 90 minutes of speech, an open Microsoft text-to-speech model for research on p…

New

Similar in Developer

See all in Developer

voicetut-egyptian-tashkeel

masterofaudio2077 · Kit

Reads Egyptian Arabic text aloud and follows the short vowel marks you write into it. A fine-tune of VoiceTut-TTS that keeps its 19 built-in voices and voice c…

New

Runs Meta's Llama 3.1 8B Instruct chat model in 4-bit AWQ form, so it fits on a GPU with about 4 GiB of free memory for the weights. For developers who want a…

New

Ru-Jev

besktech · Kit

Scores a Russian-first decision from a context and a list of options, giving a probability for yes/no, choice or rating questions. Runs on a plain CPU, for tea…

New