Instructions to use PaddlePaddle/PP-DocBee-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use PaddlePaddle/PP-DocBee-2B 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-DocBee-2B") 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
Download added_tokens.json from PaddlePaddle/PP-DocBee-2B: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/PaddlePaddle/PP-DocBee-2B/resolve/main/added_tokens.json
- Command line
-
hf download hf://PaddlePaddle/PP-DocBee-2B/added_tokens.json
-
curl -L -o added_tokens.json https://huggingface.co/PaddlePaddle/PP-DocBee-2B/resolve/main/added_tokens.json
419 Bytes
| { | |
| "<|endoftext|>": 151643, | |
| "<|im_start|>": 151644, | |
| "<|im_end|>": 151645, | |
| "<|object_ref_start|>": 151646, | |
| "<|object_ref_end|>": 151647, | |
| "<|box_start|>": 151648, | |
| "<|box_end|>": 151649, | |
| "<|quad_start|>": 151650, | |
| "<|quad_end|>": 151651, | |
| "<|vision_start|>": 151652, | |
| "<|vision_end|>": 151653, | |
| "<|vision_pad|>": 151654, | |
| "<|image_pad|>": 151655, | |
| "<|video_pad|>": 151656 | |
| } |