Downloads · 30 days
34
25% of all-time downloads
dmis-lab/samer-k64-colpali
samer-k64-colpali is a visual document retrieval model from dmis-lab. Use it for the visual document retrieval task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as gemma.
This repository contains the adapter-only SaMer checkpoint for vidore/colpali-v1.3-hf. It does not redistribute the base model weights. The repository stores only the trained projection layer and custom trustremotecod…
Downloads · 30 days
34
25% of all-time downloads
All-time downloads
138
Public
Parameters
262K
1 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1 MB · 98%
From the Hugging Face model README
This repository contains the adapter-only SaMer checkpoint for vidore/colpali-v1.3-hf.
It does not redistribute the base model weights. The repository stores only the
trained projection layer and custom trust_remote_code wrapper needed to apply
SaMer feature-spatial object-aware token merging at inference time.
💻 Code: GitHub
🌐 Project Page: Page
📄 Paper: Do All Visual Tokens Matter Equally? Object-Evidence Preserving Token Merging for Vision-Language Retrieval
import torch
from transformers import AutoModel, AutoProcessor
model = AutoModel.from_pretrained(
"dmis-lab/samer-k64-colpali",
trust_remote_code=True,
).to("cuda").eval()
processor = AutoProcessor.from_pretrained(
model.config.base_model_name_or_path,
trust_remote_code=True,
)
# Build processor inputs with the same convention as the base model.
# image_inputs = processor(images=[image], return_tensors="pt").to("cuda")
# query_inputs = processor(text=["a query"], return_tensors="pt", padding=True).to("cuda")
# image_tokens = model.encode_image(image_inputs) # [B, 64, D]
# query_tokens, query_mask = model.encode_query(query_inputs, return_mask=True)
# scores = model.score(query_tokens, image_tokens, query_mask=query_mask)
num_regions: 64cluster_iters: 3spatial_weight: 0.1assignment_temperature: 0.07The base model is loaded from vidore/colpali-v1.3-hf at runtime. Please follow
the base model license and usage terms.
@misc{park2026visualtokensmatterequally,
title={Do All Visual Tokens Matter Equally? Object-Evidence Preserving Token Merging for Vision-Language Retrieval},
author={Suhyeong Park and Junha Jung and Jungwoo Park and Jaewoo Kang},
year={2026},
eprint={2607.04605},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/2607.04605},
}