Instructions to use PaddlePaddle/PP-DocBee-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use PaddlePaddle/PP-DocBee-7B 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-7B") 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
File size: 241 Bytes
9aee192 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | {
"bos_token_id": 151643,
"decode_strategy": "sampling",
"do_sample": true,
"eos_token_id": [
151645,
151643
],
"pad_token_id": 151643,
"repetition_penalty": 1.05,
"temperature": 0.1,
"top_k": 1,
"top_p": 0.001
}
|