everage open source and public models for the same purpose.
Below, we provide an end-to-end example with the Flan-T5 model
for generating captions and CLIP for
computing embeddings on the generated captions. 1. Load the generation model:   Copied import torch
from transformers import AutoTokenizer, T5ForConditionalGeneration

tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-xl")
model = T5ForConditionalGeneration.from_pretrained("googl