Instructions to use google/pix2struct-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/pix2struct-large with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" 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("image-to-text", model="google/pix2struct-large")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("google/pix2struct-large") model = AutoModelForMultimodalLM.from_pretrained("google/pix2struct-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model.safetensors from google/pix2struct-large: direct link, hf CLI and curl.
- Browser
- Download file 5.34 GB
-
https://huggingface.co/google/pix2struct-large/resolve/refs%2Fpr%2F3/model.safetensors
- Command line
-
hf download hf://google/pix2struct-large@refs/pr/3/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/google/pix2struct-large/resolve/refs%2Fpr%2F3/model.safetensors
5.34 GB
- Xet hash:
- 8833ae039dd044c3cb154a97c82bd2e7befdae29095453c55cce184922c43080
- Size of remote file:
- 5.34 GB
- SHA256:
- a86556aa69a8a27f7f20962c9f00757205962b0b453db6688cb020aed2580569
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.