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