Instructions to use brishen/colnomic-embed-multimodal-7b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use brishen/colnomic-embed-multimodal-7b-GGUF with PEFT:
Task type is invalid.
- ColPali
How to use brishen/colnomic-embed-multimodal-7b-GGUF with ColPali:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- llama-cpp-python
How to use brishen/colnomic-embed-multimodal-7b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="brishen/colnomic-embed-multimodal-7b-GGUF", filename="colnomic-embed-multimodal-7b-BF16.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use brishen/colnomic-embed-multimodal-7b-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf brishen/colnomic-embed-multimodal-7b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf brishen/colnomic-embed-multimodal-7b-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf brishen/colnomic-embed-multimodal-7b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf brishen/colnomic-embed-multimodal-7b-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf brishen/colnomic-embed-multimodal-7b-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf brishen/colnomic-embed-multimodal-7b-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf brishen/colnomic-embed-multimodal-7b-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf brishen/colnomic-embed-multimodal-7b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/brishen/colnomic-embed-multimodal-7b-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use brishen/colnomic-embed-multimodal-7b-GGUF with Ollama:
ollama run hf.co/brishen/colnomic-embed-multimodal-7b-GGUF:Q4_K_M
- Unsloth Studio
How to use brishen/colnomic-embed-multimodal-7b-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for brishen/colnomic-embed-multimodal-7b-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for brishen/colnomic-embed-multimodal-7b-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for brishen/colnomic-embed-multimodal-7b-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use brishen/colnomic-embed-multimodal-7b-GGUF with Docker Model Runner:
docker model run hf.co/brishen/colnomic-embed-multimodal-7b-GGUF:Q4_K_M
- Lemonade
How to use brishen/colnomic-embed-multimodal-7b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull brishen/colnomic-embed-multimodal-7b-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.colnomic-embed-multimodal-7b-GGUF-Q4_K_M
List all available models
lemonade list
ColNomic Embed Multimodal 7B: State-of-the-Art Visual Document Retrieval
colnomic-embed-multimodal-7b is a multi-vector state-of-the-art multimodal embedding model that excels at visual document retrieval tasks:
- High Performance: Achieves 62.7 NDCG@5 on Vidore-v2, outperforming all other models
- Unified Text-Image Encoding: Directly encodes interleaved text and images without complex preprocessing
- Advanced Architecture: 7B parameter multimodal embedding model
- Fully Open-Source: Model weights, training data, and code available
Performance
| 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 |
Getting Started
To use colnomic-embed-multimodal-7b, please install colpali from source
pip install git+https://github.com/illuin-tech/colpali.git
import torch
from PIL import Image
from transformers.utils.import_utils import is_flash_attn_2_available
from colpali_engine.models import ColQwen2_5, ColQwen2_5_Processor
model_name = "nomic-ai/colnomic-embed-multimodal-7b"
model = ColQwen2_5.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
device_map="cuda:0", # or "mps" if on Apple Silicon
attn_implementation="flash_attention_2" if is_flash_attn_2_available() else None,
).eval()
processor = ColQwen2_5_Processor.from_pretrained(model_name)
# Your inputs
images = [
Image.new("RGB", (128, 128), color="white"),
Image.new("RGB", (64, 32), color="black"),
]
queries = [
"What is the organizational structure for our R&D department?",
"Can you provide a breakdown of last year’s financial performance?",
]
# Process the inputs
batch_images = processor.process_images(images).to(model.device)
batch_queries = processor.process_queries(queries).to(model.device)
# Forward pass
with torch.no_grad():
image_embeddings = model(**batch_images)
query_embeddings = model(**batch_queries)
scores = processor.score_multi_vector(query_embeddings, image_embeddings)
Model Architecture
- Total Parameters: 7B
- Training Approach: Fine-tuned from Qwen2.5-VL 7B Instruct
- Architecture Type: Vision-Language Model with unified text and image input processing
- Key Innovations:
- Same-source sampling to create harder in-batch negatives
- Multi-vector output option for enhanced performance
Integration with RAG Workflows
Nomic Embed Multimodal 7B seamlessly integrates with Retrieval Augmented Generation (RAG) workflows:
- Direct Document Embedding: Skip OCR and complex processing by directly embedding document page images
- Faster Processing: Eliminate preprocessing steps for quicker indexing
- More Complete Information: Capture both textual and visual cues in a single embedding
- Simple Implementation: Use the same API for both text and images
Recommended Use Cases
The model excels at handling real-world document retrieval scenarios that challenge traditional text-only systems:
- Research Papers: Capture equations, diagrams, and tables
- Technical Documentation: Encode code blocks, flowcharts, and screenshots
- Product Catalogs: Represent images, specifications, and pricing tables
- Financial Reports: Embed charts, graphs, and numerical data
- Visually Rich Content: Where layout and visual information are important
- Multilingual Documents: Where visual context provides important cues
Training Details
ColNomic Embed Multimodal 7B was developed through several key innovations:
Sampling From the Same Source: Forcing sampling from the same dataset source creates harder in-batch negatives, preventing the model from learning dataset artifacts.
Multi-Vector Configuration: Providing a multi-vector variant that achieves higher performance than the dense variant.
Limitations
- Performance may vary when processing documents with unconventional layouts or unusual visual elements
- While it handles multiple languages, performance is strongest on English content
- Processing very large or complex documents may require dividing them into smaller chunks
- Performance on documents with handwriting or heavily stylized fonts may be reduced
Join the Nomic Community
- Nomic Embed Ecosystem: https://www.nomic.ai/embed
- Website: https://nomic.ai
- Twitter: https://twitter.com/nomic_ai
- Discord: https://discord.gg/myY5YDR8z8
Citation
If you find this model useful in your research or applications, please consider citing:
@misc{faysse2024colpaliefficientdocumentretrieval,
title={ColPali: Efficient Document Retrieval with Vision Language Models},
author={Manuel Faysse and Hugues Sibille and Tony Wu and Bilel Omrani and Gautier Viaud and Céline Hudelot and Pierre Colombo},
year={2024},
eprint={2407.01449},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/2407.01449},
}
@misc{ma2024unifyingmultimodalretrievaldocument,
title={Unifying Multimodal Retrieval via Document Screenshot Embedding},
author={Xueguang Ma and Sheng-Chieh Lin and Minghan Li and Wenhu Chen and Jimmy Lin},
year={2024},
eprint={2406.11251},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/2406.11251},
}
@misc{nomicembedmultimodal2025,
title={Nomic Embed Multimodal: Interleaved Text, Image, and Screenshots for Visual Document Retrieval},
author={Nomic Team},
year={2025},
publisher={Nomic AI},
url={https://nomic.ai/blog/posts/nomic-embed-multimodal},
}
- Downloads last month
- 133
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for brishen/colnomic-embed-multimodal-7b-GGUF
Base model
Qwen/Qwen2.5-VL-7B-Instruct