Instructions to use phucd/blip-gqa-ft2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use phucd/blip-gqa-ft2 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="phucd/blip-gqa-ft2")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("phucd/blip-gqa-ft2") model = AutoModelForMultimodalLM.from_pretrained("phucd/blip-gqa-ft2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from phucd/blip-gqa-ft2: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/phucd/blip-gqa-ft2/resolve/main/README.md
- Command line
-
hf download hf://phucd/blip-gqa-ft2/README.md
-
curl -L -o README.md https://huggingface.co/phucd/blip-gqa-ft2/resolve/main/README.md
1.27 kB
| library_name: transformers | |
| license: mit | |
| base_model: Salesforce/blip2-opt-2.7b | |
| tags: | |
| - generated_from_trainer | |
| model-index: | |
| - name: blip-gqa-ft2 | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # blip-gqa-ft2 | |
| This model is a fine-tuned version of [Salesforce/blip2-opt-2.7b](https://huggingface.co/Salesforce/blip2-opt-2.7b) on an unknown dataset. | |
| ## Model description | |
| More information needed | |
| ## Intended uses & limitations | |
| More information needed | |
| ## Training and evaluation data | |
| More information needed | |
| ## Training procedure | |
| ### Training hyperparameters | |
| The following hyperparameters were used during training: | |
| - learning_rate: 5e-05 | |
| - train_batch_size: 16 | |
| - eval_batch_size: 8 | |
| - seed: 42 | |
| - gradient_accumulation_steps: 4 | |
| - total_train_batch_size: 64 | |
| - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments | |
| - lr_scheduler_type: linear | |
| - num_epochs: 20 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| ### Framework versions | |
| - Transformers 4.51.3 | |
| - Pytorch 2.5.1+cu121 | |
| - Datasets 3.5.0 | |
| - Tokenizers 0.21.1 | |