Instructions to use google/deplot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/deplot with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "visual-question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("visual-question-answering", model="google/deplot")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("google/deplot") model = AutoModelForMultimodalLM.from_pretrained("google/deplot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model.safetensors from google/deplot: direct link, hf CLI and curl.
- Browser
- Download file 1.13 GB
-
https://huggingface.co/google/deplot/resolve/refs%2Fpr%2F14/model.safetensors
- Command line
-
hf download hf://google/deplot@refs/pr/14/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/google/deplot/resolve/refs%2Fpr%2F14/model.safetensors
1.13 GB
- Xet hash:
- 32e5c65b38d76a86568d723be4a7822afc3bec74189e725ce63aed04cdecc89e
- Size of remote file:
- 1.13 GB
- SHA256:
- ab90055611f42fee327d9ecf3c9cdac63e847bd19a0ac8ea86b0e8134fe0711b
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.