From: google <huggingface.co/google>Newsgroups: alt.freeweights.textSubject:

deplot

Date: 2026-11-15Commit: 6e76d62Signed: 2DC28CC7B26A283B ✓

Visual question answering model with 282M parameters. Safetensors weights, 2.26 GB in all. Published by google under Apache-2.0.

282M params2.26GBdeplotsafetensorspermissive
FactsParams282MSize2.26 GBFormatssafetensorsTaskvisual question answeringLicenseApache-2.0From sourcepermissive
$ fw get google/deplot
# manifest sha256 03fcca68db57… · 2.26 GB · 10 files
$ fw verify ./deplot google/deplot
From sourceHosted (signed)google/deplotLast check: 2026-11-15 02:35 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Overview

Size
2.26 GB
Weights
1.13 GB (safetensors)
Parameters
282M
Formats
safetensors
Task
visual question answering
License
Apache-2.0 (permissive)
Files
10, each with a sha256
Publisher
google
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:35 UTCpassed

Model card

From the publisher at commit 6e76d62. Shown as plain text with links; images open at the publisher.

Model card for DePlot#

Image: drawing

Table of Contents#

  1. TL;DR
  2. Using the model
  3. Contribution
  4. 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:

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 underlying data table of the figure below:", return_tensors="pt")
predictions = model.generate(**inputs, max_new_tokens=512)
print(processor.decode(predictions[0], skip_special_tokens=True))

Converting from T5x to huggingface#

You can use the convert_pix2struct_checkpoint_to_pytorch.py script as follows:

python convert_pix2struct_checkpoint_to_pytorch.py --t5x_checkpoint_path PATH_TO_T5X_CHECKPOINTS --pytorch_dump_path PATH_TO_SAVE --is_vqa

if you are converting a large model, run:

python convert_pix2struct_checkpoint_to_pytorch.py --t5x_checkpoint_path PATH_TO_T5X_CHECKPOINTS --pytorch_dump_path PATH_TO_SAVE --use-large --is_vqa

Once saved, you can push your converted model with the following snippet:

from transformers import Pix2StructForConditionalGeneration, Pix2StructProcessor

model = Pix2StructForConditionalGeneration.from_pretrained(PATH_TO_SAVE)
processor = Pix2StructProcessor.from_pretrained(PATH_TO_SAVE)

model.push_to_hub("USERNAME/MODEL_NAME")
processor.push_to_hub("USERNAME/MODEL_NAME")

Contribution#

This model was originally contributed by Fangyu Liu, Julian Martin Eisenschlos et al. and added to the Hugging Face ecosystem by Younes Belkada.

Citation#

If you want to cite this work, please consider citing the original paper:

@misc{liu2022deplot,
      title={DePlot: One-shot visual language reasoning by plot-to-table translation},
      author={Liu, Fangyu and Eisenschlos, Julian Martin and Piccinno, Francesco and Krichene, Syrine and Pang, Chenxi and Lee, Kenton and Joshi, Mandar and Chen, Wenhu and Collier, Nigel and Altun, Yasemin},
      year={2022},
      eprint={2212.10505},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Files

10 files · 2.26 GBWeights 1.13 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 10 files with their sha256
FileSizesha256
.gitattributes1.48 KBdb7c0371f46f0840b8f25794c1e3321c9b5820a8cb6ba9694a46fc64b8fae5a6
README.md4.32 KB419a84efe72647da6e56637a4b92394b3b3df6313d8b233c5ddc9942aad80102
config.json4.88 KBf1dc8bcbda2ac4f8715c2d5003d3afb591ac0af97782fdf95a65cf26f805c5bb
model.safetensors1.13 GBab90055611f42fee327d9ecf3c9cdac63e847bd19a0ac8ea86b0e8134fe0711b
preprocessor_config.json249 Bc84e4eebc84171d6069533d9f0147ec7b4afd02ab78697cb5c30f9419ef7dc45
pytorch_model.bin1.13 GBd32fa3870d2d89d4e9a7d18bea0a797046eca929035243aa8dcaa8b4bc029c5b
special_tokens_map.json2.20 KB5c87151ef0f72a99d1f766a4c418bd2a1f90aaa30a8e22fe5eca9641daebb64f
spiece.model851 KB7fd650335add59bed55a432186ca0437a09e185c2d241faab468a538fe6bcf94
tokenizer.json3.27 MB0af109b23840545ef2c286073f4373959badba1faa73c8557881d5126f6287c9
tokenizer_config.json2.62 KB73949c3b853a39cd4661303b0e5cb7b836f7d783be6e898f8b7ae89e203cbe73
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
6e76d62430 pinned now2026-11-15 02:35 UTC10 files · 2.26 GB

Use it

$ fw get google/deplot
# manifest sha256 03fcca68db57… · 2.26 GB · 10 files
$ fw verify ./deplot google/deplot
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/google/deplot.json --dir ./deplot $ python3 fw.py verify ./deplot ./google__deplot.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download google/deplot --revision 6e76d62430da16986be3426bae32301fb9115397 --local-dir ./deplot

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
419a84efe72647da6e56637a4b92394b3b3df6313d8b233c5ddc9942aad80102
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: google <huggingface.co/google>Newsgroups: alt.freeweights.textSubject: deplotDate: 2026-11-15Commit: 6e76d62Signed: 2DC28CC7B26A283B ✓
Upstream
google/deplot
Pinned commit
6e76d62430da16986be3426bae32301fb9115397
Manifest
deplot.json · .minisig
Manifest sha256
03fcca68db579b7948fcd6984b34a3d8fe4f44390c1f464fa27ff9590c430344
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:35 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/google/deplot.json $ curl -O https://freeweights.allternit.com/manifests/google/deplot.json.minisig $ minisign -Vm deplot.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download google/deplot
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. deplot.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B