Instructions to use ericwang07/blip-gqa-ft-trial2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ericwang07/blip-gqa-ft-trial2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("visual-question-answering", model="ericwang07/blip-gqa-ft-trial2")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ericwang07/blip-gqa-ft-trial2") model = AutoModelForMultimodalLM.from_pretrained("ericwang07/blip-gqa-ft-trial2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "add_bos_token": true, | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "1": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "50265": { | |
| "content": "<image>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "</s>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "</s>", | |
| "errors": "replace", | |
| "extra_special_tokens": {}, | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "<pad>", | |
| "processor_class": "Blip2Processor", | |
| "tokenizer_class": "GPT2Tokenizer", | |
| "unk_token": "</s>" | |
| } | |