Downloads · 30 days
17
26% of all-time downloads
hmhm1229/ConceptFormer-Qwen
ConceptFormer-Qwen is a image feature extraction model from hmhm1229. Use it for the image feature extraction task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
PEFT/LoRA checkpoint for ConceptFormer based on 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 resol…
Downloads · 30 days
17
26% of all-time downloads
All-time downloads
66
Public
Repo size
84.8 MB
Likes
1
Public
Click a slice to open those files.
.safetensors47.7 MB · 53%
From the Hugging Face model README
PEFT/LoRA checkpoint for ConceptFormer based on 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.
Paper can be seen in Arxiv
<|lcon|>import torch
from conceptformer.retriever.modeling import ConceptFormerRetriever
model = ConceptFormerRetriever.load(
"Qwen/Qwen2.5-VL-7B-Instruct",
lora_name_or_path="hmhm1229/ConceptFormer-Qwen",
pooling="eos",
normalize=True,
dtype=torch.bfloat16,
device_map="auto",
)
model.eval()
The wrapper loads the adapter tokenizer before PEFT, resizes the base embedding table for
<|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 |
Use this adapter with the ConceptFormer code repository. 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.
Performance depends on document rendering, image resizing, and corpus version. This model is intended for retrieval research and should not be used as a factual QA system without downstream validation.