Mindket

Unlimited-OCR

Newversion 1 · updated

Overview

Parses document images and multi-page PDFs into text with a 3.3B vision-language model from Baidu. For developers who add OCR and document parsing to their own tools.

Unlimited-OCR 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 and an NVIDIA GPU, since the example moves the model to CUDA
  • The package versions below, which the project tested with Python 3.12.3 and CUDA 12.9
  • About 6.7 GB of disk for the BF16 weights
Runs in
  • Python with the transformers library on NVIDIA GPUs
  • vLLM, which the project lists as supported for inference
  • ms-swift, which the project lists as supported for training
  • Baidu Cloud and ModelScope, where the project says the model is available
Start with
torch==2.10.0
torchvision==0.25.0
transformers==4.57.1

About

What it is

Unlimited-OCR is a 3.3B-parameter image-to-text model from Baidu for reading documents. You give it a page image, several page images or a PDF turned into images, and it parses them into text. The authors present it as a step beyond Deepseek-OCR, and it runs through the transformers library.

Who it suits

It suits developers and teams who turn scanned pages and multi-page documents into text inside their own code.

IndustryWho uses itHow they use itExample
Finance and legalOperations teamsParse scanned multi-page documents into textA stack of scanned contract pages read in one call
Publishing and archivesArchivistsDigitize page imagesOld scans turned into searchable text
SoftwareDevelopersAdd document parsing to an appA service that calls the model on each uploaded page
AI researchResearchersStudy long-document parsingCompare its output with Deepseek-OCR on the same pages

If you have no NVIDIA GPU, the transformers example here will not run as written, so you may want to skip it.

Where to use it

  • Python with the transformers library on NVIDIA GPUs
  • vLLM, which the project lists as supported for inference
  • ms-swift, which the project lists as supported for training
  • Baidu Cloud and ModelScope, where the project says the model is available
  • A Hugging Face Spaces demo, if you want to try it without installing anything
Use caseWhoWhat they get back
Single page parsingDevelopersText parsed from one image, saved to the output folder you name
Multi-page parsingDocument teamsParsed text for several page images in one call
PDF parsingData teamsParsed text for a PDF after its pages become images

How to set it up

You need these first:

  • Python and an NVIDIA GPU, since the example moves the model to CUDA
  • The package versions below, which the project tested with Python 3.12.3 and CUDA 12.9
  • About 6.7 GB of disk for the BF16 weights
  1. Install the pinned package versions with pip.
  2. Download the model files with the hub tool.
  3. Load the tokenizer and model with the Python code below.
torch==2.10.0
torchvision==0.25.0
transformers==4.57.1
Pillow==12.1.1
matplotlib==3.10.8
einops==0.8.2
addict==2.4.0
easydict==1.13
pymupdf==1.27.2.2
psutil==7.2.2
pip install -U huggingface_hub
hf download baidu/Unlimited-OCR
import os
import torch
from transformers import AutoModel, AutoTokenizer
model_name = 'baidu/Unlimited-OCR'
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModel.from_pretrained(
    model_name,
    trust_remote_code=True,
    use_safetensors=True,
    torch_dtype=torch.bfloat16,
)
model = model.eval().cuda()

How to use it

After loading, call infer on one image, or infer_multi on several page images. A single image can use the gundam setting or the base setting. Several pages and PDFs use the base size only.

model.infer(
    tokenizer,
    prompt='<image>document parsing.',
    image_file='your_image.jpg',
    output_path='your/output/dir',
    base_size=1024, image_size=640, crop_mode=True,
    max_length=32768,
    no_repeat_ngram_size=35, ngram_window=128,
    save_results=True,
)
ToolWhat it does
model.inferParses one image with the gundam or the base setting
model.infer_multiParses several page images in one call at image size 1024
PDF routeTurns each PDF page into an image with PyMuPDF at 300 dpi, then calls infer_multi

Example

You pass three page images, page1.png to page3.png, to infer_multi with the multi-page prompt. The model parses them together and saves the results to the output folder you set.

For newcomers and experts

This is an OCR model: it reads text out of pictures of pages. A first small thing to try is the Hugging Face Spaces demo, then the single-image example once the packages are installed.

Under the hood, gundam turns crop mode on at image size 640, while base turns it off at 1024. The examples set a maximum length of 32768 and a no-repeat n-gram size of 35, with a wider window for multi-page runs. The weights are BF16, and the 4-bit size is an estimate.

  1. Page images or PDF pages go in
  2. A prompt tells the model what to parse
  3. The model reads the pages on the GPU
  4. Parsed results save to your output folder

Good to know

Weight size depends on precision, and the 4-bit figure is an estimate.

Weight size by precision
BF166.7 GB
4-bit estimate1.7 GB
  • Remote code: the example sets trust_remote_code, so it runs code that ships with the model
  • Hardware: the transformers example targets NVIDIA GPUs
  • Other versions: 40 quantized and 16 fine-tuned versions made by other people are listed
  • License: MIT
  • Cost to run: none named, you supply the GPU
  • Data it reaches: the images and PDFs you point it at, and the output folder it writes to

README and files

README

Unlimited-OCR

Parses document images and multi-page PDFs into text with a 3.3B vision-language model from Baidu. For developers who add OCR and document parsing to their own tools.

Made by baidu 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: Unlimited-OCR is a 3.3B-parameter image-to-text model from Baidu for reading documents. You give it a page image, several page images or a PDF turned into images, and it parses them into text. The authors present it as a step beyond Deepseek-OCR, and it runs through the transformers library.

Who it suits: It suits developers and teams who turn scanned pages and multi-page documents into text inside their own code.

Industry | Who uses it | How they use it | Example
Finance and legal | Operations teams | Parse scanned multi-page documents into text | A stack of scanned contract pages read in one call
Publishing and archives | Archivists | Digitize page images | Old scans turned into searchable text
Software | Developers | Add document parsing to an app | A service that calls the model on each uploaded page
AI research | Researchers | Study long-document parsing | Compare its output with Deepseek-OCR on the same pages

If you have no NVIDIA GPU, the transformers example here will not run as written, so you may want to skip it.

Where to use it:

  • Python with the transformers library on NVIDIA GPUs
  • vLLM, which the project lists as supported for inference
  • ms-swift, which the project lists as supported for training
  • Baidu Cloud and ModelScope, where the project says the model is available
  • A Hugging Face Spaces demo, if you want to try it without installing anything
Use case | Who | What they get back
Single page parsing | Developers | Text parsed from one image, saved to the output folder you name
Multi-page parsing | Document teams | Parsed text for several page images in one call
PDF parsing | Data teams | Parsed text for a PDF after its pages become images

How to set it up: You need these first:

  • Python and an NVIDIA GPU, since the example moves the model to CUDA
  • The package versions below, which the project tested with Python 3.12.3 and CUDA 12.9
  • About 6.7 GB of disk for the BF16 weights
  1. Install the pinned package versions with pip.
  2. Download the model files with the hub tool.
  3. Load the tokenizer and model with the Python code below.
torch==2.10.0
torchvision==0.25.0
transformers==4.57.1
Pillow==12.1.1
matplotlib==3.10.8
einops==0.8.2
addict==2.4.0
easydict==1.13
pymupdf==1.27.2.2
psutil==7.2.2
pip install -U huggingface_hub
hf download baidu/Unlimited-OCR
import os
import torch
from transformers import AutoModel, AutoTokenizer
model_name = 'baidu/Unlimited-OCR'
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModel.from_pretrained(
    model_name,
    trust_remote_code=True,
    use_safetensors=True,
    torch_dtype=torch.bfloat16,
)
model = model.eval().cuda()

How to use it: After loading, call infer on one image, or infer_multi on several page images. A single image can use the gundam setting or the base setting. Several pages and PDFs use the base size only.

model.infer(
    tokenizer,
    prompt='<image>document parsing.',
    image_file='your_image.jpg',
    output_path='your/output/dir',
    base_size=1024, image_size=640, crop_mode=True,
    max_length=32768,
    no_repeat_ngram_size=35, ngram_window=128,
    save_results=True,
)
Tool | What it does
model.infer | Parses one image with the gundam or the base setting
model.infer_multi | Parses several page images in one call at image size 1024
PDF route | Turns each PDF page into an image with PyMuPDF at 300 dpi, then calls infer_multi

Example: You pass three page images, page1.png to page3.png, to infer_multi with the multi-page prompt. The model parses them together and saves the results to the output folder you set.

For newcomers and experts: This is an OCR model: it reads text out of pictures of pages. A first small thing to try is the Hugging Face Spaces demo, then the single-image example once the packages are installed.

Under the hood, gundam turns crop mode on at image size 640, while base turns it off at 1024. The examples set a maximum length of 32768 and a no-repeat n-gram size of 35, with a wider window for multi-page runs. The weights are BF16, and the 4-bit size is an estimate.

Page images or PDF pages go in
A prompt tells the model what to parse
The model reads the pages on the GPU
Parsed results save to your output folder

Good to know: Weight size depends on precision, and the 4-bit figure is an estimate.

Title: Weight size by precision
BF16: 6.7 GB
4-bit estimate: 1.7 GB
  • Remote code: the example sets trust_remote_code, so it runs code that ships with the model
  • Hardware: the transformers example targets NVIDIA GPUs
  • Other versions: 40 quantized and 16 fine-tuned versions made by other people are listed
  • License: MIT
  • Cost to run: none named, you supply the GPU
  • Data it reaches: the images and PDFs you point it at, and the output folder it writes to

On Hugging Face, 13 November 2026

  • Task: image text to text
  • Library: transformers
  • Parameters: 3.3B
  • Weights: about 6.7 GB in BF16; about 1.7 GB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 5,833,292
  • Likes: 5,004
  • License: mit
  • Quantized versions: 40
  • Fine-tunes: 16
  • Tags: transformers, safetensors, unlimited_ocr, feature-extraction, baidu, vision-language, image-text-to-text, conversational, multilingual

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download baidu/Unlimited-OCR

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-12

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 This page5,833,2925,0043.3Bmit
Unlimited-OCR-2Shares baidu · vision-language · multilingual519,3716843.3Bmit
Unlimited-OCR-2-GGUFShares vision-language · multilingual · image-text-to-text8,45282.9Bmit
MiniCPM-OCR JevShares vision-language · image-text-to-text · conversational41,426962.2Bapache-2.0
LightOnOCR-3-4BShares vision-language · image-text-to-text · conversational15,4911434.5Bapache-2.0
LightOnOCR-3-0.8BShares vision-language · image-text-to-text · conversational13,96599853Mapache-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.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

ingveUnlimited OCR: One-shot long-horizon parsing496 points · 110 repliesTech TrendingBaidu、数百ページの長文も高速OCRできる「Unlimited OCR 2」公開 https://pc.watch.impress.co.jp/docs/news/2152310.html2 likesverdvermNo signs of AI payoff outside the tech sectorllm/transformers may actually be better than prior methods (not my area of expertise) I did see a talk recently of fine-tuning a small LLM specifically for receipt transcription: https://www.youtube.com/watch?v=vDyxCHl-p8s https://github.com/fw-ai/cookbook/tree/main/training/case-st... HF has OCR…@strike007.bsky.social3. baidu/Unlimited-OCR-2 https://huggingface.co/baidu/Unlimited-OCR-2 (4/6)1 replyjohndoughDeepSeek-v4-flash-vision-expThere are models specifically for splitting an image into text regions, e.g. PP-DocLayoutV3 https://huggingface.co/PaddlePaddle/PP-DocLayoutV3 I am using a stripped-down minimal version of it which I uploaded here, since I am not a fan of huge dependency trees:…@strike007.bsky.socialAsynchronous sampling in LLM reinforcement learning creates a training-inference mismatch driven by inference engine numerics and stale weights, turning on-policy training data off-policy.1 likemy002Roboflow Playground: Try and Compare 30 Computer Vision ModelsNeat! Looks like an updated version of OCR Arena[0], which doesn't seem to have kept up with new models for a bit. Would be nice to see the inclusion of Mistral OCR 4, Baidu's Unlimited-OCR, and OlmOCR2. [0]OCR Arena: https://www.ocrarena.ai/デイリーHuggingFaceトレンド今日のHuggingFaceトレンド baidu/Unlimited-OCR-2Johnny_BonkMistral OCR 4.1How does this compare to Baidu Unlimited OCR. I've been very impressed with Baidu and it's essentially free to run on a decent computer, other than electricity costs.デイリーHuggingFaceトレンド今日のHuggingFaceトレンド baidu/Unlimited-OCR-2 Unlimited OCR Works 2を提供するためのリポジトリです。 単一ページから複数ページにわたる文書まで、ページを跨いだ文脈を保持したまま解析できるUnlimited-Horizon Parsingを実現しています。 TransformersやSGLangを用いた推論をサポートし、高度なOCR処理を目的としています。potsandpansLeanstral 1.5: Proof abundance for allThis just dropped: https://huggingface.co/baidu/Unlimited-OCR Which can run comfortably on 12gb of vram. I gave it a whirl and it does seem pretty competitive. I wonder how that compares for your usecase猫国防Unlimited OCR Works 2: Pioneering the OCR-3.0 Era: From Long- to Unlimited-Horizon Parsing 百度的光学字符识别 Unlimited OCR 模型升级版 - 保持每一步解码的延迟和内存占用几乎保持恒定,不被文档长度影响 - 无限上下文识别 - 到达同类模型的顶尖水平 GitHub: github.com/baidu/Unlimi... Hugging Face: huggingface.co/baidu/Unlimi... ModelScope: modelscope.cn/models/Paddl...

Searched

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Developer

See all in Developer

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k