Image-to-Text
Transformers
PyTorch
Safetensors
English
git
image-text-to-text
vision
image-captioning
Instructions to use microsoft/git-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/git-base 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="microsoft/git-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("microsoft/git-base") model = AutoModelForMultimodalLM.from_pretrained("microsoft/git-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
adb9137
-
Update README.md
4916c97
-
Adding generation config file(s)
cd431eb
-
Update README.md
69bb541
-
Update README.md
8b2d578
-
Upload README.md with huggingface_hub
1743dd0 -
Upload processor
230ca04 -
Upload GitForCausalLM
cb1ad3a
-
Upload processor
6547f56 -
Upload GitForCausalLM
978438e
-
Upload processor
83fc671 -
Upload GitForCausalLM
0002555
-
Upload processor
646fbb3 -
Upload GitForCausalLM
d7758ad -
initial commit
ac7b3a8