Views
No views yet
colnomic-embed-multimodal-3b is a multi-vector state-of-the-art multimodal embedding model that excels at visual document retrieval tasks:| Model | Avg. | ESG Restaurant Human | Econ Macro Multi. | AXA Multi. | MIT Bio | ESG Restaurant Synth. | ESG Restaurant Synth. Multi. | MIT Bio Multi. | AXA | Econ. Macro |
|---|---|---|---|---|---|---|---|---|---|---|
| ColNomic Embed Multimodal 7B | 62.7 | 73.9 | 54.7 | 61.3 | 66.1 | 57.3 | 56.7 | 64.2 | 68.3 | 61.6 |
| ColNomic Embed Multimodal 3B | 61.2 | 65.8 | 55.4 | 61.0 | 63.5 | 56.6 | 57.2 | 62.5 | 68.8 | 60.2 |
| T-Systems ColQwen2.5-3B | 59.9 | 72.1 | 51.2 | 60.0 | 65.3 | 51.7 | 53.3 | 61.7 | 69.3 | 54.8 |
| Nomic Embed Multimodal 7B | 59.7 | 65.7 | 57.7 | 59.3 | 64.0 | 49.2 | 51.9 | 61.2 | 66.3 | 63.1 |
| GME Qwen2 7B | 59.0 | 65.8 | 56.2 | 55.4 | 64.0 | 54.3 | 56.7 | 55.1 | 60.7 | 62.9 |
| Nomic Embed Multimodal 3B | 58.8 | 59.8 | 57.5 | 58.8 | 62.5 | 49.4 | 49.4 | 58.6 | 69.6 | 63.5 |
| Llama Index vdr-2b-multi-v1 | 58.4 | 63.1 | 52.8 | 61.0 | 60.6 | 50.3 | 51.2 | 56.9 | 68.8 | 61.2 |
| Voyage Multimodal 3 | 55.0 | 56.1 | 55.0 | 59.5 | 56.4 | 47.2 | 46.2 | 51.5 | 64.1 | 58.8 |
colnomic-embed-multimodal-3b, please install colpali from sourcepip install git+https://github.com/illuin-tech/colpali.git1import torch
2from PIL import Image
3from transformers.utils.import_utils import is_flash_attn_2_available
4
5from colpali_engine.models import ColQwen2_5, ColQwen2_5_Processor
6
7model_name = "nomic-ai/colnomic-embed-multimodal-3b"
8
9model = ColQwen2_5.from_pretrained(
10 model_name,
11 torch_dtype=torch.bfloat16,
12 device_map="cuda:0", # or "mps" if on Apple Silicon
13 attn_implementation="flash_attention_2" if is_flash_attn_2_available() else None,
14).eval()
15
16processor = ColQwen2_5_Processor.from_pretrained(model_name)
17
18# Your inputs
19images = [
20 Image.new("RGB", (128, 128), color="white"),
21 Image.new("RGB", (64, 32), color="black"),
22]
23queries = [
24 "What is the organizational structure for our R&D department?",
25 "Can you provide a breakdown of last year’s financial performance?",
26]
27
28# Process the inputs
29batch_images = processor.process_images(images).to(model.device)
30batch_queries = processor.process_queries(queries).to(model.device)
31
32# Forward pass
33with torch.no_grad():
34 image_embeddings = model(**batch_images)
35 query_embeddings = model(**batch_queries)
36
37scores = processor.score_multi_vector(query_embeddings, image_embeddings)1@misc{faysse2024colpaliefficientdocumentretrieval,
2 title={ColPali: Efficient Document Retrieval with Vision Language Models},
3 author={Manuel Faysse and Hugues Sibille and Tony Wu and Bilel Omrani and Gautier Viaud and Céline Hudelot and Pierre Colombo},
4 year={2024},
5 eprint={2407.01449},
6 archivePrefix={arXiv},
7 primaryClass={cs.IR},
8 url={https://arxiv.org/abs/2407.01449},
9}
10@misc{ma2024unifyingmultimodalretrievaldocument,
11 title={Unifying Multimodal Retrieval via Document Screenshot Embedding},
12 author={Xueguang Ma and Sheng-Chieh Lin and Minghan Li and Wenhu Chen and Jimmy Lin},
13 year={2024},
14 eprint={2406.11251},
15 archivePrefix={arXiv},
16 primaryClass={cs.IR},
17 url={https://arxiv.org/abs/2406.11251},
18}
19@misc{nomicembedmultimodal2025,
20 title={Nomic Embed Multimodal: Interleaved Text, Image, and Screenshots for Visual Document Retrieval},
21 author={Nomic Team},
22 year={2025},
23 publisher={Nomic AI},
24 url={https://nomic.ai/blog/posts/nomic-embed-multimodal},
25}