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
Commit History
-
Adding `safetensors` variant of this model (#3)
- Adding `safetensors` variant of this model (11c220b4e447093d13b4789506f0fdc99af9af35) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>f2cfe80
-
Update README.md
ca72518
-
Update config.json
2633daf
-
Update config.json
524c253
-
Create README.md
2f6d828 -
Upload processor
1274ab6 -
Upload Pix2StructForConditionalGeneration
5ffddd1 -
initial commit
Younes Belkadaec94b97