PaddleOCR-VL-1.8 Document Parsing Agent: PP-DocLayoutV4 & vLLM RAG Guide

PaddleOCR-VL-1.8 is an Apache-2.0 two-stage document parsing system combining the PP-DocLayoutV4 geometric layout engine with a 958.6M-parameter (0.9B) ERNIE4.5-backed vision-language recognizer. Scoring 97.44 on OmniDocBench v1.6 and sustaining 4.34 pages/s on one A100 80 GB GPU via vLLM 0.19.0, it feeds clean Markdown and JSON into autonomous RAG agents.
PaddleOCR-VL-1.8 Document Parsing Agent: PP-DocLayoutV4 & vLLM RAG Guide: PaddleOCR-VL-1.8 is an Apache-2.0 two-stage document parsing system combining the PP-DocLayoutV4 geometric layout engine with a 958.6M-parameter (0.9B) ERNIE4.5-backed vision-language recognizer. Scoring 97.44 on OmniDocBench v1.6 and sustaining 4.34 pages/s on one A100 80 GB GPU via vLLM 0.19.0, it feeds clean Markdown and JSON into autonomous RAG agents. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- State-of-the-Art Compact Footprint: 958,588,736 BF16 parameters (~1.92 GB weights) reach 97.44 on OmniDocBench v1.6 and 94.67 on Real5-OmniDocBench.
- Geometric Skew & Warp Rectification: PP-DocLayoutV4 predicts quadrilateral boxes plus roll, shear, and perspective via a frozen-backbone deformation head.
- High-Throughput vLLM 0.19.0 Serving: Asynchronous batched visual encoding parses 4.34 pages/s on a single A100 GPU (1.34x to 1.57x faster than baselines).
- Cross-Page Document Reconstruction: Post-processing restores heading hierarchies, continued multi-page tables, and split paragraphs, boosting MPDocBench from 79.02 to 87.80.
import { createAgent } from '@smoke-monkey/harness';// Document-grounded agent orchestrating local PaddleOCR-VL-1.8 via vLLM + CLI pipelineconst agent = createAgent({agentId: 'paddleocr-vl-1-8-doc-agent',provider: 'openai-compatible',baseUrl: 'http://127.0.0.1:8118/v1',model: 'PaddleOCR-VL-1.8-0.9B',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'allow',run_command: 'ask',},});async function main() {const result = await agent.run('Run paddleocr doc_parser --pipeline_version v1.8 --use_layout_deform True on ./invoices/, merge continued tables with restructure_pages, and index Markdown chunks.');console.log('Parsed Document Pipeline:', result.summary);}main().catch(console.error);
Watch: Related Video Guides
Baidu’s 0.9B Model Beats GPT-4o & Qwen2.5-VL With 97.4% Score! (PaddleOCR-VL-1.8 Setup)
Why "0.9B" PaddleOCR-VL Uses as Much VRAM as 3B dots.ocr (Measured)
What Is PaddleOCR-VL-1.8 and How Does PP-DocLayoutV4 Work?
PaddleOCR-VL-1.8 is a two-stage open-weight vision-language document parser (Apache-2.0, arXiv:2612.04209) released in December 2026 that pairs a specialized geometric layout detector (PP-DocLayoutV4) with a 0.9B-parameter ERNIE4.5-derived recognition model (958,588,736 BF16 parameters). Rather than running a multi-billion-parameter general VLM over full-page pixels, Stage 1 detects elements and rectifies distortion before Stage 2 transcribes cropped blocks in reading order.
Compared with PP-DocLayoutV3, PP-DocLayoutV4 directly regresses quadrilateral bounding boxes, adds a post-frozen deformation head that estimates page-level roll, shear, and perspective, and replaces naive spatial heuristics with D2RO (separating local successor relations from global precedence relations). That prevents cascading reading-order errors on photographed, bent, or multi-column enterprise PDFs:
| Benchmark Suite | Scale / Protocol | PaddleOCR-VL-1.8 Score | Architectural Driver |
|---|---|---|---|
| OmniDocBench v1.6 | Official v1.6_full end-to-end | 97.44 (0.1131 edit dist.) | TEDS +1.80, TEDS-S +1.20 vs v1.6 |
| Real5-OmniDocBench | 6,775 imgs (5 physical distortions) | 94.67 (94.38–95.08 range) | +2.12 skew & +2.10 warp via quad heads |
| Wild-OmniDocBench | 1,350 folded/screen photos (v1.5) | 91.18 (92.08 table TEDS) | Perspective rectification before crop |
| MDPBench (17 Langs) | 2,810 multilingual images | 91.02 (Non-Latin 91.80) | Arabic 94.20, Chinese 95.03 recognition |
| CMLOCRBench (Minority) | 8 ethnic-minority scripts | 0.868 (1-CER) | Decontaminated mining vs 0.703 baseline |
| MPDocBench (Multi-Page) | Cross-page structure recovery | 87.80 (up from 79.02) | restructure_pages table & header merge |
Deploying PaddleOCR-VL-1.8 with vLLM 0.19.0 and Deformation Correction
For production ingestion pipelines, decoupling layout detection from vLLM recognition lets you saturate an NVIDIA A100 80 GB GPU at 4.34 pages/s with batched visual encoding. Note that layout deformation correction (--use_layout_deform True), chart recognition, and seal recognition are disabled by default to maximize raw throughput—enable deformation correction explicitly when ingesting mobile camera captures or skewed scans.
In vLLM 0.19.0, set --no-enable-prefix-caching and --mm-processor-cache-gb 0 as specified in the official model card to keep multimodal processor memory bounded across heterogeneous crop aspect ratios:
# 1. Download and extract the official PaddleOCR-VL-1.8 inference checkpoint
mkdir -p "$PWD/models"
curl -fL https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PaddleOCR-VL-1.8_infer.tar \
| tar -xf - -C "$PWD/models"
# 2. Launch vLLM 0.19.0 recognition server on loopback port 8118
docker run --rm --gpus '"device=0"' --network host \
--mount "type=bind,source=$PWD/models/PaddleOCR-VL-1.8_infer,target=/model,readonly" \
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleocr-genai-vllm-server:paddleocr3.8-nvidia-gpu-vllm0.19.0 \
vllm serve /model --served-model-name PaddleOCR-VL-1.8-0.9B \
--trust-remote-code --max-num-batched-tokens 16384 \
--no-enable-prefix-caching --mm-processor-cache-gb 0 \
--host 127.0.0.1 --port 8118
# 3. Verify server health and invoke the v1.8 doc_parser pipeline with deformation rectification
curl -fsS "http://127.0.0.1:8118/v1/models"
paddleocr doc_parser -i ./sample-contract.pdf --pipeline_version v1.8 \
--use_layout_deform True --vl_rec_backend vllm-server \
--vl_rec_server_url "http://127.0.0.1:8118/v1" --save_path ./outputMemory Footprint & Element-Level Crop Tuning
At 958.6M BF16 parameters (~1.92 GB weights), PaddleOCR-VL-1.8-0.9B comfortably fits on 16 GB or 24 GB GPUs when paired with max_pixels = 1280 * 28 * 28 (or 2048 * 28 * 28 for dense text spotting).
Direct Transformers Integration & Task Prompts for Agentic Tools
When building lightweight MCP document-inspection tools in Python 3.11+ (transformers==5.25.0), you can bypass the full page pipeline for targeted crop verification using six canonical task prompts: OCR:, Table Recognition:, Formula Recognition:, Chart Recognition:, Spotting:, and Seal Recognition:. For spotting tasks on crops smaller than 1500 px on both edges, upscaling 2x via Lanczos resampling prevents small-glyph truncation.
Pairing this two-stage extractor with Smoke Monkey Harness eliminates brittle PDF text scraping: agents receive deterministic Markdown tables with preserved cross-page headers rather than scrambled multi-column text streams.
Frequently Asked Questions
Q:How many parameters does PaddleOCR-VL-1.8 have?
The recognition VLM checkpoint (PaddlePaddle/PaddleOCR-VL-1.8) contains 958,588,736 BF16 parameters (~0.96B), keeping the PaddleOCR-VL-1.5/1.6 recognition architecture while upgrading the Stage 1 layout detector to PP-DocLayoutV4.
Q:How fast is PaddleOCR-VL-1.8 on a single A100 GPU?
Using its asynchronous serving pipeline with batched visual encoding over vLLM 0.19.0, PaddleOCR-VL-1.8 achieves 4.34 pages per second on a single NVIDIA A100 80 GB GPU (1.34x to 1.57x faster than compared systems).
Q:How do I enable page skew and perspective rectification in v1.8?
Layout deformation correction is off by default. Pass --use_layout_deform True to the paddleocr doc_parser CLI or use_layout_deform=True to PaddleOCRVL in Python.
Q:Why does PaddleOCR-VL-1.8 recommend --no-enable-prefix-caching in vLLM?
Because Stage 2 processes tightly cropped, varying-resolution document regions rather than shared multi-turn text prefixes, disabling prefix caching and setting --mm-processor-cache-gb 0 avoids redundant vision-cache overhead.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.