Views
No views yet
Qwen/Qwen2.5-VL-7B-Instruct.
This repository contains the trained adapter and ConceptFormer sidecar, not a duplicate of
the approximately 16 GB base model. Loaders resolve the base model from the base_model
metadata and merge this adapter at load time.<|lcon|>1import torch
2from conceptformer.retriever.modeling import ConceptFormerRetriever
3
4model = ConceptFormerRetriever.load(
5 "Qwen/Qwen2.5-VL-7B-Instruct",
6 lora_name_or_path="hmhm1229/ConceptFormer-Qwen",
7 pooling="eos",
8 normalize=True,
9 dtype=torch.bfloat16,
10 device_map="auto",
11)
12model.eval()<|lcon|>, and merges the adapter. The base model is downloaded separately.| Metric | InfoVQA | ChartQA | SlideVQA | TQA | OWID Charts | Wikimedia Maps | Average |
|---|---|---|---|---|---|---|---|
| Recall@10 | 93.03 | 98.67 | 90.88 | 72.20 | 99.24 | 76.04 | 88.33 |
| NDCG@10 | 79.23 | 95.79 | 82.41 | 41.30 | 95.39 | 61.69 | 75.97 |
conceptformer_state.pt stores
the latent projection used by the training objective. Evaluation encodes images and
queries separately and retrieves only inside each dataset corpus.