Instructions to use Salesforce/blip-image-captioning-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Salesforce/blip-image-captioning-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="Salesforce/blip-image-captioning-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Salesforce/blip-image-captioning-base") model = AutoModelForMultimodalLM.from_pretrained("Salesforce/blip-image-captioning-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model.safetensors from Salesforce/blip-image-captioning-base: direct link, hf CLI and curl.
- Browser
- Download file 990 MB
-
https://huggingface.co/Salesforce/blip-image-captioning-base/resolve/refs%2Fpr%2F38/model.safetensors
- Command line
-
hf download hf://Salesforce/blip-image-captioning-base@refs/pr/38/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/Salesforce/blip-image-captioning-base/resolve/refs%2Fpr%2F38/model.safetensors
990 MB
- Xet hash:
- e21c306dfb8dce08fc34be9e48bf4777757b04f5fdab3d3d6481b42c19b1ab9c
- Size of remote file:
- 990 MB
- SHA256:
- 90f4c493dfc6f4c2152c8bfcfd52ee141055feb835eea2dceb8b9231e5dbf17c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.