PaddlePaddle / PP-DocBee2-3B

huggingface.co
Total runs: 175
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: August 27 2025
image-to-text

Introduction of PP-DocBee2-3B

Model Details of PP-DocBee2-3B

PP-DocBee2-3B

Introduction

The PaddleOCR team has developed PP-DocBee2-3B, a multimodal large model that significantly enhances Chinese document understanding. Building upon the original PP-DocBee, this new iteration introduces an improved data optimization scheme that boosts data quality. PP-DocBee2 achieves superior performance in Chinese document understanding tasks by leveraging a relatively small dataset of 470,000 synthetic data points, generated through a proprietary data synthesis strategy. Internally, PP-DocBee2 demonstrates an impressive 11.4% improvement over its predecessor, PP-DocBee, in Chinese business scenario metrics. Furthermore, it outperforms other popular open-source and closed-source models of comparable scale in key accuracy metrics. The key accuracy metrics are as follow:

Model Model Storage Size(GB) Total Score
PP-DocBee-2B 4.2 765
PP-DocBee-7B 15.8 -
PP-DocBee2-3B 7.6 852

Note : The total scores of the above models are test results from an internal evaluation set, where all images have a resolution (height, width) of (1680, 1204), with a total of 1196 data entries, covering scenarios such as financial reports, laws and regulations, scientific and technical papers, manuals, humanities papers, contracts, research reports, etc. There are no plans for public release at the moment.

Quick Start
Installation
  1. PaddlePaddle

Please refer to the following commands to install PaddlePaddle using pip:

# for CUDA11.8
python -m pip install paddlepaddle-gpu==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/

# for CUDA12.6
python -m pip install paddlepaddle-gpu==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/

# for CPU
python -m pip install paddlepaddle==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/

For details about PaddlePaddle installation, please refer to the PaddlePaddle official website .

  1. PaddleOCR

Install the latest version of the PaddleOCR inference package from PyPI:

python -m pip install paddleocr
Model Usage

You can quickly experience the functionality with a single command:

paddleocr doc_vlm \
    --model_name PP-DocBee2-3B \
    -i "{'image': 'https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/medal_table.png', 'query': '识别这份表格的内容, 以markdown格式输出'}"

You can also integrate the model inference of the text recognition module into your project. Before running the following code, please download the sample image to your local machine.

from paddleocr import DocVLM
model = DocVLM(model_name="PP-DocBee2-3B")
results = model.predict(
    input={"image": "medal_table.png", "query": "识别这份表格的内容, 以markdown格式输出"},
    batch_size=1
)
for res in results:
    res.print()
    res.save_to_json(f"./output/res.json")

After running, the obtained result is as follows:

{'res': {'image': 'medal_table.png', 'query': '识别这份表格的内容, 以markdown格式输出', 'result': '| 名次 | 国家/地区 | 金牌 | 银牌 | 铜牌 | 奖牌总数 |\n| --- | --- | --- | --- | --- | --- |\n| 1 | 中国(CHN) | 48 | 22 | 30 | 100 |\n| 2 | 美国(USA) | 36 | 39 | 37 | 112 |\n| 3 | 俄罗斯(RUS) | 24 | 13 | 23 | 60 |\n| 4 | 英国(GBR) | 19 | 13 | 19 | 51 |\n| 5 | 德国(GER) | 16 | 11 | 14 | 41 |\n| 6 | 澳大利亚(AUS) | 14 | 15 | 17 | 46 |\n| 7 | 韩国(KOR) | 13 | 11 | 8 | 32 |\n| 8 | 日本(JPN) | 9 | 8 | 8 | 25 |\n| 9 | 意大利(ITA) | 8 | 9 | 10 | 27 |\n| 10 | 法国(FRA) | 7 | 16 | 20 | 43 |\n| 11 | 荷兰(NED) | 7 | 5 | 4 | 16 |\n| 12 | 乌克兰(UKR) | 7 | 4 | 11 | 22 |\n| 13 | 肯尼亚(KEN) | 6 | 4 | 6 | 16 |\n| 14 | 西班牙(ESP) | 5 | 11 | 3 | 19 |\n| 15 | 牙买加(JAM) | 5 | 4 | 2 | 11 |\n'}}

The visualized result is as follows:

| 名次 | 国家/地区 | 金牌 | 银牌 | 铜牌 | 奖牌总数 |
| --- | --- | --- | --- | --- | --- |
| 1 | 中国(CHN) | 48 | 22 | 30 | 100 |
| 2 | 美国(USA) | 36 | 39 | 37 | 112 |
| 3 | 俄罗斯(RUS) | 24 | 13 | 23 | 60 |
| 4 | 英国(GBR) | 19 | 13 | 19 | 51 |
| 5 | 德国(GER) | 16 | 11 | 14 | 41 |
| 6 | 澳大利亚(AUS) | 14 | 15 | 17 | 46 |
| 7 | 韩国(KOR) | 13 | 11 | 8 | 32 |
| 8 | 日本(JPN) | 9 | 8 | 8 | 25 |
| 9 | 意大利(ITA) | 8 | 9 | 10 | 27 |
| 10 | 法国(FRA) | 7 | 16 | 20 | 43 |
| 11 | 荷兰(NED) | 7 | 5 | 4 | 16 |
| 12 | 乌克兰(UKR) | 7 | 4 | 11 | 22 |
| 13 | 肯尼亚(KEN) | 6 | 4 | 6 | 16 |
| 14 | 西班牙(ESP) | 5 | 11 | 3 | 19 |
| 15 | 牙买加(JAM) | 5 | 4 | 2 | 11 |

For details about usage command and descriptions of parameters, please refer to the Document .

Pipeline Usage

The ability of a single model is limited. But the pipeline consists of several models can provide more capacity to resolve difficult problems in real-world scenarios.

doc_understanding

The document understanding pipeline is an advanced document processing technology based on Visual-Language Models (VLM), designed to overcome the limitations of traditional document processing. And there is only 1 module in the pipeline:

  • Document Visual Language Module

Run a single command to quickly experience the OCR pipeline:

paddleocr doc_understanding -i "{'image': 'https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/medal_table.png', 'query': '识别这份表格的内容, 以markdown格式输出'}"

Results are printed to the terminal:

{'res': {'image': 'https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/medal_table.png', 'query': '识别这份表格的内容, 以markdown格式输出', 'result': '| 名次 | 国家/地区 | 金牌 | 银牌 | 铜牌 | 奖牌总数 |\n| --- | --- | --- | --- | --- | --- |\n| 1 | 中国(CHN) | 48 | 22 | 30 | 100 |\n| 2 | 美国(USA) | 36 | 39 | 37 | 112 |\n| 3 | 俄罗斯(RUS) | 24 | 13 | 23 | 60 |\n| 4 | 英国(GBR) | 19 | 13 | 19 | 51 |\n| 5 | 德国(GER) | 16 | 11 | 14 | 41 |\n| 6 | 澳大利亚(AUS) | 14 | 15 | 17 | 46 |\n| 7 | 韩国(KOR) | 13 | 11 | 8 | 32 |\n| 8 | 日本(JPN) | 9 | 8 | 8 | 25 |\n| 9 | 意大利(ITA) | 8 | 9 | 10 | 27 |\n| 10 | 法国(FRA) | 7 | 16 | 20 | 43 |\n| 11 | 荷兰(NED) | 7 | 5 | 4 | 16 |\n| 12 | 乌克兰(UKR) | 7 | 4 | 11 | 22 |\n| 13 | 肯尼亚(KEN) | 6 | 4 | 6 | 16 |\n| 14 | 西班牙(ESP) | 5 | 11 | 3 | 19 |\n| 15 | 牙买加(JAM) | 5 | 4 | 2 | 11 |\n'}}

If save_path is specified, the visualization results will be saved under save_path . The visualization output is shown below:

image/png

The command-line method is for quick experience. For project integration, also only a few codes are needed as well:

from paddleocr import DocUnderstanding

pipeline = DocUnderstanding(
    doc_understanding_model_name="PP-DocBee2-3B"
)
output = pipeline.predict(
    {
        "image": "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/medal_table.png",
        "query": "识别这份表格的内容, 以markdown格式输出"
    }
)
for res in output:
    res.print() ## Print the structured output of the prediction
    res.save_to_json("./output/")

The default model used in pipeline is PP-DocBee2-3B , so it is not necessary that specifing to PP-DocBee2-3B by argument doc_understanding_model_name . But you can use the local model file by argument doc_understanding_model_dir . For details about usage command and descriptions of parameters, please refer to the Document .

Links

PaddleOCR Repo

PaddleOCR Documentation

Runs of PaddlePaddle PP-DocBee2-3B on huggingface.co

175
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About PP-DocBee2-3B huggingface.co Model

More PP-DocBee2-3B license Visit here:

https://choosealicense.com/licenses/apache-2.0

PP-DocBee2-3B huggingface.co

PP-DocBee2-3B huggingface.co is an AI model on huggingface.co that provides PP-DocBee2-3B's model effect (), which can be used instantly with this PaddlePaddle PP-DocBee2-3B model. huggingface.co supports a free trial of the PP-DocBee2-3B model, and also provides paid use of the PP-DocBee2-3B. Support call PP-DocBee2-3B model through api, including Node.js, Python, http.

PaddlePaddle PP-DocBee2-3B online free

PP-DocBee2-3B huggingface.co is an online trial and call api platform, which integrates PP-DocBee2-3B's modeling effects, including api services, and provides a free online trial of PP-DocBee2-3B, you can try PP-DocBee2-3B online for free by clicking the link below.

PaddlePaddle PP-DocBee2-3B online free url in huggingface.co:

https://huggingface.co/PaddlePaddle/PP-DocBee2-3B

PP-DocBee2-3B install

PP-DocBee2-3B is an open source model from GitHub that offers a free installation service, and any user can find PP-DocBee2-3B on GitHub to install. At the same time, huggingface.co provides the effect of PP-DocBee2-3B install, users can directly use PP-DocBee2-3B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

PP-DocBee2-3B install url in huggingface.co:

https://huggingface.co/PaddlePaddle/PP-DocBee2-3B

Url of PP-DocBee2-3B

Provider of PP-DocBee2-3B huggingface.co

PaddlePaddle
ORGANIZATIONS

Other API from PaddlePaddle

huggingface.co

Total runs: 588.6K
Run Growth: 37.6K
Growth Rate: 6.39%
Updated:July 22 2025
huggingface.co

Total runs: 393
Run Growth: 167
Growth Rate: 42.49%
Updated:July 22 2025