Image-Text-to-Text
PaddleOCR
Safetensors
English
Chinese
multilingual
paddleocr_vl
ERNIE4.5
PaddlePaddle
image-to-text
ocr
document-parse
layout
table
formula
chart
conversational
custom_code
Eval Results
Run this model with HF Jobs
Run PaddlePaddle/PaddleOCR-VL on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/PaddlePaddle/PaddleOCR-VL. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/PaddlePaddle/PaddleOCR-VL on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/PaddlePaddle/PaddleOCR-VL. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/PaddlePaddle/PaddleOCR-VL. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use PaddlePaddle/PaddleOCR-VL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use PaddlePaddle/PaddleOCR-VL with PaddleOCR:
# See https://www.paddleocr.ai/latest/version3.x/pipeline_usage/PaddleOCR-VL.html to installation from paddleocr import PaddleOCRVL pipeline = PaddleOCRVL(pipeline_version="v1") output = pipeline.predict("path/to/document_image.png") for res in output: res.print() res.save_to_json(save_path="output") res.save_to_markdown(save_path="output") - Notebooks
- Google Colab
- Kaggle
update chat_template for TRL
Browse files3 unmodified lines45678789101117 unmodified lines2930313232333435353637383 unmodified lines{%- if not cls_token is defined -%} {%- set cls_token = "<|begin_of_sentence|>" -%}{%- endif -%}{%- if not sep_token is defined -%} {%- set sep_token = "<|end_of_sentence|>" -%}{%- if not eos_token is defined -%} {%- set eos_token = "</s>" -%}{%- endif -%}{%- if not image_token is defined -%} {%- set image_token = "<|IMAGE_START|><|IMAGE_PLACEHOLDER|><|IMAGE_END|>" -%}17 unmodified lines {{- "Assistant: " -}} {%- for content in message["content"] -%} {%- if content["type"] == "text" -%} {{ content["text"] + "\n" }} {{ content["text"] }} {%- endif -%} {%- endfor -%} {{ sep_token -}} {{ eos_token -}} {%- elif message["role"] == "system" -%} {%- for content in message["content"] -%} {%- if content["type"] == "text" -%}chat_template.jinja+4-4