# Baidu Open-Sources Unlimited OCR 2 for Hundred-Page Document Parsing

DevFeed: [Baidu Open-Sources Unlimited OCR 2 for Hundred-Page Document Parsing](<https://devfeed.tech/articles/baidu-open-sources-unlimited-ocr-2-for-hundred-page-document-parsing-101560.md>)

Original publisher: [Read original article](<https://www.marktechpost.com/2026/10/26/baidu-unlimited-ocr-2-open-source-long-document-ocr/>)

Author: Asif Razzaq

Published: 2026-10-27T05:26:36Z

Content type: article

Language: en

Sources: [MarkTechPost](<https://devfeed.tech/sources/marktechpost.md>)

Topics: [document ai](<https://devfeed.tech/topics/document-ai.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [ai-shorts](<https://devfeed.tech/tags/ai-shorts.md>), [applications](<https://devfeed.tech/tags/applications.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [attention](<https://devfeed.tech/tags/attention.md>), [baidu](<https://devfeed.tech/tags/baidu.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [computer-vision](<https://devfeed.tech/tags/computer-vision.md>), [context](<https://devfeed.tech/tags/context.md>), [context-window](<https://devfeed.tech/tags/context-window.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [editors-pick](<https://devfeed.tech/tags/editors-pick.md>), [flat](<https://devfeed.tech/tags/flat.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [mit](<https://devfeed.tech/tags/mit.md>), [model](<https://devfeed.tech/tags/model.md>), [new-releases](<https://devfeed.tech/tags/new-releases.md>), [ocr](<https://devfeed.tech/tags/ocr.md>), [open](<https://devfeed.tech/tags/open.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [request](<https://devfeed.tech/tags/request.md>), [staff](<https://devfeed.tech/tags/staff.md>), [tech-news](<https://devfeed.tech/tags/tech-news.md>), [technology](<https://devfeed.tech/tags/technology.md>)

## AI overview

Baidu's 3.34B-parameter, MIT-licensed Unlimited OCR 2 parses ordered page images into structured text, tables, formulas, figures, headings and reading order. Its SR-SWA attention uses a fixed 512-token reference set, a 128-token local window and top-16 selection over 32-token blocks to keep per-step decoding cost nearly flat as documents grow; image encoding and total runtime still increase with page count. Baidu reports scores of 84.6 on MPDocBench and 77.1 on MarathonDocBench, ahead of other models in its tests, though the benchmark figures are self-reported and the article says MarathonDocBench has no public release. Heading hierarchy is a weaker area: 48.2 on MarathonDocBench. The model card lists Transformers for quick tests and SGLang for serving; multi-page inference uses one request to retain cross-page context. Setup requires `trust_remote_code=True`; Baidu's serving example uses a customized SGLang wheel and warns that smaller page windows weaken cross-page merging.

## Source excerpt

Baidu has released Unlimited OCR 2, an MIT-licensed 3B OCR model that parses hundred-page documents in one request. Its SR-SWA attention keeps per-step decoding cost nearly flat, scoring 77.1 on MarathonDocBench The post Baidu Open-Sources Unlimited OCR 2 for Hundred-Page Document Parsing appeared first on MarkTechPost.