Instructions to use sachin/vit2distilgpt2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sachin/vit2distilgpt2 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="sachin/vit2distilgpt2")# Load model directly from transformers import AutoTokenizer, AutoModelForImageTextToText tokenizer = AutoTokenizer.from_pretrained("sachin/vit2distilgpt2") model = AutoModelForImageTextToText.from_pretrained("sachin/vit2distilgpt2") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 182156214f36d8f6afcfa201ee30f2c4a57a3275ee209e738c6e8477fcf9fefb
- Size of remote file:
- 743 MB
- SHA256:
- 9068962201c403f7d4a976f02e99a876a4d409d3ff55fe2619ca44f17b158b13
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.