# Baidu releases open-source Unlimited OCR 2 for parsing long documents

> Original title: Congrats to @Baidu_Inc on Unlimited OCR 2! An entire book parsed in a single request, with decode latency and memory staying flat across ...

- Source: SGLang
- Published: 2026-10-27T05:00:44.000Z
- Bad Influence: https://badinfluence.news/items/r66rd90tctwadwt584139zz02
- Original: https://x.com/sgl_project/status/2114945367712366718

## Summary

Baidu has released Unlimited OCR 2 as an open-source model that parses documents of virtually any length within a finite context window. According to SGLang, its SR-SWA mechanism keeps decoding latency and memory nearly constant as documents grow, and the model reports state-of-the-art results on MPDocBench and MarathonDocBench. SGLang says it is the recommended serving path, with serving instructions in the model card and a cookbook to follow.

## Post

Congrats to @Baidu_Inc on Unlimited OCR 2! An entire book parsed in a single request, with decode latency and memory staying flat across hundreds of pages 👀

Proud to be the recommended serving path. Serving instructions are in the model card:  https://huggingface.co/baidu/Unlimited-OCR-2

Cookbook coming

## Quoted post @Baidu_Inc

> Unlimited OCR 2 is here, and it's open source. 📖 ✨
> 
> Longer documents can mean a lot more attention computation. Our new SR-SWA mechanism keeps that in check by condensing text-visual attention interactions into a fixed-size set of working references.
> 
> Here's what it delivers:
> - Document parsing at virtually any length, within a finite context window
> - Nearly constant per-step decoding latency and memory footprint as documents grow longer
> - State-of-the-art performance on MPDocBench and MarathonDocBench, covering documents from dozens to hundreds of pages
> 
> Check out the model here ↓

https://x.com/Baidu_Inc/status/2114910381311512987
