---
title: "Baidu's Unlimited-OCR Shrinks to 4-Bit to Fit on One GPU"
subtitle: "A W4A16 quantized build of Baidu's 3B Unlimited-OCR shrinks the model for consumer GPUs while preserving one-shot long-document parsing quality."
url: "https://alphasignal.ai/news/baidu-s-unlimited-ocr-shrinks-to-4-bit-to-fit-on-one-gpu"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-06-23T06:21:21.000Z"
updated: "2026-08-27T23:30:20.517Z"
type: "Model"
topics:
  - "Image"
  - "Gpus"
subtopics:
  - "Ocr"
  - "Vision Language"
  - "Quantization"
upvotes: 3223
source_url: "https://huggingface.co/sahilchachra/Unlimited-OCR-AWQ"
comments: 0
truncated: true
---

# Baidu's Unlimited-OCR Shrinks to 4-Bit to Fit on One GPU

> A W4A16 quantized build of Baidu's 3B Unlimited-OCR shrinks the model for consumer GPUs while preserving one-shot long-document parsing quality.

A community quantization of Baidu's [Unlimited-OCR](https://huggingface.co/baidu/Unlimited-OCR) just landed on Hugging Face, packaging one of the strongest open document-parsing models into a 4-bit weight format that fits on a single consumer GPU. The release, [sahilchachra/Unlimited-OCR-AWQ](https://huggingface.co/sahilchachra/Unlimited-OCR-AWQ), uses activation-aware weight quantization on the MoE text decoder while leaving the vision tower in BF16, so it plugs into `transformers`, vLLM, or SGLang the same way the original does.

## The base model, in one paragraph

Unlimited-OCR is Baidu's answer to a long-standing headache in end-to-end OCR: models get slower and hungrier as the output grows, because each generated token adds to the KV cache. Memory rises, generation drags, and parsing dozens of pages becomes impractical. Under the hood, Unlimited-OCR is a 3B-parameter Mixture-of-Experts model with only 500M parameters active, and it replaces decoder attention with Reference Sliding Window Attention (R-SWA) to keep the KV cache constant.

The practical payoff is one-shot long-horizon parsing. The model handles dozens of pages in one forward pass under a 32K maximum length, scores 93.23 on OmniDocBench v1.5 (6.22 points above the DeepSeek OCR baseline), and climbs to 93.92 on v1.6, with gains holding across text, formula, and table recognition.

## What the AWQ build actually changes

The quantized repo targets the parts of the network where 4-bit pays off most and leaves the accuracy-sensitive components alone. The scheme is `W4A16`, int4 symmetric with group size 128, produced with [llm-compressor](https://github.com/vllm-project/llm-compressor) using AWQ (activation-aware scaling calibrated on text). Concretely:

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [sahilchachra/Unlimited-OCR-AWQ - Hugging Face](https://huggingface.co/sahilchachra/Unlimited-OCR-AWQ)
- [Baidu Releases Unlimited OCR, a 3B Model That Keeps the KV Cache Flat](https://www.marktechpost.com/2026/06/24/baidu-releases-unlimited-ocr-a-3b-model-that-keeps-the-kv-cache-flat-for-long-document-parsing/)
- [baidu/Unlimited-OCR - Hugging Face](https://huggingface.co/baidu/Unlimited-OCR)
- [baidu/Unlimited-OCR - vLLM Recipes](https://recipes.vllm.ai/baidu/Unlimited-OCR)
- [Unlimited-OCR by Baidu: Open Source OCR for Long PDFs](https://pasqualepillitteri.it/en/news/6063/unlimited-ocr-baidu-long-pdfs)
