Instructions to use google/pix2struct-widget-captioning-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/pix2struct-widget-captioning-large 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/pix2struct-widget-captioning-large")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("google/pix2struct-widget-captioning-large") model = AutoModelForMultimodalLM.from_pretrained("google/pix2struct-widget-captioning-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model.safetensors from google/pix2struct-widget-captioning-large: direct link, hf CLI and curl.
- Browser
- Download file 5.34 GB
-
https://huggingface.co/google/pix2struct-widget-captioning-large/resolve/main/model.safetensors
- Command line
-
hf download hf://google/pix2struct-widget-captioning-large/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/google/pix2struct-widget-captioning-large/resolve/main/model.safetensors
5.34 GB
- Xet hash:
- de82cf6f66987957fc5aa17ae2cf1a2323ff51f79f09790e641d09e3cb6fe58c
- Size of remote file:
- 5.34 GB
- SHA256:
- 8369baa0a73699f012e78bade9b3933db52c67ee7357caff7673b490de9bba5c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.