Instructions to use microsoft/git-large-vqav2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/git-large-vqav2 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="microsoft/git-large-vqav2")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("microsoft/git-large-vqav2") model = AutoModelForMultimodalLM.from_pretrained("microsoft/git-large-vqav2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (4ffa44b462d4976e536d13f396f7edc15b1e65fa) Co-authored-by: Safetensors convertbot <[email protected]>075dd1e
-
Adding generation config file(s)
5e5d4e1
-
Update README.md
0c0e572
-
Upload README.md with huggingface_hub
338cd98 -
Upload processor
a6daa1c -
Upload GitForCausalLM
c66e6a2 -
initial commit
2c233f5