β All models Β· Multilingual CLIP
Multi-model Β· captioner β CLIP
Two models in a row. First ViT-GPT2 writes an English caption. Then jina-clip-v2 grounds it β scoring the caption against the image β and you can add the same idea in other languages to confirm the grounding holds cross-lingually. A generator and a multilingual matcher, both on your device.

const caption = (await captioner(image))[0].generated_text; // ViT-GPT2 β English text
const labels = [caption, ...paraphrasesInOtherLanguages];
const img = await clip({ pixel_values }); // jina-clip-v2
const txt = await clip(tokenizer(labels));
// cosine(img, txt[i]) β how well each phrasing grounds to the picture