Instructions to use PaddlePaddle/PP-DocBee2-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use PaddlePaddle/PP-DocBee2-3B with PaddleOCR:
# 1. See https://www.paddlepaddle.org.cn/en/install to install paddlepaddle # 2. pip install paddleocr from paddleocr import DocVLM model = DocVLM(model_name="PP-DocBee2-3B") output = model.predict( input={"image": "path/to/image.png", "query": "Parsing this image and output the content in Markdown format."}, batch_size=1 ) for res in output: res.print() res.save_to_json(save_path="./output/res.json") - Notebooks
- Google Colab
- Kaggle
Upload config.json
Browse files123456{"mode": "paddle","Global": {"model_name": "PP-DocBee2-3B"}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{"architectures": ["Qwen2_5_VLForConditionalGeneration"],"attention_dropout": 0.0,"bos_token_id": 151643,"eos_token_id": 151645,"vision_start_token_id": 151652,"vision_end_token_id": 151653,"vision_token_id": 151654,"image_token_id": 151655,"video_token_id": 151656,"hidden_act": "silu","hidden_size": 2048,"initializer_range": 0.02,"intermediate_size": 11008,"max_position_embeddings": 128000,"max_window_layers": 70,"model_type": "qwen2_5_vl","num_attention_heads": 16,"num_hidden_layers": 36,"num_key_value_heads": 2,"rms_norm_eps": 1e-06,"rope_theta": 1000000.0,"sliding_window": 32768,"tie_word_embeddings": true,"dtype": "bfloat16","use_cache": true,"use_sliding_window": false,"vision_config": {"depth": 32,"hidden_act": "silu","hidden_size": 1280,"intermediate_size": 3420,"num_heads": 16,"in_chans": 3,"out_hidden_size": 2048,"patch_size": 14,"spatial_merge_size": 2,"spatial_patch_size": 14,"window_size": 112,"fullatt_block_indexes": [7,15,23,31],"tokens_per_second": 2,"temporal_patch_size": 2},"rope_scaling": {"type": "mrope","mrope_section": [16,24,24]},"vocab_size": 151936}
config.json+58-4