vidore/colpali-v1.3-merged#
Note
This is a remotely-sourced model from the colpali_v1_3 plugin, maintained by the community. It is not part of FiftyOne core and may have special installation requirements. Please review the plugin documentation and license before use.
ColPali is a model based on a novel model architecture and training strategy based on Vision Language Models (VLMs) to efficiently index documents from their visual features. It is a PaliGemma-3B extension that generates ColBERT- style multi-vector representations of text and images.
Details
Model name:
vidore/colpali-v1.3-mergedModel source: https://huggingface.co/vidore/colpali-v1.3-merged
Model author: Vidore
Model license: gemma
Exposes embeddings? yes
Tags:
classification, logits, embeddings, torch, visual-document-retrieval, zero-shot
Requirements
Packages:
huggingface-hub, transformers, torch, torchvision, colpali-engineCPU support
yes
GPU support
yes
Example usage
1import fiftyone as fo
2import fiftyone.zoo as foz
3
4foz.register_zoo_model_source("https://github.com/harpreetsahota204/colpali_v1_3")
5
6dataset = foz.load_zoo_dataset(
7 "coco-2017",
8 split="validation",
9 dataset_name=fo.get_default_dataset_name(),
10 max_samples=50,
11 shuffle=True,
12)
13
14model = foz.load_zoo_model("vidore/colpali-v1.3-merged")
15
16dataset.apply_model(model, label_field="predictions")
17
18session = fo.launch_app(dataset)