Hugging FaceAlexZhang, cuicheng, Jun Zhang, Manhui Lin, Yue ZhangAnnouncement
PaddleOCR 3.5: Running OCR and Document Parsing Tasks with a Transformers Backend
Summary
PaddleOCR 3.5 adds a more flexible inference-engine interface for OCR and document parsing, allowing supported models to run with a Hugging Face Transformers backend selected through engine="transformers". It keeps pipelines managed by PaddleOCR while exposing backend-specific settings such as dtype, device placement, and attention implementation through engine_config. The release supports command-line and Python usage, with examples configuring GPU execution and float32, bfloat16, or SDPA options according to hardware and deployment environment. This provides a more natural path for RAG, Document AI, search, analytics, and agent stacks centered on PyTorch and Transformers, while the default paddle_static backend is usually recommended when maximizing OCR or document parsing throughput is the priority.
Context
Document ingestion often precedes RAG, Document AI, search, analytics, and agent workflows. PDFs, scanned documents, screenshots, tables, charts, formulas, and complex layouts must be converted into reliable structured data; weak ingestion can cause downstream workflows to miss information, retrieve incorrect context, or produce unreliable answers.
Approach / What changed
PaddleOCR 3.5 introduces an inference-engine interface that selects the backend with engine and passes backend-specific settings through engine_config. Supported PaddleOCR models can run through Transformers while PaddleOCR continues managing the OCR or document parsing pipelines. Configuration examples include dtype, device type and ID, and attention implementation, with command-line and Python APIs provided.
Takeaways
The Transformers backend is selected with engine="transformers", while engine_config supports options including dtype, device placement, and attention implementation.
PaddleOCR continues to manage the pipelines behind supported OCR and document parsing tasks, so developers do not need to call each internal component manually.
The Transformers backend suits Hugging Face- and PyTorch-centered integration, but paddle_static is usually recommended when maximum OCR or document parsing throughput is the priority.
Source and freshness
- Source
- huggingface.co
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.