Memory & RAG
~8 min readUpdated: December 2026

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

PaddleOCR-VL-1.8 Document Parsing Agent with PP-DocLayoutV4 and vLLM in Smoke Monkey

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.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

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.

Key Architectural Takeaways
Quick Implementation Examplepaddleocr-vl-1-8-rag-agent.ts
paddleocr-vl-1-8-rag-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
// Document-grounded agent orchestrating local PaddleOCR-VL-1.8 via vLLM + CLI pipeline
const 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);
Video Guides

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 SuiteScale / ProtocolPaddleOCR-VL-1.8 ScoreArchitectural Driver
OmniDocBench v1.6Official v1.6_full end-to-end97.44 (0.1131 edit dist.)TEDS +1.80, TEDS-S +1.20 vs v1.6
Real5-OmniDocBench6,775 imgs (5 physical distortions)94.67 (94.38–95.08 range)+2.12 skew & +2.10 warp via quad heads
Wild-OmniDocBench1,350 folded/screen photos (v1.5)91.18 (92.08 table TEDS)Perspective rectification before crop
MDPBench (17 Langs)2,810 multilingual images91.02 (Non-Latin 91.80)Arabic 94.20, Chinese 95.03 recognition
CMLOCRBench (Minority)8 ethnic-minority scripts0.868 (1-CER)Decontaminated mining vs 0.703 baseline
MPDocBench (Multi-Page)Cross-page structure recovery87.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:

bash
# 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 ./output

Memory 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.

Google Search Questions & Answers

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 guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness