--- comments: true --- # PaddleOCR-VL-1.8 Introduction PaddleOCR 3.8.0 uses PaddleOCR-VL-1.8 for document parsing by default. PP-DocLayoutV4 detects regions and determines reading order. The 0.9B VLM recognizes each region, and the pipeline assembles the results into Markdown or JSON. The recognizer uses the same network architecture as PaddleOCR-VL-1.5 and 1.6 with updated weights. [Hugging Face model card](https://huggingface.co/PaddlePaddle/PaddleOCR-VL-1.8)
PaddleOCR-VL-1.8 document parsing accuracy and throughput
## Architecture ### PP-DocLayoutV4 PP-DocLayoutV4 predicts element categories, quadrilateral boundaries, and reading order in a single forward pass. D²RO models immediate successors and global precedence separately. A deformation head estimates page rotation, shear, and perspective so the pipeline can optionally rectify the cropped regions before recognition.
Layout analysis with PP-DocLayoutV4 and recognition with the 0.9B VLM
### Recognition training data The training data target rare characters, ethnic-minority scripts, complex tables, and formulas. Candidate regions are checked for overlap with evaluation data, labeled and corrected by task, then combined with targeted synthetic examples for full-parameter supervised fine-tuning. Errors on the development set guide the next round of data mining and synthesis.
Training data collection and iteration for PaddleOCR-VL-1.8
## Local inference PaddleOCR 3.8.0 requires Python 3.9 or later and PaddleX 3.8.x. See the [installation guide](../../installation.en.md) for environment setup. The CLI parses individual images and PDF documents. ```bash paddleocr doc_parser -i document.pdf --pipeline_version v1.8 --save_path output ``` The Python API can merge tables, relevel headings, and reconnect paragraphs across multiple pages. ```python from paddleocr import PaddleOCRVL pipeline = PaddleOCRVL(pipeline_version="v1.8") pages = list(pipeline.predict("document.pdf")) for page in pipeline.restructure_pages(pages): page.save_to_markdown(save_path="output") ``` - Set `use_layout_deform=True` (`--use_layout_deform True` in the CLI) to enable layout deformation correction. - Chart and seal regions are returned as images by default. Enable their recognition with `use_chart_recognition=True` and `use_seal_recognition=True`. - For two or more pages, `restructure_pages()` runs document post-processing when both cross-page table merging and heading releveling are enabled. The first call downloads the models from BOS. For offline Python use, extract the [post-processing model bundle](https://paddle-model-ecology.bj.bcebos.com/paddlex/PaddleX3.0/doc_postprocess/PaddleOCR-VL-1.8-doc-postprocess-models.tar.gz) and point `PADDLEX_DOC_POSTPROCESS_MODELS` to the directory containing `bundle.json`. - Set `pipeline_version="v1.6"` to select the previous pipeline. See the [PaddleOCR-VL tutorial](../../pipeline_usage/PaddleOCR-VL.en.md) for the complete parameter list. ## Serving the VLM with vLLM On Linux x86-64 with NVIDIA Container Toolkit, start the recognition server with the 3.8 vLLM 0.19.0 image. The example uses GPU 0 and binds the server to loopback for a PaddleOCR client on the same host. ### Start the server with PaddleOCR ```bash docker run --rm --gpus 'device=0' --network host \ ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleocr-genai-vllm-server:paddleocr3.8-nvidia-gpu-vllm0.19.0 \ paddleocr genai_server --model_name PaddleOCR-VL-1.8-0.9B \ --backend vllm --host 127.0.0.1 --port 8118 ``` ### Start the server directly with vLLM The same 3.8 image can serve the BOS checkpoint with `vllm serve`. ```bash mkdir -p 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 models 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 ``` ### Call the server with PaddleOCR Once the server is ready, check the model list and run the PaddleOCR pipeline from a second terminal. ```bash curl -fsS http://127.0.0.1:8118/v1/models paddleocr doc_parser -i document.pdf --pipeline_version v1.8 \ --vl_rec_backend vllm-server --vl_rec_server_url http://127.0.0.1:8118/v1 \ --save_path output ``` ## Region recognition with Transformers Use a separate Python 3.11 or later environment. This example recognizes text in a cropped region. For prompts for tables, charts, formulas, spotting, and seals, see the [Hugging Face model card](https://huggingface.co/PaddlePaddle/PaddleOCR-VL-1.8). ```bash python -m pip install "transformers[torch,vision]==5.25.0" curl -fL https://huggingface.co/datasets/hf-internal-testing/transformers-synthetic-assets/resolve/main/images/paddle_general_ocr_001.png \ -o test.png ``` The example loads the checkpoint from Hugging Face by default. If access is restricted, sign in with `hf auth login` or set `PADDLEOCR_VL_MODEL` to the local checkpoint directory extracted above. ```python import os import torch from PIL import Image from transformers import AutoModelForImageTextToText, AutoProcessor checkpoint = os.environ.get("PADDLEOCR_VL_MODEL", "PaddlePaddle/PaddleOCR-VL-1.8") device = "cuda" if torch.cuda.is_available() else "cpu" dtype = torch.bfloat16 if device == "cuda" and torch.cuda.is_bf16_supported() else torch.float32 model = AutoModelForImageTextToText.from_pretrained(checkpoint, dtype=dtype).to(device).eval() processor = AutoProcessor.from_pretrained(checkpoint) messages = [{ "role": "user", "content": [ {"type": "image", "image": Image.open("test.png").convert("RGB")}, {"type": "text", "text": "OCR:"}, ], }] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", processor_kwargs={ "images_kwargs": { "size": { "shortest_edge": processor.image_processor.size["shortest_edge"], "longest_edge": 1280 * 28 * 28, } }, }, ).to(device) with torch.inference_mode(): output = model.generate(**inputs, max_new_tokens=512) tokens = output[0, inputs["input_ids"].shape[-1]:].tolist() print(processor.decode(tokens, skip_special_tokens=True)) ``` ## 3.8 deployment images Use the `ccr-2vdh3abv-pub.cnc.bj.baidubce.com` registry. Select the 3.8 tags that match your deployment. | Component | Image repository | Online tag | Offline tag | | --- | --- | --- | --- | | Standard NVIDIA pipeline | `paddlepaddle/paddleocr-vl` | `paddleocr3.8-nvidia-gpu` | `paddleocr3.8-nvidia-gpu-offline` | | SM120 pipeline (compute capability 12.0) | `paddlepaddle/paddleocr-vl` | `paddleocr3.8-nvidia-gpu-sm120` | `paddleocr3.8-nvidia-gpu-sm120-offline` | | Shared vLLM 0.19.0 server | `paddlepaddle/paddleocr-genai-vllm-server` | `paddleocr3.8-nvidia-gpu-vllm0.19.0` | `paddleocr3.8-nvidia-gpu-vllm0.19.0-offline` | The standard NVIDIA and SM120 pipelines share the VLM server images. Online deployments download the models from BOS. The offline pipeline images include PP-DocLayoutV4 and the document post-processing models. The offline VLM image includes the recognition model. See the [standard NVIDIA tutorial](../../pipeline_usage/PaddleOCR-VL.en.md) and the [SM120 tutorial](../../pipeline_usage/PaddleOCR-VL-NVIDIA-Blackwell.en.md). To serve the VLM with the standalone PaddleX CLI, use `paddlepaddle/paddlex-genai-vllm-server:paddlex3.8-vllm0.19.0`. ## High-stability serving (HPS) For VL-1.8, use `paddlex/hps:paddlex3.8-gpu` or `paddlex/hps:paddlex3.8-cpu` with the [3.8 VL-1.8 HPS SDK](https://paddle-model-ecology.bj.bcebos.com/paddlex/PaddleX3.0/deploy/paddlex_hps/public/sdks/v3.8/paddlex_hps_PaddleOCR-VL-1.8_sdk.tar.gz) and the vLLM server image listed above. The CPU base runs the Triton pipeline on the CPU. The VLM server still requires an NVIDIA GPU. The VL-1.8 HPS Compose configuration starts two vLLM HTTP frontends. For multi-page documents, call `/restructure-pages` or set `restructurePages` in a `/layout-parsing` request. Enable `mergeTables` and `relevelTitles` to run document post-processing. See the [HPS deployment guide](https://github.com/PaddlePaddle/PaddleOCR/blob/{{PADDLEOCR_GITHUB_REF}}/deploy/paddleocr_vl_docker/hps/README_en.md) for startup commands, ports, and example requests. End-to-end verification of the 3.8 images covered HPS CPU and GPU configurations on A100 and standard NVIDIA online and offline deployments on a 32 GB V100. For HPS, check that the driver supports both the Triton pipeline and vLLM containers. ## Evaluation The results below come from the model card. Page-level evaluations use layout deformation correction and follow the protocol for each benchmark. ### Document parsing #### OmniDocBench v1.6 PaddleOCR-VL-1.8 scores **97.44** overall with a reading-order edit distance of **0.1131** under the official `v1.6_full` end-to-end protocol. Relative to VL-1.6, table TEDS improves by 1.80 and TEDS-S by 1.20. [OmniDocBench leaderboard](https://opendatalab.com/omnidocbench)
End-to-end accuracy comparison on OmniDocBench v1.6
#### Real5-OmniDocBench The model averages **94.67** across skew, warping, scanning, illumination, and screen photography. The skew and warping scores improve by 2.12 and 2.10 points over VL-1.6. The evaluation covers 6,775 real-world images. [Real5-OmniDocBench dataset](https://huggingface.co/datasets/PaddlePaddle/Real5-OmniDocBench)
Results across the five conditions in Real5-OmniDocBench
#### Wild-OmniDocBench On 1,350 images with mixed physical degradation, the model scores **91.18** overall, with a table TEDS of 92.08 and a reading-order edit distance of 0.0635. This benchmark follows the OmniDocBench v1.5 protocol.
Overall score and submetrics on Wild-OmniDocBench
#### MDPBench On 2,810 images in 17 languages, the overall score is **91.02**. The Latin and non-Latin scores are 90.93 and 91.80.
Overall, Latin, and non-Latin results on MDPBench
#### CHAOS-Bench With the same layout model, faithful transcription accuracy rises from 10.73 for VL-1.6 to **31.41** for VL-1.8. The benchmark inserts subtle character edits into academic papers to test whether the recognizer preserves the printed spelling.
Faithful transcription results on CHAOS-Bench
### Recognition capabilities The in-house tests evaluate the recognizer separately for tables, ancient Chinese books, rare characters, text lines, and text detection. On the rare-character test, `1 − CER` improves from 47.92% for VL-1.6 to **98.91%**.
In-house recognition results for tables, ancient books, rare characters, text lines, and text detection
CMLOCRBench contains 2,088 pages of Tibetan, traditional Mongolian script, Uyghur, Kazakh, Liangshan Standard Yi, Korean, Zhuang, and Bai. The figure reports macro-average `1 − CER` as a decimal. VL-1.8 scores **0.868**. The next-highest score is 0.703, and VL-1.6 scores 0.582.
Full-page OCR results for eight Chinese ethnic-minority languages on CMLOCRBench
### Inference throughput Serving uses asynchronous inference and batched visual encoding. On one NVIDIA A100 80 GB, the throughput for 1,651 pre-rendered pages is **3.22, 3.87, and 4.34 pages/s** at concurrency 16, 100, and 160. Timing includes image loading, request transfer, inference, post-processing, and output. PDF rendering, server startup, and warm-up are outside the timing window. All backends run with prefix caching and multimodal preprocessing caching disabled.
End-to-end throughput at three concurrency levels on one A100 80 GB
### Document-level post-processing | MPDocBench post-processing | Score ↑ | Time (ms/page) ↓ | | --- | ---: | ---: | | Page concatenation | 79.02 | 0.136 | | PaddleOCR-VL-1.6 post-processing | 82.23 | 0.515 | | MinerU-Popo | 85.22 | 1,230.20 | | PaddleOCR-VL-1.8 post-processing | **87.80** | 51.28 | All four methods receive the same VL-1.8 page-level outputs. Timing covers only document-level post-processing. MPDocBench documents average 7.46 pages. ## Examples ### Layout analysis **Orientation and perspective rectification**
Examples of page orientation and perspective correction
**Layout detection with PP-DocLayoutV3 and PP-DocLayoutV4**
Layout detections from V3 and V4 on complex pages
**Reading order with PP-DocLayoutV3 and PP-DocLayoutV4**
Reading orders from V3 and V4 on complex layouts
### Cross-page tables and faithful transcription
Example of joining a table split across pages
Example of preserving the printed spelling
### Ethnic-minority scripts and ancient Chinese books
Recognition of Liangshan Standard Yi prose
Recognition of vertical traditional Mongolian script
Recognition of a page from an ancient edition of the Zhouyi
### Formulas and complex tables
Example of formula recognition
Example of complex table recognition
## Citation [PaddleOCR-VL-1.8 technical report (arXiv:2612.04209)](https://arxiv.org/abs/2612.04209) ```bibtex @misc{cui2026paddleocrvl18higheraccuracyfaster, title={PaddleOCR-VL-1.8: Higher Accuracy, Faster Inference and Broader Language Coverage for Document Parsing}, author={Cheng Cui and Zhichao Liu and Yubo Zhang and Mengjie Wang and Jiyu Zhuang and Yizhan Huang and Changda Zhou and Yannian Fu and Qunyi Xie and Xiaolong Ma and Hongbin Zhang and Yi Yang and Lei Jia}, year={2026}, eprint={2612.04209}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2612.04209}, } ```