Skip to content
ModelListedExternal
Download

Deplot

TL;DR Using the model Contribution Citation

KindText modelVersion

Model source

Kind
Text model
File size
1.05 GB
Version
vmodel
Updated
Sep 26, 2026
Downloads
35.5K
Tasks
Captioning
Source
Hugging Face

Source excerpt

TL;DR Using the model Contribution Citation

Sources

1 source
Hugging FacePrimaryVersion 6e76d62430da16986be3426bae32301fb9115397
huggingface.co/google/deplot/tree/6e76d62430da16986be3426bae32301fb9115397

Verified Sep 11

Model artifacts

1 artifact

model.safetensors

safetensors · 1.05 GB · SHA-256 ab90055611f4…711b · Hugging Face

Download file

Source excerpts

2 excerpts

--- language: - en - fr - ro - de - multilingual inference: false pipeline_tag: visual-question-answering license: apache-2.0 --- # Model card for DePlot <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/deplot_architecture.png" alt="drawing" width="600"/> # Table of Contents 0. [TL;DR](#TL;DR) 1. [Using the model](#using-the-model) 2. [Contribution](#contribution) 3. [Citation](#citation) # TL;DR The abstract of the paper states that: > Visual language such as charts and plots is ubiquitous in the human world. Comprehending plots and charts requires strong reasoning skills. Prior state-of-the-art (SOTA) models require at least tens of thousands of training examples and their reasoning capabilities are still much limited, especially on complex human-written queries. This paper presents the first one-shot solution to visual language reasoning. We decompose the challenge of visual language reasoning into two steps: (1) plot-to-text translation, and (2) reasoning over the translated text. The key in this method is a modality conversion module, named as DePlot, which translates the image of a plot or chart to a linearized table. The output of DePlot can then be directly used to prompt a pretrained large language model (LLM), exploiting the few-shot reasoning capabilities of LLMs. To obtain DePlot, we standardize the plot-to-table task by establishing unified task formats and metrics, and train DePlot end-to-end on this task. DePlot can then be used off-the-shelf together with LLMs in a plug-and-play fashion. Compared with a SOTA model finetuned on more than >28k data points, DePlot+LLM with just one-shot prompting achieves a 24.0% improvement over finetuned SOTA on human-written queries from the task of chart QA. # Using the model You can run a prediction by querying an input image together with a question as follows: ```python from transformers import Pix2StructProcessor, Pix2StructForConditionalGeneration import requests from PIL import Image processor = Pix2StructProcessor.from_pretrained('google/deplot') model = Pix2StructForConditionalGeneration.from_pretrained('google/deplot') url = "https://raw.githubusercontent.com/vis-nlp/ChartQA/main/ChartQA%20Dataset/val/png/5090.png" image = Image.open(requests.get(url, stream=True).raw) inputs = processor(images=image, text="Generate un...

Source context: 35462 downloads · 321 likes · Pipeline visual-question-answering · Library transformers · Repo google/deplot