Instructions to use Sourabh2/vista with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sourabh2/vista 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="Sourabh2/vista")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Sourabh2/vista") model = AutoModelForMultimodalLM.from_pretrained("Sourabh2/vista", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from Sourabh2/vista: direct link, hf CLI and curl.
- Browser
- Download file 68 Bytes
-
https://huggingface.co/Sourabh2/vista/resolve/main/processor_config.json
- Command line
-
hf download hf://Sourabh2/vista/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/Sourabh2/vista/resolve/main/processor_config.json
68 Bytes
| { | |
| "num_query_tokens": 32, | |
| "processor_class": "Blip2Processor" | |
| } | |