Skip to content

Files

Latest commit

 

History

History
 
 

BLIP-2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

BLIP-2 notebooks

This folder contains notebooks to illustate Salesforce's BLIP-2 model in 🤗 Transformers.

This folder contains notebooks for inference, but if you're interested in fine-tuning the model on custom data I recommend the following notebooks:

One can either update all the parameters of the model (full fine-tuning), or leverage newer methods like LoRa (available in the 🤗 PEFT library) to freeze the weights of the pre-trained model and only train a couple of linear layers.

BLIP-2 can be used to caption images, answer questions related to images, or even chat in a conversational manner similar to Deepmind's Flamingo.

BLIP-2 even beats Flamingo on several benchmarks, despite being a lot smaller, leveraging open-source large language models like OPT and Flan-T5.

Deployment

To deploy BLIP-2, here are some useful resources: