Views
No views yet
vidore/colqwen2-v1.0-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.1import torch
2from transformers import AutoModel, AutoProcessor
3
4model = AutoModel.from_pretrained(
5 "dmis-lab/samer-k64-colqwen2",
6 trust_remote_code=True,
7).to("cuda").eval()
8
9processor = AutoProcessor.from_pretrained(
10 model.config.base_model_name_or_path,
11 trust_remote_code=True,
12)
13
14# Build processor inputs with the same convention as the base model.
15# image_inputs = processor(images=[image], return_tensors="pt").to("cuda")
16# query_inputs = processor(text=["a query"], return_tensors="pt", padding=True).to("cuda")
17
18# image_tokens = model.encode_image(image_inputs) # [B, 64, D]
19# query_tokens, query_mask = model.encode_query(query_inputs, return_mask=True)
20# scores = model.score(query_tokens, image_tokens, query_mask=query_mask)num_regions: 64cluster_iters: 3spatial_weight: 0.1assignment_temperature: 0.07vidore/colqwen2-v1.0-hf at runtime. Please follow
the base model license and usage terms.1@misc{park2026visualtokensmatterequally,
2 title={Do All Visual Tokens Matter Equally? Object-Evidence Preserving Token Merging for Vision-Language Retrieval},
3 author={Suhyeong Park and Junha Jung and Jungwoo Park and Jaewoo Kang},
4 year={2026},
5 eprint={2607.04605},
6 archivePrefix={arXiv},
7 primaryClass={cs.IR},
8 url={https://arxiv.org/abs/2607.04605},
9}