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