Bonsai-27B-GGUF
lmstudio-community · Kit
A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…
Baidu's 3.3B document parsing model for long documents, using SR-SWA attention to keep decoding cost nearly flat, with Transformers and SGLang routes. Suits teams digitizing long reports and books.
Unlimited-OCR-2 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.
pip install torch==2.13.0 torchvision pillow transformers==4.52.1 huggingface-hub==0.36.0 \ tokenizers==0.21.4 addict==2.4.0 einops==0.8.2 easydict==1.13
Unlimited OCR 2 is a 3.3B parameter model from Baidu that reads document images and turns them into text. It is built for documents that run to hundreds of pages. A new attention scheme, SR-SWA, keeps the working references to a fixed size, for example 512 tokens. Decoding time and memory then stay almost flat however long the document is.
Teams that turn long scanned documents into text, developers who build document pipelines, and researchers who test long document parsing.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Finance and legal | Document teams | Turn long scanned reports into text | Parse a long filing |
| Publishing | Archivists | Digitize books and papers | Convert a scanned book |
| Software | Developers | Add document parsing to an app | Call the model from a Python script |
| Research | OCR researchers | Test on long document benchmarks | Try the MarathonDocBench set |
Skip it if you only read short snippets of text, since a lighter tool will do for that.
| Use case | Who | What they get back |
|---|---|---|
| Long document parsing | Document teams | Text read from long documents |
| Quick test | Developers | Output from a short Transformers script |
| Serving | Platform teams | A document parsing service built on SGLang |
pip install torch==2.13.0 torchvision pillow transformers==4.52.1 huggingface-hub==0.36.0 \ tokenizers==0.21.4 addict==2.4.0 einops==0.8.2 easydict==1.13
pip install -U huggingface_hub hf download baidu/Unlimited-OCR-2
Load the model and tokenizer once, then pass pages through it. The card text here stops after the loading lines.
import torch from transformers import AutoModel, AutoTokenizer model_name = "baidu/Unlimited-OCR-2"
| Tool | What it does |
|---|---|
| Transformers | The native route, for quick tests |
| SGLang | The route the card recommends for serving |
| SR-SWA | The attention scheme that keeps decoding cost flat |
| hf download | Copies the repository files to your computer |
Feed the pages of a long scanned report through the model. You should get the text of the document back. The card text here does not show the exact output format, so check it on one page first.
If you are new to this, try the hosted demo on Hugging Face Spaces first. Then run the Transformers route on a single page of your own.
If you know the field, SR-SWA compresses the text to visual attention into a fixed set of working references. That bounds the cost of each decoding step and removes the quadratic growth in attention as documents get longer. The card claims top results on MPDocBench and MarathonDocBench.
Baidu's 3.3B document parsing model for long documents, using SR-SWA attention to keep decoding cost nearly flat, with Transformers and SGLang routes. Suits teams digitizing long reports and books.
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.
What it is: Unlimited OCR 2 is a 3.3B parameter model from Baidu that reads document images and turns them into text. It is built for documents that run to hundreds of pages. A new attention scheme, SR-SWA, keeps the working references to a fixed size, for example 512 tokens. Decoding time and memory then stay almost flat however long the document is.
Who it suits: Teams that turn long scanned documents into text, developers who build document pipelines, and researchers who test long document parsing.
Industry | Who uses it | How they use it | Example
Finance and legal | Document teams | Turn long scanned reports into text | Parse a long filing
Publishing | Archivists | Digitize books and papers | Convert a scanned book
Software | Developers | Add document parsing to an app | Call the model from a Python script
Research | OCR researchers | Test on long document benchmarks | Try the MarathonDocBench set
Skip it if you only read short snippets of text, since a lighter tool will do for that.
Where to use it:
Use case | Who | What they get back
Long document parsing | Document teams | Text read from long documents
Quick test | Developers | Output from a short Transformers script
Serving | Platform teams | A document parsing service built on SGLang
How to set it up:
pip install torch==2.13.0 torchvision pillow transformers==4.52.1 huggingface-hub==0.36.0 \
tokenizers==0.21.4 addict==2.4.0 einops==0.8.2 easydict==1.13
pip install -U huggingface_hub
hf download baidu/Unlimited-OCR-2
How to use it: Load the model and tokenizer once, then pass pages through it. The card text here stops after the loading lines.
import torch
from transformers import AutoModel, AutoTokenizer
model_name = "baidu/Unlimited-OCR-2"
Tool | What it does
Transformers | The native route, for quick tests
SGLang | The route the card recommends for serving
SR-SWA | The attention scheme that keeps decoding cost flat
hf download | Copies the repository files to your computer
Example: Feed the pages of a long scanned report through the model. You should get the text of the document back. The card text here does not show the exact output format, so check it on one page first.
For newcomers and experts: If you are new to this, try the hosted demo on Hugging Face Spaces first. Then run the Transformers route on a single page of your own.
If you know the field, SR-SWA compresses the text to visual attention into a fixed set of working references. That bounds the cost of each decoding step and removes the quadratic growth in attention as documents get longer. The card claims top results on MPDocBench and MarathonDocBench.
Document pages go in
The vision side encodes them
SR-SWA keeps a fixed working set
Text is decoded page after page
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download baidu/Unlimited-OCR-2
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Unlimited-OCR-2 This page | 519,371 | 684 | 3.3B | mit | |
| Unlimited-OCRShares baidu · vision-language · multilingual | 5,833,292 | 5,004 | 3.3B | mit | |
| Unlimited-OCR-2-GGUFShares unlimited-ocr · vision-language · multilingual | 8,452 | 8 | 2.9B | mit | |
| paraphrase-multilingual-MiniLM-L12-v2Shares multilingual · feature-extraction · transformers | 26,540,125 | 1,505 | 118M | apache-2.0 | |
| harrier-oss-v1-0.6bShares multilingual · feature-extraction · transformers | 218,439 | 338 | 596M | mit | |
| voyage-4-nanoShares multilingual · feature-extraction · transformers | 90,118 | 152 | 346M | apache-2.0 |
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.
lmstudio-community · Kit
A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…
LibertAIDAI · Kit
Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…
facebook · Kit
Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…
alpindale · Kit
Tags every character of C source code for syntax highlighting with a tiny neural network of about 984 weights, run through a small C program. For developers an…
prithivMLmods · Kit
Try a set of LoRAs for the FLUX.2 Klein image model in a Gradio app that runs in your browser or on your own computer. Made for people who make or test AI imag…
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…