Cuda out of memory on Google Colab when running Blip2

When using Google Colab for
model = Blip2ForConditionalGeneration.from_pretrained(
“Salesforce/blip2-flan-t5-xl”…

giving cuda out of memory error. How do I resolve this?